HTML: Tags

Basic HTML

Tag Description
<!DOCTYPE>      
Defines the document type
<html> Defines an HTML document
<head> Contains metadata/information for the document
<title> Defines a title for the document
<body> Defines the document's body
<h1> to <h6> Defines HTML headings
<p> Defines a paragraph
<br> br stands for break line, it inserts a single line break
<hr> hr stands for Horizontal Rule it defines a thematic change in the content. This tag is used to put a line across the webpage.
<!--...-->Defines a comment

Lists

Tag                                                       Description
<ul>             Defines an unordered list
<ol>             Defines an ordered list
<li>             Defines a list item
<dir>             Not supported in HTML5. Use <ul> instead.
            Defines a directory list
<dl>             Defines a description list
<dt>             Defines a term/name in a description list
<dd>            Defines a description of a term/name in a description list

Comments

Popular posts from this blog

REST API

Quantum Computing

XML v/s JSON