Week 6 - Summary Notes On Tags and Examples
Week 6 - Summary Notes On Tags and Examples
Below is a comprehensive list of different types of HTML tags, along with examples.
1
Tag Description Example
<strong> Bold text (semantic) <strong>Important text</strong>
<b> Bold text (non-semantic) <b>Bold text</b>
<em> Italicized text (semantic) <em>Emphasized text</em>
<i> Italicized text (non-semantic) <i>Italic text</i>
<u> Underlined text <u>Underlined text</u>
<small> Smaller text <small>Small text</small>
<mark> Highlighted text <mark>Highlighted text</mark>
<blockquote>Quote
<blockquote> Block-level quotation content</blockquote>
<q> Inline quotation <q>Inline quote</q>
4. List Tags
Used to create ordered and unordered lists.
5. Table Tags
Used to create tabular data.
<button>
Creates a clickable <button>Click Me</button>
button
<select> Dropdown list <select><option>Option 1</option></select>
<option> Option in a dropdown <option value="1">Choice 1</option>
<fieldset> Groups form elements <fieldset>...</fieldset>
<legend> Title for a fieldset <legend>Personal Info</legend>
<menu>
Represents a menu (deprecated in <menu><li>Menu Item</li></menu>
HTML5)
3
Tag Description Example
<video>
Embeds <video controls><source src="video.mp4"></video>
video
<noscript>
Alternative content for <noscript>Your browser does not support
non-JS browsers JavaScript.</noscript>
Conclusion
These HTML tags help in creating structured, interactive, and visually appealing webpages.
They work together with CSS (for styling) and JavaScript (for interactivity) to form the
foundation of modern web development.