Special entities in HTML

Bracket is a special symbol in HTML. Opening bracket defines starting of HTML code, and closing bracket shows where HTML code ends. However, what to do when brackets need to be shown? HTML defines a few words to define special characters. These words are; < is used for opening bracket, > is used for closing bracket. There additional special HTML words that can be used in place of characters. For example space is represented in HTML as &nbps; . A browser will ignore extra spaces and will show only one of them. If more spaces need to be shown on a web page, then extra spaces need to be replaced by  

If ampersand needs to be shown in an HTML page, then & needs to be used.

There are additional HTML symbols, I just mentioned a few common ones.

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator