Please enable JavaScript.
Coggle requires JavaScript to display documents.
Various Tags in HTML - Coggle Diagram
Various Tags in HTML
!DOCTYPE TAG:
<!DOCTYPE> Defines the document type
The declaration is not an HTML tag. It is an "information" to the browser about what document type to expect. In HTML 5, the declaration is simple: <!DOCTYPE html>
HTML TAG:
<html> Defines an HTML document
The <html> tag represents the root of an HTML document.
The <html> tag is the container for all other HTML elements (except for the <!DOCTYPE> tag).
Head tag:
<head> Contains information for the document
The <head> element is a container for metadata (data about data) and is placed between the <html> tag and the <body> tag.
Title tag
<title> Defines a title for the document
HTML element that specifies the title of a web page.
Title tags are displayed on search engine results pages as the clickable headline for a given result, and are important for usability and social sharing.
Body tag
<body> Defines the document's body
The <body> element contains all the contents of an HTML document, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
There can only be one <body> element in an HTML document.
Heading tag
<h1> to <h6> Defines HTML headings
HTML defines six levels of headings.
A heading element implies all the font changes, paragraph breaks before and after, and any white space necessary to render the heading.
PARAGRAPH TAG
<p> Defines a paragraph
Browsers automatically add a single blank line before and after each <p> element.
Line Break tag:
<br> Inserts a single line break
The <br> tag inserts a single line break.
The <br> tag is useful for writing addresses or poems.
The <br> tag is an empty tag which means that it has no end tag.