Skip to content

Introduction

HTML (HyperText Markup Languague) is a markup (or tag) language that allows you to define what roles will be performed on the individual elements on the (website) website. These elements can be compared to the bricks we use to build a website. For a list of all available tags, grouped by category, see W3C SCHOOL. In this knowledge base, we focus on the description of the basic and most used ones.

Syntax

The simplest tag consists of a name and a body. The tag should open and its name should be inside the <> characters. Most tags should also be closed. The closing of the tag should have the same name as the opening and should be inside the characters </>, e.g .:

<markerName>Element content</markerName>

HTML also allows you to nest tags inside other (or with the same name) tags, e.g .:

<outerTag>
     Parent content
     <internalTag>
         Child content
     </internalTag>
</outerTag>

Tags, in addition to the name, can also have attributes. The attribute consists of the name and optionally the value of the attribute, e.g.:

<p hidden content="Hello">Content</p>

HTML interpretation in the browser

Web browsers (such as Chrome or Firefox) are applications that interpret a file with HTML code. The code from such a file is analyzed and at the same time converted into a record understandable for the browser. Based on parsing the HTML code, a DOM tree is created.