What are HTML Entities?
Reserved characters in HTML must be replaced with character entities.Characters that are not present on your keyboard can be replaced by entities.
HTML Entities
To display a sign (<) we must write: &It or <
In HTML some characters are reserved.Using the less than (<) or greater than (>) signs in text then the browser might mix them with tags.
A character entity:
&entity_name; OR &#entity_number; |
Non-breaking Space
Common character entity used in HTML is the non-breaking space and it will not break into a new line.
Two words separated by a non-breaking space will stick together. This is handy when breaking the words might be disruptive.
§ 5
5 km/h 5 PM |
Combining Diacritical Marks
A diacritical mark is a "glyph" added to a letter.
Some diacritical marks, like grave ( ̀) and acute ( ́) are called accents.
Some diacritical marks are:
Mark | Character | Construct | Result |
̀ | a | à | à |
́ | a | á | á |
̂ | a | â | â |
̃ | a | ã | ã |
HTML
Ayesha
Tech writer at newsandstory
Total 2685 views