Basic structure of an HTML Document

HTML: The Skeleton of a Web Page

Think of HTML as the "skeleton" of a house.Before you can decorate and furnish, you need a solid supporting structure: foundation, walls, ceiling. HTML works in the same way for a web page, providing the fundamental structure on which styles (CSS) and interactive behaviour (JavaScript) rest.

DOCTYPE and Basic Structure

DOCTYPE: Every HTML document begins with .This declaration is not an actual HTML tag, but serves to tell the browser to prepare to interpret the document as HTML5, the latest and most advanced version of HTML.It is a bit like setting the rules of the game before we begin.

<html> tag: After the DOCTYPE, comes the tag, which encloses all the content of your web page.It is like the ground and outer walls of your digital house, defining the boundaries of everything you build inside.

<head> tag: This section acts as the 'brain' of the page. Here you insert information that is vital but invisible to users, such as the page title (which appears in the browser tab), links to CSS style sheets, JavaScript scripts and other meta information describing the document.

<body> tag: If the is the brain, the is the 'body' of your page.Here live all the elements visible to visitors: text, images, videos, links, buttons and more. It is the space where you express the creativity and content of your web page.


Help us improve the content 🤩

You can leave comments here.

Last updated