html format and structure explained

Author

Reads 1.1K

Focused shot of HTML and CSS code on a monitor for web development.
Credit: pexels.com, Focused shot of HTML and CSS code on a monitor for web development.

HTML format and structure is the backbone of the web. HTML stands for HyperText Markup Language, which is used to create web pages.

HTML documents are made up of elements, which are represented by tags. These tags are surrounded by angle brackets and are used to define different parts of a web page, such as headings, paragraphs, and images.

A basic HTML document starts with a doctype declaration, followed by the html tag, which contains the head and body sections. The head section contains metadata about the document, while the body section contains the content.

HTML elements can be nested inside each other to create a hierarchical structure. For example, a paragraph element can be nested inside a heading element.

Typography

In HTML format, typography is crucial to convey meaning and emphasize certain words or phrases. You can use the tag to display text in italics without implying emphasis.

This is useful when you want to distinguish between different types of text, like foreign words or phrases. For example, using the tag can make a word or phrase stand out without changing its meaning.

To display text in italics, simply wrap the text in the tag, like this: italicized text.

HTML Versions and Conventions

Credit: youtube.com, html5 tutorials - html versions ?

HTML versions have undergone significant changes over the years. XHTML, a separate language, began as a reformulation of HTML 4.01 using XML 1.0.

XHTML 1.0 was published as a W3C Recommendation on January 26, 2000, and was later revised and republished on August 1, 2002. It offers the same three variations as HTML 4.0 and 4.01, reformulated in XML, with minor restrictions.

There are two main axes differentiating HTML variations: SGML-based HTML versus XML-based HTML (referred to as XHTML), and strict versus transitional (loose) versus frameset.

Here are the main versions of XHTML:

  • XHTML 1.0 (published on January 26, 2000)
  • XHTML 1.1 (published on May 31, 2001)
  • XHTML 2.0 (abandoned in 2009)

Naming Conventions

The most common filename extension for files containing HTML is .html, but did you know that a common abbreviation of this is .htm? This is because some early operating systems and file systems, such as DOS, limited file extensions to three letters.

DOS was a common operating system in the past, and its limitations still affect some file systems today.

The .htm extension originated from this limitation, and it's still widely used today.

I've worked with files on various systems, and I can attest that the .html and .htm extensions are widely recognized, but it's always a good idea to stick with the standard .html extension for clarity.

Intriguing read: Htm or Html

Variations

Credit: youtube.com, Understanding HTML Versions

HTML has undergone many changes and variations over the years. The first version of XHTML, XHTML 1.0, was published as a W3C Recommendation on January 26, 2000.

There are several variations of HTML, and understanding them can be a bit confusing. The main differences lie in their compatibility with SGML and XML, as well as their level of strictness. HTML4 variations are differentiated by these two axes.

XHTML is a reformulation of HTML 4.01 using XML 1.0, and it's now referred to as the XML syntax for HTML. It's no longer being developed as a separate standard.

The various HTML versions have different levels of strictness, with some being more permissive than others. For example, XHTML 1.1 is based on XHTML 1.0 Strict, but includes minor changes and can be customized.

Here's a brief summary of the main HTML versions:

Understanding these variations can help you make informed decisions when working with HTML and XHTML.

Draft and Timeline

Credit: youtube.com, HTML - Formatting - W3Schools.com

XHTML versions were published in different stages, with the first being XHTML 1.0 in January 2000.

This version was later revised and republished in August 2002, offering the same three variations as HTML 4.0 and 4.01.

XHTML 1.1 was published in May 2001, based on XHTML 1.0 Strict, but with some minor changes.

It's worth noting that XHTML 1.1 can be customized and is reformulated using modules in the W3C recommendation "Modularization of XHTML".

Here's a brief timeline of the major XHTML versions:

  • XHTML 1.0: Published on January 26, 2000, and revised on August 1, 2002.
  • XHTML 1.1: Published on May 31, 2001.
  • XHTML 2.0: A working draft that was abandoned in 2009.

XHTML 2.0 was incompatible with XHTML 1.x, making it more like a new language than an update to XHTML 1.x.

Ann Predovic

Lead Writer

Ann Predovic is a seasoned writer with a passion for crafting informative and engaging content. With a keen eye for detail and a knack for research, she has established herself as a go-to expert in various fields, including technology and software. Her writing career has taken her down a path of exploring complex topics, making them accessible to a broad audience.

Love What You Read? Stay Updated!

Join our community for insights, tips, and more.