HTML – Character encoding and character references

Character encoding is a set if mappings between byte in the computer and characters. A character can be a letter, a number or any symbol. With HTML you should use UTF-8 encoding. Here is how you declare the encoding for one page:

HTML - Character encoding and character references, <span>HTML – Character encoding and character references</span>, KandZ

Read more here.

Character references are a set of characters that the browsers use to display a character or symbol. This happens because HTML reserves some characters and you cannot use them to print on the screen. Character references can be written using a name or a number. For name character reference use & followed by the name and then ; . For example to print a space use:

HTML - Character encoding and character references, <span>HTML – Character encoding and character references</span>, KandZ

For number character reference use &# followed by a number in decimal and ; or &#x followed by a number in hexadecimal number and ;

Here you can find the full list. Mouse hover shows name and number character reference.

HTML - Character encoding and character references, <span>HTML – Character encoding and character references</span>, KandZ
HTML
HTML - Character encoding and character references, <span>HTML – Character encoding and character references</span>, KandZ
What you see

THE END!!!

88910cookie-checkHTML – Character encoding and character referencesHTML – Character encoding and character references

Related posts

One Thought to “HTML – Character encoding and character references

  1. […] HTML – Character encoding and character references […]

Comments are closed.