HTML tag reference list
Page structure
| Tag syntax | Description |
|---|---|
| <html> ... </html> | Defines the type of document. See an example of an html document structure. |
| <head> ... </head> | Can only contain <link>, <base>, <title>, <meta>, <style> and <script>. |
| <body> ... </body> | Contents between the body tags will be displayed by browser. |
| <div> ... </div> | Used with CSS to format blocks of content in your page. |
| <span> ... </span> | Used inside a division to change style or formatting within a content block. |
| <p> ... </p> | Defines a paragraph. |
| <br /> | Creates a line break. |
| <hr /> | Creates a horizontal rule. |
| <!--...--> | Creates a comment. Not displayed by the browser. |
headings
| Tag syntax | Description |
|---|---|
| <h1> ... </h1> | The h1 tag contains the most important heading |
| <h2> thru </h6> | Headings decrease numerically as they decrease in importance |
Links
| Tag syntax | Description |
|---|---|
| <a> ... </a> anchor | Used to create a link to another document by using the href attribute or create a bookmark inside a document, by using the name or id attribute. |
| <link /> | Used in the <head> section to link documents such as external
style sheet. <link rel="stylesheet" type="text/css" href="theme.css" /> |
Text
| Tag syntax | Description |
|---|---|
| <b> ... </b> | Creates bold text. Bold Text |
| <i> ... </i> | Creates italic text. Italic Text |
| <em> ... </em> | Creates emphasized text. Emphasized Text |
| <big> ... </big> | Creates big text. Big Text |
| <small> ... </small> | Creates small text. Small Text |
| <strong> ... </strong> | Creates strong text. Strong Text |
Learning html

![[advertisement]web essentials free firewall](images/firewall-banner.jpg)
