Skip to main content

HTML entities

HTML Entities

HTML Entities

Some characters are reserver in html.

If you use the less than (<) or greater than (&gt) signs in your text, the browser might mix them with tags.

character entities are used to display reserved characters in html.

A character entity looks like this:

&entity_name;

OR

&#entity_number

To display a less than sign (<) we must write: &lt; or &#60;

Advantages of using an entity name: An entity name is easy to remember.

Disadvantages of using an entity name: Browsers may not support all entity names, but the support for entity numbers is good.

Some usefull HTML Character Entities

Result Description Entity Name Entity Number
non-breaking space &nbsp; &amp#160;
< less than &lt; &#60;
> greater than &gt; &#62;
& ampersand &amp; &38;
" double quotation mark &quot; &#34
' single quotation mark
(apostrope)
&apos; &#39;
¢ cent &cent; &#162;
£ pound &pound; &#163;
¥ yen &yen; &#165;
euro &euro; &#8364;
© copy &copyright &#169;
® registerd trademark &reg; &#174;

Note: Entity names are case sensitive.

Combining Diacritical Marks

A Diacritical mark is a "glyph" added to a letter.
Some diacritical marks, like grave(̀) and acute (́) are called accents;

Diacritical marks can appear both above and below a letter, inside a letter, and between two letters.

Diacritical marks can be used in combination with alphanumeric characters to produce a character that is not present in the character set (encodin) used int the page.

Here are some examples:

Mark Character Constants Result
̀ a a&#768; a&#768
́ a a&#769;
̂ a a&#770;
̃ a a&#771;
̀ O O&#769;
́ O O&#769;
̂ O O&#770;
̃ O O&#771;

Thanks for your visit!!!

Comments

Popular posts from this blog

Why should we learn Python ? | Python learning.

| Python Python is high level programming language, by the use of python we create complex computer programs. Python is also known as interpreted language. |  Python used in various fields     Python can be used in different ways such as: Software developers Data scientists Data Analysts Hackers Bankers Engineers Designers Doctors Scientists, etc. | Why Python is known as Python? Python is named after a comic series. Guido Van Rossum is the creator of Python. Python is an easy programming language, using python the complex programs can be written.   |  Advantages of Python Python can be used online, offline. A nd Python can be used in Smaller or big projects. Python is an Interpreter language, where Programs can be executed directly without complier.   |  Applications of Python Web application. Mathematical Computations. Graphical User Interface. And may more.....   Thanks for visit!!!

Java programming language.

Hi, If you want to know about Java language then it is right place for you. Some points about Java language.  It is developed by James Gosling at sun microsystem.  It is release in 1995 as a Core. It is a general purpose programming language. It is like c ++ but with advanced and simplified features. Concurrently execute many statement. It is object oriented programming language.  It is platform independent. Installation process.                    Download JDK Mac OS ~ JDK version 11. WINDOWS ~ 32 Bits JDK version 8.                    ~ 64 Bits JDK version 11. Wants to download JDK click here .  Download Eclipse for easy programming😊😊. Download eclipse  click here .  Data types in java?  There is two type of data types in java primitive data types and non primitive data types. Firstly we talk about primitive data ty...

HTML Elements

 HTML Elements An HTML element is defined by a start tag, some content, and end tag. The HTML element is everything from the start tag to the end tag: <tag name> Content goes here....</tag name> Examples: <h1>First heading</h1> <p> First paragraph</p> Starting tag: <h1> Ending tag: </h1>  Element content: First heading Note: Some elements have no content (like the <br> element). These elements are called empty elements. Empty elements do not have an end tag!. Nested HTML Elements: HTML elements can be nested (this means that element can obtain other elements). All HTML documents consist of nested HTML elements.  The following example consist four HTML elements(<html>, <body>, <h1> an d <p>). <!DOCTYPE html> <html> <body> <h1> First heading </h1> <p> First paragraph </p> </body> </html> Example explained The <html> element is the ...