When you type an address into a browser and press Enter, a page appears within a second or two. Behind that short wait, several computers cooperate. Understanding that cooperation, and the language in which the page is written, is the first step in web development.

The World Wide Web

The World Wide Web, usually called the web, is a very large collection of linked documents and resources. These documents are stored on computers called web servers, and each one has a unique address called a URL. A web browser such as Chrome, Firefox, Edge or Safari is the program that requests a document from a server and displays it for the user. The web is not the same as the internet. The internet is the worldwide network of connected computers, while the web is one service that runs on that network. Email and file transfer are other services on the same network.

Definition: Web browser. Software that requests web pages from servers and displays them to the user.

The browser sends a request for a page. The server finds the file and sends it back. The browser then reads the file and draws the page on the screen.

What HTML Is

HTML stands for HyperText Markup Language. The word hypertext means text that contains links to other documents. The word markup means that the author surrounds pieces of content with labels called tags, and each tag tells the browser what kind of content it is. A tag may say that a line is a heading, that a group of words is a paragraph, or that a piece of text is a link.

Definition: HTML. A markup language that describes the structure and content of a web page.

HTML describes structure and meaning. It does not describe calculations or decisions. For this reason it is called a markup language and not a programming language. Colours and layout are added by CSS, and behaviour is added by JavaScript, which later units explain.

History and Evolution

HTML was created by Tim Berners-Lee at CERN, a research laboratory in Switzerland, in the early 1990s. The first public description appeared around 1991. Later versions added features as the web grew. Table 1.1 lists the main milestones.

Table 1.1: Milestones in the history of HTML

Year Version Main change
1991 First HTML Headings, paragraphs, lists and links
1995 HTML 2.0 First standard version, with forms
1999 HTML 4.01 Style sheets, scripts and richer tables
2000 XHTML 1.0 HTML rewritten under strict XML rules
2014 HTML5 Audio, video, canvas and semantic elements

HTML5 is the current major version. It added elements such as <video>, <audio>, <nav> and <footer>, and it removed old presentation tags such as <font>. Browsers now agree closely on how HTML5 should behave.

Objectives of HTML

The main objectives of HTML are to publish information that any computer can display, to link documents together, to separate the content of a page from its appearance, and to let pages work on many kinds of device. Because a page is plain text, it can be written in any text editor and opened in any browser.

Example 1.1: Following one page request

A student types https://www.example.com/index.html into a browser.

  1. The browser asks the domain name system for the server's address.
  2. The browser sends a request for index.html to that server.
  3. The server finds the file and sends it back with the status 200, meaning success.
  4. The browser reads the tags in the file and displays the page.

Common mistakes

  • Believing that the web and the internet are the same thing.
  • Calling HTML a programming language, although it has no loops, conditions or variables.
  • Thinking that the browser shows the HTML file as typed, instead of reading the tags and building a display from them.

Key takeaways

  • The web is a service that runs on the internet, and a browser fetches pages from web servers.
  • HTML marks up content with tags, and the browser turns the tags into a displayed page.
  • HTML5, standardised in 2014, is the current major version and adds audio, video and semantic elements.
  • Content is written in HTML, appearance in CSS and behaviour in JavaScript.

Practice questions

  1. Name the two programs that take part in every page request.
  2. What does the word markup mean in HTML?
  3. In which year did HTML5 become an official recommendation?

Answers to the practice questions

  1. A web browser, which is the client, and a web server.
  2. Labelling parts of the content with tags that tell the browser what each part is.
  3. In 2014.

Sources

  • Official BCA syllabus (NEP 2025 scheme), Web Application Development, course code 25BCA405DS04, Unit I