HTML is the standard markup language for creating Web pages and web Apps. It stands for Hyper Text Markup Language. HTML describes the structure of Web pages using markup. The HTML elements are the building blocks of HTML pages and these important elements are represented by tags. HTML tags label pieces of content such as "image", "heading", "paragraph", "table", and so on…
Browsers do not display the HTML tags, but interpret them to render the content of the page.
A Simple HTML Document
<h1>A Level One Heading</h1>
<p>This is my very first paragraph.</p>
Example Tags Explained
<!DOCTYPE html>— The !DOCTYPE declaration lets the browser know that this file was written in HTML5. It appears at the top of the page before any other HTML element tag.
<html>— The html element is the root element of all HTML pages.
<head>— The head element is where you store your meta information, as well as your links to external CSS stylesheets.
<title>— The title element is nested within the head element – it holds the document's title.
<body>— Within the body element is where you put the content that you'd wish to be seen on the web page.
<h1>— The h1 element is the largest headline tag (there are six in all) – it is used for the highest level titles.
<p>— A humble paragraph or p tag is the element that hold most of your text.
You may have noticed that all of the elements in this example consist of an opening and a closing tag; this is the norm for most HTML elements. In this instance, only the declaration at the top of the document consists of a single tag. You'll get to know the few single self-closing element tags as you study more HTML.
HTML tags are element names surrounded by angled brackets. As HTML element tags almost always come in pairs, they are known as opening and closing tags respectively. The closing (or ‘end’ tag) looks almost the same as the start tag, except there is a backward slash before the element name. See the diagram below:
<elementname> the content of the tag goes here… </elementname>