Tag | Description |
---|---|
Defines an HTML document | |
Defines the document's body | |
to | Defines header 1 to header 6 |
Defines a paragraph | |
Inserts a single line break | |
Defines a horizontal rule | |
Defines a comment |
HTML Tag Attributes
HTML tags can have attributes. Attributes provide additional information to an HTML element.has additional information about the background color.
Text Formatting Tags
"Computer Output" Tags
Citations, Quotations, and Definition Tags
HTML Character Entities
Some characters like the <>
To display a less than sign (<) in HTML, we have to use a character entity.
The Most Common Character Entities:
Result | Description | Entity Name | Entity Number |
---|---|---|---|
non-breaking space | |||
< | less than | < | < |
> | greater than | > | > |
& | ampersand | & | & |
" | quotation mark | " | " |
' | apostrophe | ' (does not work in IE) | ' |
Some Other Commonly Used Character Entities:
Result | Description | Entity Name | Entity Number |
---|---|---|---|
¢ | cent | ¢ | ¢ |
£ | pound | £ | £ |
¥ | yen | ¥ | ¥ |
€ | euro | € | € |
§ | section | § | § |
© | copyright | © | © |
® | registered trademark | ® | ® |
× | multiplication | × | × |
÷ | division | ÷ | ÷ |