Learning HTML

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


 <!DOCTYPE html>
<title>Page Title</title>

<h1>A Level One Heading</h1>
<p>This is my very first paragraph.</p>


Example Tags Explained

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

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>