Trending Designs

Impressed by our work?

Hire us for exceptional web development services on Fiverr

HTML Entities Tags | HTML Tutorial in Hindi / Urdu | Complete HTML Course

HTML Entities Tags | HTML Tutorial in Hindi / Urdu | Complete HTML Course
04 June
This HTML course provides a complete introduction to HTML, covering essential concepts, tags, elements, and web development fundamentals for beginners and developers

HTML Entities Tags | HTML Tutorial in Hindi / Urdu | Complete HTML Course

Entities Tags in HTML

HTML Entities are special codes used to display reserved characters, symbols, and special text in web pages. Since some characters such as <, >, and & have predefined meanings in HTML, entities allow developers to display these characters correctly without affecting the structure of the document.

HTML entities improve code readability, prevent parsing issues, and ensure that special symbols are rendered consistently across different browsers. They are commonly used for copyright symbols, trademark symbols, currency symbols, quotation marks, mathematical operators, and other special characters.

Some of the most frequently used HTML entities include:

  • &lt; → Displays the less-than symbol (<)

  • &gt; → Displays the greater-than symbol (>)

  • &amp; → Displays the ampersand symbol (&)

  • &quot; → Displays double quotation marks (")

  • &apos; → Displays a single quotation mark (')

  • &copy; → Displays the copyright symbol (©)

  • &reg; → Displays the registered trademark symbol (®)

  • &trade; → Displays the trademark symbol (™)

  • &euro; → Displays the Euro currency symbol (€)

  • &pound; → Displays the British Pound symbol (£)

  • &yen; → Displays the Japanese Yen symbol (¥)

  • &cent; → Displays the Cent symbol (¢)

  • &nbsp; → Inserts a non-breaking space

Using HTML entities is considered a best practice when working with special characters because it helps maintain valid HTML markup and ensures proper display of content on all devices and browsers.

In this lesson, you will learn how HTML entities work, why they are important, and how to use commonly used entity codes in real-world web development projects.


                            
                                <p>&nbsp;&lt;!doctype html&gt;</p>
<div>
<div>&lt;html lang="en"&gt;</div>
<div>&nbsp; &lt;head&gt;</div>
<div>&nbsp; &nbsp; &lt;meta charset="UTF-8" /&gt;</div>
<div>&nbsp; &nbsp; &lt;meta name="viewport" content="width=device-width, initial-scale=1.0" /&gt;</div>
<div>&nbsp; &nbsp; &lt;title&gt;Document&lt;/title&gt;</div>
<div>&nbsp; &lt;/head&gt;</div>
<div>&nbsp; &lt;body&gt;</div>
<div>&nbsp; &nbsp; &lt;h1&gt;The &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Providers &amp;trade;&lt;/h1&gt;</div>
<br>
<div>&nbsp; &nbsp; &lt;h2&gt;&amp;lt; The Providers &amp;gt;&lt;/h2&gt;</div>
<br>
<div>&nbsp; &nbsp; &lt;h2&gt;&amp;quot; Code &amp;amp; Snippets &amp;quot;&lt;/h2&gt;</div>
<br>
<div>&nbsp; &nbsp; &lt;h2&gt;&amp;apos; Code &amp;amp; Snippets &amp;apos;&lt;/h2&gt;</div>
<br>
<div>&nbsp; &nbsp; &lt;h3&gt;&amp;pound; &amp;cent; &amp;yen; &amp;euro;&lt;/h3&gt;</div>
<br>
<div>&nbsp; &nbsp; &lt;h3&gt;Temperature is 25&amp;deg;C &amp;amp; rising&lt;/h3&gt;</div>
<br>
<div>&nbsp; &nbsp; &lt;h3&gt;Math Symbols: 5 &amp;gt; 3 &amp;amp; 2 &amp;lt; 4&lt;/h3&gt;</div>
<br>
<div>&nbsp; &nbsp; &lt;h3&gt;Fractions: &amp;frac12; &amp;frac14; &amp;frac34;&lt;/h3&gt;</div>
<br>
<div>&nbsp; &nbsp; &lt;h3&gt;Arrows: &amp;larr; &amp;rarr; &amp;uarr; &amp;darr;&lt;/h3&gt;</div>
<br>
<div>&nbsp; &nbsp; &lt;h3&gt;Symbols: &amp;star; &amp;hearts; &amp;diams; &amp;clubs;&lt;/h3&gt;</div>
<br>
<div>&nbsp; &nbsp; &lt;h3&gt;Spacing test: Hello&amp;nbsp;&amp;nbsp;&amp;nbsp;World&lt;/h3&gt;</div>
<br>
<div>&nbsp; &nbsp; &lt;h3&gt;Copyright &amp;copy; All Rights Reserved. Registered &amp;reg;&lt;/h3&gt;</div>
<br><br>
<div>&nbsp; &nbsp; &lt;br&gt;</div>
<div>&nbsp; &nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href="https://youtube.com/@theProvidersOfficial"&gt;The Providers&lt;/a&gt;</div>
<br>
<div>&nbsp; &nbsp;</div>
<div>&nbsp; &lt;/body&gt;</div>
<div>&lt;/html&gt;</div>
</div>
                            
                        


Download Code Files


Share This Post :