0% found this document useful (0 votes)
7 views3 pages

HTML Full Documentation

HTML (HyperText Markup Language) is the standard markup language for creating web pages, utilizing elements and tags to structure content. The document outlines basic HTML structure, common tags, attributes, forms, semantic HTML, media elements, and the importance of the doctype declaration. It serves as a comprehensive guide for understanding and using HTML effectively.

Uploaded by

sirvictor321
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views3 pages

HTML Full Documentation

HTML (HyperText Markup Language) is the standard markup language for creating web pages, utilizing elements and tags to structure content. The document outlines basic HTML structure, common tags, attributes, forms, semantic HTML, media elements, and the importance of the doctype declaration. It serves as a comprehensive guide for understanding and using HTML effectively.

Uploaded by

sirvictor321
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

HTML Full Documentation

What is HTML?

HTML (HyperText Markup Language) is the standard markup language used to create web pages. It

structures content using elements and tags.

Basic HTML Structure

<!DOCTYPE html>

<html>

<head>

<title>Page Title</title>

</head>

<body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>

</body>

</html>

HTML Elements and Tags

Elements are the building blocks of HTML. Tags are used to mark the beginning and end of an element.

Example:

<p>This is a paragraph</p>

Common HTML Tags

Headings: <h1> to <h6>

Paragraph: <p>

Link: <a href="url">Link</a>

Image: <img src="img.jpg" alt="text">

List: <ul>, <ol>, <li>

Div: <div>

Span: <span>

Break: <br>
HTML Full Documentation

Horizontal Line: <hr>

HTML Attributes

Attributes provide additional information about elements. Written inside the opening tag.

Example:

<img src="image.jpg" alt="description">

HTML Forms

<form action="/submit" method="post">

<label for="name">Name:</label>

<input type="text" id="name" name="name">

<input type="submit" value="Submit">

</form>

Semantic HTML

Semantic elements clearly describe their meaning. Examples include:

<header>, <footer>, <article>, <section>, <nav>, <aside>, <main>

HTML Media

Image: <img>

Audio: <audio controls src="sound.mp3"></audio>

Video: <video controls src="movie.mp4"></video>

HTML Comments

<!-- This is a comment -->

Used to leave notes inside the HTML code that are not visible to users.

Doctype Declaration

<!DOCTYPE html>
HTML Full Documentation

This must be the first line in an HTML document. It tells the browser the version of HTML used.

You might also like