Overview of HTML

HTML 2 minutes read

HTML, which stands for HyperText Markup Language, is the standard language for describing the structure of web documents. HTML utilizes elements and attributes to mark up all the parts of a document and provide structure to it.

HTML documents are a tree of nodes, consisting of HTML elements and text nodes. HTML elements offer semantics and formatting for documents by creating paragraphs, lists, tables, and embedding images and form controls.

Elements may have multiple attributes and content, including other elements and text, and some are empty with the tag and attributes specifying their function. There are several categories of elements, including metadata, sectioning, text, inline semantic, form, interactive, media, component, and scripting. HTML elements are delimited by tags enclosed in angle brackets, < and >.

An element comprises the opening and closing tags, including all the content between them, including nested elements. Proper nesting is important when using nested elements. Browsers interpret the content of the page based on the tags but do not display them.

<p>This paragraph has some
 <strong>bold</strong>
 text.</p>

This paragraph has some bold text.

HTML is flexible, forgiving, and allows for some tags to be omitted, although it is recommended to close all tags and ensure they are correctly nested. Some tags have mandatory closing tags, which are specified in the element’s specification. Replaced elements are replaced by objects such as graphical user interface (UI) widgets or images.

See the Pen Flowing Arrow Card with Title and Text by Projects Engine (@projectsengine) on CodePen.

Was this article helpful?

Add comment