xxxxxxxxxx
HTML Elements are what make up HTML in general.
This is a list of the main Html element tags.
(There are more not included in this list.)
<!DOCTYPE> Defines the document type
<html> Defines the root of an HTML document </html>
<title> Defines a title for the document </title>
<header> Defines a header for a document or section </header>
<main> Specifies the main content of a document </main>
<footer> Defines a footer for a document or section </footer>
<p> Defines a paragraph </p>
<a> Defines a hyperlink </a>
<b> Defines bold text </b>
<br> Defines a single line break </br>
<button> Defines a clickable button </button>
<div> Defines a section in a document </div>
<footer> Defines a footer for a document or section </footer>
<h1> to <h6> Defines HTML headings </h1> to </h6>
<img> Defines an image </img>
<ol> Defines an ordered list </ol>
<ul> Defines an unordered list </ul>
<li> Defines a list item </li>
<script> Defines a client-side script </script>
<span> Defines a section in a document</span>
<table> Defines a table </table>
<td> Defines a cell in a table</td>
<th> Defines a header cell in a table </th>
<tr> Defines a row in a table </tr>
xxxxxxxxxx
<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 visible content of the HTML document.
<h1> to <h6>: Headings of decreasing importance (h1 being the most important).
<p>: Represents a paragraph of text.
<a>: Creates a hyperlink to another webpage or resource.
<img>: Embeds an image into the HTML document.
<div>: Defines a division or a section in an HTML document.
<span>: Inline container used for grouping and applying styles to a section of text.
<ul>: Creates an unordered (bulleted) list.
<ol>: Creates an ordered (numbered) list.
<li>: Represents an item in a list.
<table>: Defines a table.
<tr>: Represents a table row.
<td>: Represents a table cell.
<th>: Represents a table header cell.
<form>: Creates a form for user input.
<input>: Defines an input field.
<button>: Creates a clickable button.
<select>: Creates a dropdown list.
<option>: Represents an option within a <select> element.
<textarea>: Creates a multiline text input field.
<label>: Associates a label with a form element.
<iframe>: Embeds another HTML document within the current document.
<audio>: Embeds audio content.
<video>: Embeds video content.
<script>: Embeds or references an external JavaScript code.
<style>: Embeds CSS (Cascading Style Sheets) styles within the HTML document.
<meta>: Provides metadata about the HTML document.
The `<html>` tag is the root element of an HTML document and encapsulates all other elements. It establishes the beginning and end of the document and is the parent element of both the `<head>` and `<body>` sections. The opening `<html>` tag appears immediately after the declaration, and the closing tag marks the end of the document.
xxxxxxxxxx
<html>
<!-- Content goes here -->
</html>
xxxxxxxxxx
HTML tags are like keywords which define how web browser will
format and display the content. The common tags are:
<HTML> <HTML> encloses html content
<HEAD> <HEAD> encloses header
etc.
in React, user HTML tags can be generated with user customized attibutes,
These new html tags delimit what are referred to as React Components.
xxxxxxxxxx
When there’s an extensive playbook involved,
sometimes it’s more expedient to run just a part of it
as opposed to the entire thing. That’s what tags are for.
xxxxxxxxxx
<!DOCTYPE html>
<html>
<head>
<title>Basic HTML Tags</title>
</head>
<body>
<!-- Heading tags -->
<h1>This is a heading level 1</h1>
<h2>This is a heading level 2</h2>
<h3>This is a heading level 3</h3>
<!-- Paragraph tag -->
<p>This is a paragraph.</p>
<!-- Link tag -->
<a href="https://www.example.com">This is a link</a>
<!-- Image tag -->
<img src="image.jpg" alt="Description of the image">
<!-- List tags -->
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</body>
</html>