HTML is the standard markup language for Web pages. HTML describes the structure of a Web page. HTML consists of a series of elements called tags. Tags mark up the start of an element, such as a paragraph, and they mark the end of an element.
Most tags must have two parts: an opening tag and a closing tag. For example, to create a paragraph, you would use the
tag. The opening tag is
, and the closing tag is
. Anything between these two tags is a paragraph.
HTML also has empty elements, which don’t have a closing tag. For example, the line break element
doesn’t need a closing tag because it doesn’t contain any content.
The HTML Declaration
The declaration helps the browser to understand the type of document you are writing.
For HTML5, the declaration is:
The HTML5 Declaration
The declaration for HTML5 is very simple. You just need to add:
at the beginning of your document, like this:
This is some text in my document