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

HTML Elements

This document provides an overview of HTML elements. It defines HTML elements as everything between a start and end tag, such as <p>Content goes here...</p> for a paragraph element. It notes that some elements are empty and don't require an end tag, like <br>. Elements can be nested within each other to build up an HTML document. HTML tags are also not case sensitive.

Uploaded by

ankursingh
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)
13 views3 pages

HTML Elements

This document provides an overview of HTML elements. It defines HTML elements as everything between a start and end tag, such as <p>Content goes here...</p> for a paragraph element. It notes that some elements are empty and don't require an end tag, like <br>. Elements can be nested within each other to build up an HTML document. HTML tags are also not case sensitive.

Uploaded by

ankursingh
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 Tutorial

HTML HOME
HTML Introduction
HTML Editors
HTML Basic
HTML Elements HTML Elements
HTML Attributes
HTML Headings ❮ Previous Next ❯
HTML Paragraphs
HTML Styles
HTML Formatting An HTML element is defined by a start tag, some content, and an end tag.
HTML Quotations
HTML Comments
HTML Colors HTML Elements COLOR PICKER
HTML CSS
HTML Links The HTML element is everything from the start tag to the end tag:
HTML Images
HTML Favicon <tagname>Content goes here...</tagname>
HTML Page Title
HTML Tables Examples of some HTML elements: 
HTML Lists
HTML Block & Inline
<h1>My First Heading</h1>
HTML Classes
HTML Id
HTML Iframes <p>My first paragraph.</p>
HTML JavaScript
HTML File Paths Start tag Element content End tag
HTML Head
HTML Layout <h1> My First Heading </h1>

HTML Responsive
<p> My first paragraph. </p>
HTML Computercode
HTML Semantics <br> none none
HTML Style Guide
HTML Entities
HTML Symbols Note: Some HTML elements have no content (like the <br> element). These elements are called empty elements. Empty elements
HTML Emojis do not have an end tag!
HTML Charset
HTML URL Encode
HTML vs. XHTML

HTML Forms Nested HTML Elements


HTML Forms
HTML elements can be nested (this means that elements can contain other elements).
HTML Form Attributes
HTML Form Elements All HTML documents consist of nested HTML elements.
HTML Input Types
The following example contains four HTML elements ( <html> , <body> , <h1> and <p> ):
HTML Input Attributes
HTML Input Form Attributes

HTML Graphics Example


HTML Canvas
<!DOCTYPE html>
HTML SVG
<html>
<body>
HTML Media
HTML Media <h1>My First Heading</h1>
HTML Video <p>My first paragraph.</p>

HTML Audio
</body>
HTML Plug-ins
</html>
HTML YouTube

Try it Yourself »
HTML APIs
HTML Geolocation
HTML Drag/Drop
HTML Web Storage Example Explained
HTML Web Workers
The <html> element is the root element and it defines the whole HTML document.
HTML SSE

It has a start tag <html> and an end tag </html> .


HTML Examples
HTML Examples Then, inside the <html> element there is a <body> element:
HTML Editor
HTML Quiz
HTML Exercises <body>
HTML Bootcamp
HTML Certificate <h1>My First Heading</h1>
<p>My first paragraph.</p>
HTML Summary
HTML Accessibility
</body>

HTML References
HTML Tag List
The <body> element defines the document's body.
HTML Attributes
HTML Global Attributes
It has a start tag <body> and an end tag </body> .

Then, inside the <body> element there are two other elements: <h1> and <p> :

HTML Tutorial
<h1>My First Heading</h1>
HTML HOME <p>My first paragraph.</p>
HTML Introduction
HTML Editors
HTML Basic The <h1> element defines a heading.
HTML Elements
HTML Attributes It has a start tag <h1> and an end tag </h1> :
HTML Headings
HTML Paragraphs
HTML Styles <h1>My First Heading</h1>
HTML Formatting
HTML Quotations
HTML Comments The <p> element defines a paragraph.
HTML Colors
HTML CSS It has a start tag <p> and an end tag </p> :
HTML Links
HTML Images
HTML Favicon <p>My first paragraph.</p>
HTML Page Title
HTML Tables
HTML Lists
HTML Block & Inline
HTML Classes
HTML Id
Never Skip the End Tag
HTML Iframes
HTML JavaScript Some HTML elements will display correctly, even if you forget the end tag:
HTML File Paths
HTML Head
HTML Layout Example
HTML Responsive
HTML Computercode <html>
HTML Semantics <body>
HTML Style Guide
<p>This is a paragraph
HTML Entities
<p>This is a paragraph
HTML Symbols
HTML Emojis </body>
HTML Charset </html>
HTML URL Encode
HTML vs. XHTML Try it Yourself »

HTML Forms
HTML Forms However, never rely on this! Unexpected results and errors may occur if you forget the end tag!
HTML Form Attributes
HTML Form Elements
HTML Input Types
HTML Input Attributes
Empty HTML Elements
HTML Input Form Attributes
HTML elements with no content are called empty elements.

HTML Graphics The <br> tag defines a line break, and is an empty element without a closing tag:

HTML Canvas
HTML SVG
Example
HTML Media
<p>This is a <br> paragraph with a line break.</p>
HTML Media
HTML Video
HTML Audio Try it Yourself »
HTML Plug-ins
HTML YouTube

HTML APIs
HTML is Not Case Sensitive
HTML Geolocation
HTML Drag/Drop HTML tags are not case sensitive: <P> means the same as <p> .
HTML Web Storage
HTML Web Workers The HTML standard does not require lowercase tags, but W3C recommends lowercase in HTML, and demands lowercase for stricter
document types like XHTML.
HTML SSE

HTML Examples
At W3Schools we always use lowercase tag names.
HTML Examples
HTML Editor
HTML Quiz
HTML Exercises
HTML Bootcamp HTML Tag Reference
HTML Certificate
HTML Summary W3Schools' tag reference contains additional information about these tags and their attributes.
HTML Accessibility
Tag Description
HTML References
<html> Defines the root of an HTML document
HTML Tag List
HTML Attributes <body> Defines the document's body
HTML Global Attributes
<h1> to <h6> Defines HTML headings

For a complete list of all available HTML tags, visit our HTML Tag Reference.
HTML Tutorial
HTML HOME
HTML Introduction
HTML Editors
❮ Previous Log in to track progress Next ❯
HTML Basic
HTML Elements
HTML Attributes
HTML Headings
HTML Paragraphs
HTML Styles
HTML Formatting Spaces Upgrade Newsletter Get Certified Report Error
HTML Quotations
HTML Comments
HTML Colors
Top Tutorials Top References Top Examples Get Certified
HTML CSS
HTML Tutorial HTML Reference HTML Examples HTML Certificate
HTML Links
CSS Tutorial CSS Reference CSS Examples CSS Certificate
HTML Images JavaScript Tutorial JavaScript Reference JavaScript Examples JavaScript Certificate
HTML Favicon How To Tutorial SQL Reference How To Examples Front End Certificate
SQL Tutorial Python Reference SQL Examples SQL Certificate
HTML Page Title Python Tutorial W3.CSS Reference Python Examples Python Certificate
HTML Tables W3.CSS Tutorial Bootstrap Reference W3.CSS Examples PHP Certificate
Bootstrap Tutorial PHP Reference Bootstrap Examples jQuery Certificate
HTML Lists
PHP Tutorial HTML Colors PHP Examples Java Certificate
HTML Block & Inline Java Tutorial Java Reference Java Examples C++ Certificate
C++ Tutorial Angular Reference XML Examples C# Certificate
HTML Classes
jQuery Tutorial jQuery Reference jQuery Examples XML Certificate
HTML Id
HTML Iframes
FORUM | ABOUT
HTML JavaScript
HTML File Paths 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 Head 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 Layout Copyright 1999-2023 by Refsnes Data. All Rights Reserved.


HTML Responsive W3Schools is Powered by W3.CSS.

HTML Computercode
HTML Semantics
HTML Style Guide

HTML Entities
HTML Symbols
HTML Emojis
HTML Charset
HTML URL Encode
HTML vs. XHTML

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

You might also like