HTML

HTML describes the structure of a page.

HTML code is the characters that are inside the angled brackets, e.g. <body>. These are called elements. Elements are usually made up by two tags, an opening and a closing tag. The closing tag has a forward slash before the element name, e.g. </body> . Some elements, such as <img> does not need a closing tag because it is not possible to have content between the tags.

Each element acts as a container, telling you something about the information that lies in it.

Tags and elements might be a bit confusing to separate. In short, elements represent some structure in the document, and consists of an opening and closing tag. E.g. <body> is a tag while <body></body> is an element, enclosed by two tags.

Last updated