HTML Introduction
HTML Introduction
HTML HOME
HTML Introduction
HTML Editors
HTML Basic
HTML Elements HTML Introduction
HTML Attributes
HTML Headings ❮ Previous Next ❯
HTML Paragraphs
HTML Styles
HTML Formatting HTML is the standard markup language for creating Web pages.
HTML Quotations
HTML Comments
HTML Colors What is HTML? COLOR PICKER
HTML CSS
HTML Links HTML stands for Hyper Text Markup Language
HTML Images HTML is the standard markup language for creating Web pages
HTML describes the structure of a Web page
HTML Favicon
HTML consists of a series of elements
HTML Page Title
HTML elements tell the browser how to display the content
HTML Tables HTML elements label pieces of content such as "this is a heading", "this is a paragraph", "this is a link", etc.
HTML Lists
HTML Block & Inline
HTML Classes
HTML Id
A Simple HTML Document
HTML Iframes
HTML JavaScript
HTML File Paths
Example
HTML Head
<!DOCTYPE html>
HTML Layout
<html>
HTML Responsive
<head>
HTML Computercode <title>Page Title</title>
HTML Semantics </head>
HTML Style Guide <body>
HTML Entities
HTML Symbols <h1>My First Heading</h1>
<p>My first paragraph.</p>
HTML Emojis
HTML Charset
</body>
HTML URL Encode </html>
HTML vs. XHTML
Try it Yourself »
HTML Forms
HTML Forms
HTML Form Attributes
HTML Form Elements Example Explained
HTML Input Types
The <!DOCTYPE html> declaration defines that this document is an HTML5 document
HTML Input Attributes
The <html> element is the root element of an HTML page
HTML Input Form Attributes
The <head> element contains meta information about the HTML page
The <title> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab)
HTML Graphics The <body> element defines the document's body, and is a container for all the visible contents, such as headings, paragraphs,
HTML Canvas images, hyperlinks, tables, lists, etc.
HTML SVG The <h1> element defines a large heading
The <p> element defines a paragraph
HTML Media
HTML Media
HTML Video What is an HTML Element?
HTML Audio
HTML Plug-ins An HTML element is defined by a start tag, some content, and an end tag:
HTML YouTube
<tagname> Content goes here... </tagname>
HTML APIs
HTML Geolocation The HTML element is everything from the start tag to the end tag:
HTML Drag/Drop
HTML Web Storage
<h1>My First Heading</h1>
HTML Web Workers
HTML SSE
<p>My first paragraph.</p>
HTML Examples
HTML Examples Start tag Element content End tag
HTML Editor
<h1> My First Heading </h1>
HTML Quiz
HTML Exercises <p> My first paragraph. </p>
HTML Bootcamp
<br> none none
HTML Certificate
HTML Summary
HTML Accessibility
Note: Some HTML elements have no content (like the <br> element). These elements are called empty elements. Empty elements
HTML References do not have an end tag!
HTML Responsive
HTML Computercode <body>
HTML Semantics
HTML Style Guide
<h1>This is a heading</h1>
HTML Entities
HTML Symbols
HTML Emojis <p>This is a paragraph.</p>
HTML Charset
HTML URL Encode <p>This is another paragraph.</p>
HTML vs. XHTML
HTML Forms
</html>
HTML Form Attributes
HTML Form Elements
HTML Input Types
Note: The content inside the <body> section will be displayed in a browser. The content inside the <title> element will be shown in
HTML Input Attributes
the browser's title bar or in the page's tab.
HTML Input Form Attributes
HTML Graphics
HTML Canvas
HTML SVG HTML History
HTML Media Since the early days of the World Wide Web, there have been many versions of HTML:
HTML Media
HTML Video Year Version
HTML Audio
1989 Tim Berners-Lee invented www
HTML Plug-ins
HTML YouTube 1991 Tim Berners-Lee invented HTML
HTML Drag/Drop
1997 W3C Recommendation: HTML 3.2
HTML Web Storage
HTML Web Workers 1999 W3C Recommendation: HTML 4.01
HTML SSE
2000 W3C Recommendation: XHTML 1.0
HTML References
HTML Tag List This tutorial follows the latest HTML5 standard.
HTML Attributes
HTML Global Attributes
❮ Previous Log in to track progress Next ❯
HTML Tutorial
HTML HOME
HTML Introduction
HTML Editors
Spaces Upgrade Newsletter Get Certified Report Error
HTML Basic
HTML Elements
HTML Attributes
HTML Headings Top Tutorials Top References Top Examples Get Certified
HTML Paragraphs HTML Tutorial HTML Reference HTML Examples HTML Certificate
CSS Tutorial CSS Reference CSS Examples CSS Certificate
HTML Styles
JavaScript Tutorial JavaScript Reference JavaScript Examples JavaScript Certificate
HTML Formatting How To Tutorial SQL Reference How To Examples Front End Certificate
SQL Tutorial Python Reference SQL Examples SQL Certificate
HTML Quotations
Python Tutorial W3.CSS Reference Python Examples Python Certificate
HTML Comments W3.CSS Tutorial Bootstrap Reference W3.CSS Examples PHP Certificate
HTML Colors Bootstrap Tutorial PHP Reference Bootstrap Examples jQuery Certificate
PHP Tutorial HTML Colors PHP Examples Java Certificate
HTML CSS Java Tutorial Java Reference Java Examples C++ Certificate
HTML Links C++ Tutorial Angular Reference XML Examples C# Certificate
jQuery Tutorial jQuery Reference jQuery Examples XML Certificate
HTML Images
HTML Favicon
HTML Page Title FORUM | ABOUT
HTML Tables
W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we
HTML Lists cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.
HTML Forms
HTML Forms
HTML Form Attributes
HTML Form Elements
HTML Input Types
HTML Input Attributes
HTML Input Form Attributes
HTML Graphics
HTML Canvas
HTML SVG
HTML Media
HTML Media
HTML Video
HTML Audio
HTML Plug-ins
HTML YouTube
HTML APIs
HTML Geolocation
HTML Drag/Drop
HTML Web Storage
HTML Web Workers
HTML SSE
HTML Examples
HTML Examples
HTML Editor
HTML Quiz
HTML Exercises
HTML Bootcamp
HTML Certificate
HTML Summary
HTML Accessibility
HTML References
HTML Tag List
HTML Attributes
HTML Global Attributes