What HTML Is and How a Browser Renders It
Quick answer The full form of HTML, why it is a markup language and not a programming language, and the steps by which a browser turns a text file into a page on the screen.
HTML stands for HyperText Markup Language. It is the language in which the pages of the World Wide Web are written. Both halves of the name carry meaning. HyperText is text that contains links to other text: clicking a link on your school website opens another page, something a printed book cannot do. Markup means that you take ordinary text and mark it up with labels that tell the browser what each piece of text is — this part is a heading, this part is a paragraph, break the line here.
HTML is a markup language, not a programming language. This distinction is asked directly, so learn both halves of the answer. A programming language such as Python can take decisions with if, repeat work in a loop, and calculate results. HTML has no variables, no conditions, no loops and no arithmetic; it only describes the structure and appearance of a document. A full-mark answer says what markup does and also what HTML cannot do.
HTML was developed by Tim Berners-Lee and is maintained as an open public standard, so that every browser agrees on what each tag means. Nobody has to buy it, and no special software is needed to write it.
How a browser renders a page. A browser is the software that reads an HTML file and displays it — Google Chrome, Mozilla Firefox, Microsoft Edge, Safari and Opera are all browsers. The steps are:
- You type a URL (Uniform Resource Locator), which is the address of a page — for example the address of the IRCTC railway booking site — or you simply open a file stored on your own computer.
- If the page is on the internet, the browser asks the web server for it using HTTP (HyperText Transfer Protocol), or its secure version HTTPS.
- The server sends the HTML file back. It is ordinary text, nothing more.
- The browser parses the file — reads it and works out what each tag means — and then renders it, that is, draws the finished page on the screen.
The most important consequence of this is that the tags themselves are never shown on the page. If the file contains <p>Welcome</p>, the visitor sees only the word Welcome. Tags are instructions to the browser, not content.
Browsers do not all render identically. HTML is a standard, but the default size of a heading, the default space around a paragraph, the thickness of a horizontal line and the treatment of very old tags can differ from one browser to another, and even between versions of the same browser. So describe such behaviour as what a browser usually does, rather than claiming that one product's screen is the rule, and check your page in more than one browser when you can.
A web page does not need the internet at all. An HTML file on your own disk opens perfectly well, and in a school computer lab a page can be shared over a LAN (Local Area Network) with no internet connection. That is why the whole of this chapter's practical work can be completed offline.
One more rule is worth memorising early: HTML is not case sensitive. <BODY>, <Body> and <body> all mean the same thing. Even so, the accepted convention is to write tags in lowercase, and you should follow it — lowercase is easier to read and is what current standards expect.
- HTML = HyperText Markup Language; HyperText means linked text, Markup means labels that describe the text.
- It is a markup language: no variables, conditions, loops or calculations — it only structures a document.
- The browser fetches a page from a server using HTTP with the page's URL, parses the tags, then renders the page.
- Tags are instructions to the browser and are never displayed on the page itself.
- HTML is not case sensitive, but lowercase tags are the accepted convention.
- Default appearance varies between browsers, so state such behaviour as 'usually', not as a fixed rule.
