An HTML element is defined by a start tag, some content, and an end tag.
<tagname> content </tagname>| Tag | Description |
|---|---|
| <h1> to <h6> | HTML headings |
| <p> | HTML paragraph |
| <br> | Line break (empty element) |
| <hr> | Horizontal rule |
| <a> | Hyperlink |
Note: Some HTML elements have no content and no closing tag — these are called empty elements. Example: <br>
Edit the code below and click Run to see the result live.