HTML stands for HyperText Markup Language. It is the standard language used to create and structure content on the web. HTML uses a system of elements represented by tags to define headings, paragraphs, links, images, forms and other content. Every page you visit in a browser is built on HTML — it is the skeleton of the web.
HTML was created by Tim Berners-Lee in 1991 as a way to share documents over the emerging World Wide Web. The first publicly available description of HTML was a document called "HTML Tags", first mentioned on the Internet by Berners-Lee in late 1991. Since then HTML has gone through several major versions: HTML 2.0 (1995), HTML 4.01 (1999), XHTML (2000), and finally HTML5, which was standardized by the W3C and WHATWG in 2014 and remains the current living standard.
An HTML document is made up of nested elements. Each element consists of an opening tag, content, and a closing tag. Some elements are self-closing (void elements) and do not require a closing tag. Tags can carry attributes that provide additional information or behaviour.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>My Page</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is a <a href="https://example.com">link</a>.</p>
<img src="photo.jpg" alt="A photo" />
</body>
</html>
<!DOCTYPE html> tells the browser this is an HTML5 document. Always the first line.<p>Hello</p><img>, <br>, <input>, <meta>, <link><a href="/page">, <img alt="description">HTML5 introduced semantic elements that describe meaning, not just appearance. They help browsers, search engines and assistive technologies understand your content:
<header> — Introductory content or navigation for a page or section<nav> — A set of navigation links<main> — The dominant content of the document (only one per page)<section> — A thematic grouping of content with a heading<article> — A self-contained piece of content (blog post, news item)<aside> — Content tangentially related to the main content (sidebar)<footer> — Footer for a page or section<figure> / <figcaption> — An image or diagram with an optional caption<h1> through <h6> — use only one <h1> per page<p><a href="url">text</a><img src="url" alt="description"><ul> (unordered), <ol> (ordered), items with <li><table>, <tr>, <th>, <td><form>, <input>, <textarea>, <button>, <select><div> (block), <span> (inline) — generic containers<strong> (important), <em> (emphasis)<code> (inline), <pre> (preformatted block)The three core technologies of the web each have a distinct role:
A web page without CSS is plain but readable. A web page without JavaScript still displays content. But a web page without HTML has nothing to show.
alt attributes to images — screen readers use them<div> everywhere<label for="id"><!DOCTYPE html> as the first line<img>, <br>, <input>) do not have closing tagslang attribute on <html> for accessibility and SEOEvery HTML document follows a standard structure:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Page Title</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is a paragraph.</p>
</body>
</html>
The <!DOCTYPE html> declaration tells the browser this is an HTML5 document. The <head> section contains metadata not visible on the page, while the <body> contains all visible content.
Attributes provide additional information about an element and are always written in the opening tag:
<a href="https://example.com" target="_blank" rel="noopener">Visit Example</a>
Common attributes include id (unique identifier), class (CSS class name), src (source URL for images and scripts), alt (alternative text for images) and style (inline CSS).
HTML (HyperText Markup Language) is the standard language used to create and structure content on the web. It uses a system of elements represented by tags to define headings, paragraphs, links, images, forms and other content. Every web page is built on HTML.
HTML stands for HyperText Markup Language. "HyperText" refers to links that connect web pages to each other, and "Markup Language" refers to the system of tags used to annotate and structure content.
HTML is used to structure the content of web pages: headings, paragraphs, lists, links, images, tables, forms and more. Every website you visit in a browser is built on HTML as its foundation.
No. HTML is a markup language, not a programming language. It describes the structure of content but has no logic, variables, loops or conditions. JavaScript is the programming language of the web; HTML is used alongside it to provide structure.
HTML defines the structure and content of a web page — what is on the page. CSS (Cascading Style Sheets) controls the visual presentation — colors, fonts, layout and spacing. They are separate languages always used together.
HTML5 is the fifth and current major version of HTML, standardized in 2014. It introduced semantic elements (<header>, <nav>, <main>, <article>, <footer>), native audio/video support, the <canvas> element, and browser APIs like localStorage and geolocation.