<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[HTML Emmet Abbreviation]]></title><description><![CDATA[HTML Emmet Abbreviation]]></description><link>https://emmetabbreviation.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 12:44:24 GMT</lastBuildDate><atom:link href="https://emmetabbreviation.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[HTML Emmet Abbreviation]]></title><description><![CDATA[Introduction
When ever you writes code of thousand’s of line, doesn’t you feel like it’s taking a lot time in typing, the tags of html we are writing the same tag again n again, isn’t it gonna be blessing for us if we get thesome sort of shortcuts fo...]]></description><link>https://emmetabbreviation.hashnode.dev/html-emmet-abbreviation</link><guid isPermaLink="true">https://emmetabbreviation.hashnode.dev/html-emmet-abbreviation</guid><category><![CDATA[#WebDevelopment #HTML #VisualStudioCode #AnkitTutorials #CodingTips #TechEducation #WebDesign #DeveloperTools #EmmetAbbreviation #LiveServer #IDE #SoftwareDevelopment #Programming ,LearnToCode]]></category><category><![CDATA[Cohort2026]]></category><category><![CDATA[ChaiCode]]></category><category><![CDATA[Chaiaurcode]]></category><category><![CDATA[ChaiCohort]]></category><category><![CDATA[HTML5]]></category><category><![CDATA[beginner]]></category><category><![CDATA[Beginner Developers]]></category><dc:creator><![CDATA[Chirag Tiwari]]></dc:creator><pubDate>Wed, 04 Feb 2026 12:52:01 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1770200598076/51abac00-26fb-43c7-bcb8-0f808449cc91.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2 id="heading-introduction">Introduction</h2>
<p>When ever you writes code of thousand’s of line, doesn’t you feel like it’s taking a lot time in typing, the tags of html we are writing the same tag again n again, isn’t it gonna be blessing for us if we get the<br />some sort of shortcuts for it, will it not be act as a blessing for.<br />And the name of this blessing/magic is known as Emmet abbreviation.<br />In today’s blog we will learn about Emmet Abbreviation, and will master it..</p>
<h2 id="heading-what-is-emmet">What is Emmet???</h2>
<p>We can Consider Emmet as a spellbook /handbook of coding. It gets inserted inside the code editor like VS code, to make our work easier.<br /><strong>HTML Emmet Abbreviation</strong> is a shorthand syntax that expands into full HTML code automatically.<br />Means as we type a short pattern/key word, which is known to the Emmet, it will provide us with the whole structured HTML.</p>
<h3 id="heading-why-we-use-emmet">Why we use Emmet??</h3>
<p>It helps us create Nested elements, Create multiple elements , Elements with classes and id’s , Text inside tags, attributes.</p>
<h3 id="heading-how-emmet-works">How Emmet works??</h3>
<p>Emmet just works like a magic,<br />1.) We just type abbreviation like(ul*2).<br />2.) As we press the enter button.<br />3.)Editors gives us the complete desired code.</p>
<p>We can say Emmet is just like a hero🦸 for us Who is says, Type less, and get more…</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1770207762627/a7db2bcf-b21b-48db-a5b6-b7e1f6195323.jpeg" alt class="image--center mx-auto" /></p>
<hr />
<h2 id="heading-basic-emmet-syntax">Basic Emmet Syntax:</h2>
<h3 id="heading-create-simple-tags">Create simple tags:</h3>
<p>👉Syntax</p>
<pre><code class="lang-plaintext">syntax of emmet: Just write the name of a tag without any open bracket, or anything else. and then just tap enter 

tagname
</code></pre>
<p>Example</p>
<p>Input</p>
<pre><code class="lang-plaintext">p
</code></pre>
<p>Output</p>
<pre><code class="lang-plaintext">&lt;p&gt;&lt;/p&gt;
</code></pre>
<p>Here in above example we seen, when we wrote p, it has given us the whole p element.</p>
<hr />
<h3 id="heading-creating-operators-gt">Creating Operators( &gt; )</h3>
<p>We use it to create a nested elements.</p>
<p>👉Syntax</p>
<pre><code class="lang-plaintext">parent&gt;child
</code></pre>
<p>The parent should be written first then the child should be written after using this symbol(&gt;).</p>
<p>Example</p>
<p>Input</p>
<pre><code class="lang-plaintext">ul&gt;li
</code></pre>
<p>Output</p>
<pre><code class="lang-plaintext">&lt;ul&gt;
  &lt;li&gt;&lt;/li&gt;
&lt;/ul&gt;

It states li is inside ul.
</code></pre>
<p>In this we have example, we have seen how using shortcut we can add 2elements. by just typing 3-4letters.</p>
<hr />
<h3 id="heading-sibling-operator">Sibling Operator(+)</h3>
<p>It creates elements at the same level.</p>
<p>👉Syntax</p>
<pre><code class="lang-plaintext">tag+tag
</code></pre>
<p>Example:</p>
<p>Input</p>
<pre><code class="lang-plaintext">div+div
</code></pre>
<p>Output</p>
<pre><code class="lang-plaintext">&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
</code></pre>
<p>We can create Many elements like this using this emmet, as per our requirement.</p>
<hr />
<h3 id="heading-multiplication-operators">Multiplication Operators(*)</h3>
<p>Create multiple elements.</p>
<p>👉Syntax</p>
<pre><code class="lang-plaintext">tag*number

Here number would as per our requirement, the amount of elements that we want.
</code></pre>
<p>Example:</p>
<p>Input</p>
<pre><code class="lang-plaintext">p*3
</code></pre>
<p>Output</p>
<pre><code class="lang-plaintext">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
</code></pre>
<hr />
<h3 id="heading-climbing-operator">Climbing Operator</h3>
<p>Moves one level up in the nesting.</p>
<p>Example</p>
<p>Input</p>
<pre><code class="lang-plaintext">div&gt;ul&gt;li^p
</code></pre>
<p>Output</p>
<pre><code class="lang-plaintext">&lt;div&gt;
  &lt;ul&gt;
    &lt;li&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;p&gt;&lt;/p&gt;
&lt;/div&gt;
</code></pre>
<p>➡️<code>^</code> tells Emmet to step outside the <code>ul</code>.</p>
<hr />
<h3 id="heading-grouping-operator">Grouping Operator:</h3>
<p>Use to group elements together.</p>
<p>Example:</p>
<p>Input</p>
<pre><code class="lang-plaintext">div&gt;(header&gt;ul&gt;li*2)+footer
</code></pre>
<p>Output</p>
<pre><code class="lang-plaintext">&lt;div&gt;
  &lt;header&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;/li&gt;
      &lt;li&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/header&gt;
  &lt;footer&gt;&lt;/footer&gt;
&lt;/div&gt;
</code></pre>
<hr />
<h2 id="heading-adding-classes-and-ids">Adding Classes and Id’s</h2>
<hr />
<h3 id="heading-class">Class(.)</h3>
<p>👉Syntax</p>
<pre><code class="lang-plaintext">tag.classname
</code></pre>
<p>Example:</p>
<p>Input</p>
<pre><code class="lang-plaintext">h1.heading
</code></pre>
<p>Output</p>
<pre><code class="lang-plaintext">&lt;h1 class="heading"&gt;&lt;/h1&gt;
</code></pre>
<hr />
<h3 id="heading-id">ID(#)</h3>
<p>👉Syntax</p>
<pre><code class="lang-plaintext">tag#id
</code></pre>
<p>Example:</p>
<p>Input</p>
<pre><code class="lang-plaintext">p#heading
</code></pre>
<p>Output</p>
<pre><code class="lang-plaintext">&lt;p id="heading"&gt; &lt;/p&gt;
</code></pre>
<p>The ID’s and class we take according to our wish. ID should always be unique.</p>
<hr />
<h3 id="heading-htmlboilerplate-code">HTML(Boilerplate code):</h3>
<p>👉Syntax</p>
<p>Input</p>
<pre><code class="lang-plaintext">!
</code></pre>
<p>Output</p>
<pre><code class="lang-plaintext">&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
    &lt;title&gt;Document&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>
<hr />
<h2 id="heading-conclusion">Conclusion</h2>
<p>So today we have completed the HTML abbreviation, and after completing this we can say Using Emmet abbreviation, is a smart way of coding which makes our work easier and helps us to code fastly, So now we can say we have become more smart and updated now🧠🤓, i hope now you will go and try your<br />hands on emmet, and strengthen it for a future. So that’s at for the day, we will meet again with some<br />exciting topic…  </p>
<p>Connect with me: <a target="_blank" href="http://www.linkedin.com/in/chirag-tiwari-a99395310">www.linkedin.com/in/chirag-tiwari-a99395310</a>.</p>
]]></content:encoded></item></channel></rss>