HTML Elements
A multitude of parts make up HTML (Hypertext Markup Language), each of which has a distinct function in the organization and display of material on the internet. Below is a summary of some typical HTML elements:
Fundamental Components of Structure:
<!DOCTYPE html>:
- Indicates the HTML version and document type.
<html>:
- The main component that encloses all of the page's content.
<head>:
- Includes meta-data about the HTML document, such as the title and character set.
<title>:
- Sets the HTML document's title that will appear in the browser tab.
<body>:
- Includes the HTML document's primary material.
Title and Textual Components:
From <h1> to <h6>:
- Components in the heading, smallest (h6) to greatest (h1).
<p>:
- Defines a line of text.
<br>:
- Signifies a line break in a text.
<hr>:
- Represents a line or horizontal rule.
List Items:
<ul>:
- Explains what an unordered list is.
<ol>:
- Defines a list that is ordered.
<li>:
- Defines an item on a list.
Image and Link Elements:
<a>:
- Characterizes a hyperlink.
<img>:
- Include a picture.
Fundamental Components:
<div>:
- Defines an HTML document's section or division.
<span>:
- Defines a document's section for style reasons.
Formal Components:
<form>:
- Defines a user-input HTML form.
<input>:
- Describes a field of input.
<textarea>:
- Defines an input control with many lines.
<button>:
- Defines what an active button is.
Components of Multimedia:
<audio>:
- Incorporates audio files.
<video>:
- Incorporates video content.
Table Components:
<table>:
- Describes a table.
<tr>:
- Describes a row in a table.
<td>:
- Defines a cell in a table.
Elements of Semantics:
<header> :
- Symbolizes the heading of a page or section.
<footer>:
- Represents the bottom of a page or section.
<nav>:
- Contains connections to the navigation.
<main>:
- Embodies the primary ideas presented in the paper.
<article>:
- Represents a bit of material that is self-contained.
<section>:
- Represents a generic document part.
These are but a handful of the elements found in HTML. In order to satisfy the needs of contemporary web development, new elements and attributes are constantly being added to HTML. A thorough understanding of these components' applications and interactions is essential for building web pages that are both semantically sound and well-structured.
Labels: HTML
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home