About Lesson
Certainly! Here’s a reference list of HTML elements organized by category:
Document Structure:
<html>
: Represents the root element of an HTML document.<head>
: Contains metadata about the HTML document.<title>
: Specifies the title of the HTML document.<body>
: Contains the main content of the HTML document.<header>
: Represents a container for introductory content or a group of introductory elements.<nav>
: Represents a section of navigation links.<main>
: Represents the main content of the document.<footer>
: Represents a footer for a document or section.<section>
: Represents a standalone section within a document.<article>
: Represents an independent, self-contained composition.<aside>
: Represents content that is tangentially related to the main content.
Text Formatting:
<h1>
to<h6>
: Represents heading levels.<p>
: Defines a paragraph of text.<a>
: Creates a hyperlink to another webpage or resource.<strong>
: Indicates strong importance or emphasis.<em>
: Indicates emphasis or stress.<del>
: Represents deleted or removed text.<ins>
: Represents inserted text.<mark>
: Highlights text for reference or emphasis.<blockquote>
: Defines a section that is quoted from another source.<code>
: Represents a fragment of computer code.<pre>
: Defines preformatted text.
Lists:
<ul>
: Represents an unordered (bulleted) list.<ol>
: Represents an ordered (numbered) list.<li>
: Defines a list item within an ordered or unordered list.<dl>
: Represents a description list.<dt>
: Defines a term (name) in a description list.<dd>
: Defines the description of a term in a description list.
Images and Media:
<img>
: Inserts an image into the HTML document.<audio>
: Embeds audio content in the document.<video>
: Embeds video content in the document.<figure>
: Represents self-contained content, such as images, videos, or code snippets.<figcaption>
: Provides a caption or description for a figure element.
Tables:
<table>
: Represents tabular data organized in rows and columns.<tr>
: Defines a table row.<td>
: Represents a table cell.<th>
: Defines a header cell in a table.<caption>
: Provides a title or caption for a table.
Forms:
<form>
: Creates a form for user input.<input>
: Creates an input field within a form.<label>
: Associates a label with a form element.<select>
: Creates a dropdown list of options.<option>
: Defines an option within a<select>
dropdown.<textarea>
: Creates a multiline text input area.<button>
: Creates a clickable button.<fieldset>
: Groups related form elements together.<legend>
: Provides a caption or title for a fieldset element.
These are just a selection of HTML elements categorized by their common use cases. There are more elements available, each serving specific purposes. For a comprehensive list and detailed information, you can refer to the HTML documentation provided by resources like Mozilla Developer Network (MDN) or W3Schools.
Join the conversation