The Basic Elements of HTML
Module 2
30 Common HTML Elements for Beginners
- <html>
- Root of the HTML document
- <head>
- Metadata and linked resources
- <title>
- Title of the web page (shown in browser tab)
- <body>
- Main content of the web page
- <h1> to <h6>>
- Headings (levels 1 to 6)
- <p>
- Paragraph
- <br>
- Line break
- <hr>
- Horizontal rule
- <strong>
- Bold text (strong importance)
- <em>
- Italic text (emphasis)
- <span>
- Inline container (useful for styling)
- <div>
Block-level container (layout/styling)
- <ul>
- Unordered list
- <ol>
- Ordered list
- <li>
- List item
- <a>
- Anchor (hyperlink)
- <nav>
- Navigation section
- <img>
- Image
- <video>
- Video player
- <audio>
- Audio player
- <source>
- Media source (used in <video>/<audio>)
- <table>
- Table
- <tr>
- Table row
- <th>
- Table header cell
- <td>
- Table data cell
- <form>
- Form container
- <input>
- Input field
- <label>
- Label for form inputs
- <textarea>
- Multiline text input
- <button>
- Clickable button