Latest posts

10/recent/ticker-posts

Special Characters in HTML | HTML Entity Name & Number

Special Characters in HTML




Last time we have seen, The Text-level Tags in HTML. Today we are going to learn about the Special Characters in HTML. So hurry up and get connected...



Special Characters in HTML



There are too many Special Characters in the world, which we need to use while writing some content. In HTML most of the time, we find that some of the special characters are not visible on the webpage screen. 

This happens because of the Web Browsers that provide HTML pages. If you also find those errors, then let me tell you something, which will help you to display those special characters on your webpage screen. 
 
Whenever you want to display those special characters on the webpage, you must use their HTML Entity Number or Entity Name. Using HTML Entity Number and Name you can definitely display those special characters.



HTML Entity Name & Number



HTML Entities are commonly used for displaying predefined characters and immense characters such as non-breaking spaces. HTML Entity Name and Number are always starts with the Ampersand character and ends with the Semicolon character. 

Chars Entity Number Entity Name Description
" " " Quotation Mark
' ' &apost; Apostrophe
& & & Ampersand
< &#60; &lt; Less-than
> &#62; &gt; Greater-than
© &#169; &copy; Copyright
® &#174; &reg; Registered Trademark




So let's take a look at the example...

Example : 
<!DOCTYPE html>
<html>
    <head>
        <title> Special Charcters in HTML </title>
    </head>
    <body>
        <br>
        <b>Displaying Special Characters in paragraph using HTML Entity Name and Number</b>
        <br>
        <br>
        Welcome to ComputerTipsTricks.tech &excl; 
        <br>
        Here we fulfil all needs regarding &#34;Computer Technology&#34;.
        <br>
        From programming languages to cyber security, we cover it all. 
        <br>
        Learn ethical hacking techniques, with computer tips and tricks, &#38; stay up-to-date with the latest advancements in the computer industry. 
        <br>
        Join our community and enhance your computer skills today.
    </body>
</html>

Output :



In the above program, we used the Special Characters through the HTML Entity Name and Number. You can also use it in your program to display it on HTML Webpage.



So, now it's time to end the session. See you guys Next Time, stay tuned for further updates on HTML Programming Languages...!!!

I hope, our website will definitely help you to improve your Programming Skills and Knowledge.

Thanks for Visiting...!!!




Also Visit


Post a Comment

0 Comments