HTML Elements




HTML Elements

Last Updated Jul 24, 2015, 04:40:00 PM

HTML elements are the individual components of html document. Everything we write in the HTML document are enclosed by html tags

HTML has many elements which supports and works for different purposes. For example if you look at a complete HTML document each tag has its own purpose.

See the below example for sample html elements in document

A complete HTML element is the start tag and end tag of html element

Example


Try It Now

HTML has various tags to display the conent on the webpage.

Baisc HTML Elements

Document metadata Elements

Metadata contains information about the page. This includes information about styles, scripts and data to help software (Search engines, browsers, etc.)

Start Tag End Tag Description GIF Video Example
<head> <head/> Head Tag Watch GIF Try It Now
<link> <link/> link Tag Watch GIF Try It Now
<meta> <meta/> meta Tag Watch GIF Try It Now
<style> <style/> style Tag Try It Now
Content sectioning Elements

Content sectioning elements allow you to organise the document content into logical pieces

Tag Description GIF Video Example
<h1> Heading 1 Tag Watch GIF Try It Now
<h2> Heading 2 Tag Watch GIF Try It Now
<h3> Heading 3 Tag Watch GIF Try It Now
<h4> Heading 4 Tag Watch GIF Try It Now
<h5> Heading 5 Tag Watch GIF Try It Now
<h6> Heading 6 Tag Watch GIF Try It Now
<link> link Tag Watch GIF Try It Now
<address> address Tag Watch GIF Try It Now
<body> body Tag Try It Now
<footer> footer Tag Watch GIF Try It Now


Text content

Use HTML text content elements to organize blocks or sections of content placed between the opening body and closing body tags.

Tag Description GIF Video Example
<p> paragraph Tag Watch GIF Try It Now
<ul> unordered list Tag Watch GIF Try It Now
<ol> Ordered list Tag Watch GIF Try It Now
<li> list Tag Watch GIF Try It Now
<hr> horizontal Tag Watch GIF Try It Now
Browser Support
Property
Elements (Yes) (Yes) (Yes) (Yes) (Yes) (Yes) (Yes)


Sources and Credits

The source of the content has been referred and updated with Mozilla Foundation and w3C

Last Updated Jul 24, 2015, 04:40:00 PM