A Quick Note on HTML Basics
Before delving into the tags, let’s address two important points:
- Tag Similarities: Some HTML tags share similarities, making it challenging to differentiate their purposes. Pay attention to the specific roles of each tag.
- Case Sensitivity: While HTML is not case-sensitive, it is a best practice to use lowercase for consistency and readability.
Additional HTML Tags and Their Uses
<nav>
Tag- Purpose: Represents a navigation section containing links for navigating a website, such as Home, About, and Contact.
- Example:
<section>
Tag- Purpose: Defines sections of a document, often used for grouping related content.
- Example:
<b>
Tag- Purpose: Makes text bold, similar to using the bold function in text editors.
- Example:
<em>
Tag- Purpose: Adds emphasis to text, often rendering it in italics. Nesting increases emphasis.
- Example:
<fieldset>
Tag- Purpose: Groups related elements, often in forms, creating a visual boundary.
- Example:
<form>
Tag- Purpose: Creates a form for user inputs, including fields like textboxes, checkboxes, and radio buttons.
- Example:
<input>
Tag- Purpose: Allows data entry, with attributes specifying its type (text, password, etc.).
- Example:
<label>
Tag- Purpose: Labels form elements, improving accessibility and clarity.
- Example:
<q>
Tag- Purpose: Wraps text in quotation marks.
- Example: