View text HTML Lecture PDF.
Read Getting to Know HTML

HTML stands for HyperText Markup language.

HTML contains the semantic building blocks of the web. It's all about giving content meaning through structure.

HTML documents are made up of tags. An html tag is a piece of text (called an element) with angle brackets (<>) on each side. It looks like this:

HTML elements and tags are predetermined. They can't be made up.

Most of the time, tags come in pairs of opening tag and closing tag. Here is an example with a div (a very common box element):

Elements may have attributes, which are additional pieces of information that can serve different purposes. One common attribute is class, which is used to help style the element using CSS. Here is what adding class to a div looks like:

Elements can contain other elements or text. Here is an example of a div element with nested content:

Here is the basic skeleton of an HTML page.

And here are various tags in HTML:

Updated on July 11, 2016