Web Pages Explained

Web pages partly explained for Carlyle Gardens Computer Club.

An HTML web page can be considered as having three parts.

Document Type Declaration

Head

Body

Document Type Declaration

The first line, a Document Type Declaration, is a link to a Document Type Definition (DTD). This is the specification for that version of HTML or XHTML.

While technically it is human readable, it is specifically intended to be computer readable. It describes exactly what markup the web page can contain. So unless you have learnt how to read that sort of specification, looking at it is a bit of a waste of time. If writing a web page, you just copy the correct version of that line.

During the Browser Wars, this line was often used as a heuristic to decide which version of web browser rendering would be used. The deprecated older versions, or the Strict modern versions.

Head

Head is hidden information to help a web browser understand and present a web page. The only bit you normally see is the Title, which typically shows up at the top of your browser window.

You may also see a Meta tag with the attribute Description, which a search engine like Google may display as a guide to the contents of that web page.

Body

Body is the actual content of a web page. The stuff that you see on the display. It is all just text, which are surrounded by tags.