0% found this document useful (0 votes)
4 views

HTML tags and element

The document provides a detailed overview of common HTML tags and elements, including their purposes and attributes. It covers basic structure, headings, text elements, links, images, lists, tables, forms, semantic elements, and other elements. While not exhaustive, it serves as a useful reference for understanding HTML syntax.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

HTML tags and element

The document provides a detailed overview of common HTML tags and elements, including their purposes and attributes. It covers basic structure, headings, text elements, links, images, lists, tables, forms, semantic elements, and other elements. While not exhaustive, it serves as a useful reference for understanding HTML syntax.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

Here is a list of common HTML tags and elements, written and explained in detail:

*Basic Structure*

- `<!DOCTYPE html>`: Declares the document type as HTML5

- `<html>`: Root element of the HTML document

- `<head>`: Contains metadata about the document

- `<title>`: Sets the title of the page, displayed in the browser's title bar

- `<body>`: Contains the content of the HTML document

*Headings*

- `<h1>`: Main heading, largest font size

- `<h2>`: Subheading, smaller font size than `<h1>`

- `<h3>`: Sub-subheading, smaller font size than `<h2>`

- `<h4>`, `<h5>`, `<h6>`: Additional subheadings with decreasing font sizes

*Text Elements*

- `<p>`: Paragraph of text

- `<span>`: Inline text element, used for styling or grouping text

- `<br>`: Line break, starts a new line of text

- `<hr>`: Horizontal rule, displays a horizontal line

*Links*
- `<a>`: Anchor element, creates a hyperlink

- `href`: Specifies the link destination

- `title`: Specifies a tooltip or link title

*Images*

- `<img>`: Embeds an image in the document

- `src`: Specifies the image source

- `alt`: Specifies alternative text for the image

*Lists*

- `<ul>`: Unordered list, displays a bulleted list

- `<ol>`: Ordered list, displays a numbered list

- `<li>`: List item, used within `<ul>` or `<ol>`

*Tables*

- `<table>`: Defines a table

- `<tr>`: Table row

- `<td>`: Table data, a single cell in the table

- `<th>`: Table header, a header cell in the table

*Forms*
- `<form>`: Defines a form

- `<input>`: Form input field

- `type`: Specifies the input type (e.g., text, password, checkbox)

- `name`: Specifies the input name

- `value`: Specifies the input value

- `<textarea>`: Multiline text input field

- `<select>`: Drop-down select field

- `<option>`: Option within a `<select>` field

*Semantic Elements*

- `<header>`: Defines the header section of a document or section

- `<nav>`: Defines a navigation section

- `<main>`: Defines the main content section

- `<section>`: Defines a self-contained section

- `<article>`: Defines an independent article or piece of content

- `<aside>`: Defines a sidebar or complementary content

- `<footer>`: Defines the footer section of a document or section

*Other Elements*

- `<div>`: Generic container element

- `<script>`: Embeds a script in the document

- `<style>`: Embeds a stylesheet in the document


This is not an exhaustive list, but it covers many of the common HTML tags and elements. Let me know if
you have any specific questions or need further clarification!

You might also like