HTML
HTML is the markup language used to describe the structure and meaning of content on the web.
What Is HTML
HTML stands for HyperText Markup Language. It uses elements such as headings, paragraphs, links, images, forms, and sections to define what content is.
Browsers read HTML and turn it into the document structure users see and interact with.
How To Use HTML
Create an .html file, add a document structure, then open it in a browser.
HTML is usually used with CSS for styling and JavaScript for behavior.
Basic Example
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Hello HTML</title>
</head>
<body>
<main>
<h1>Hello, HTML</h1>
<p>This page is built with semantic HTML.</p>
</main>
</body>
</html>
Common Concepts
- Elements define content, such as
h1,p,a, andimg. - Attributes add extra information, such as
href,src, andalt. - Semantic tags such as
main,article, andnavimprove accessibility and structure.
What To Learn Next
Learn forms, semantic layout, accessibility basics, metadata, and how HTML works with CSS and JavaScript.