LambdaLabTM
Computer Networks · Class 12 · Web Services · HTML and XML
networksweb services⏱️ 7 min read

HTML

🎬 This chapter has a 12:38 video: Web Services →

A web page looks like headings, paragraphs, pictures and links. But the file the web server sends is just text — text with little labels in angle brackets that tell the browser what each part is. Those labels are HTML.

1What HTML is

HTML
HTML stands for HyperText Markup Language. It is the language used to design web pages. It uses tags to define the structure of a page and how its content should be displayed by the web browser.
  • HyperText: text with links to other pages.
  • Markup: marking parts of the text with tags — this is a heading, this is a paragraph.
  • Language: a fixed set of those tags, with rules for using them.
A page, taken apart into tags

Take the page apart or put it together, and switch elements on and off. Drag sideways to turn.

Each piece of the page, labelled with the HTML tag that made it.
The HTML file for this page
<html>
  <head>
    <title>My School</title>
  </head>
  <body>
    <h1>My School</h1>
    <p>Welcome to our website.</p>
    <img src="school.jpg">
    <a href="contact.html">Contact us</a>
  </body>
</html>

2Tags

A tag is a word inside angle brackets. Most tags come in pairs: an opening tag like <p> and a closing tag with a slash, </p>. Whatever is between them is what the tag describes. A few tags, like <img>, have no closing tag.

TagMeansShown as
<html> … </html>The whole document(everything)
<head> … </head>Information about the page, such as its <title>The name on the browser tab
<body> … </body>Everything that appears on the pageThe page itself
<h1> … </h1>A main headingBig, bold text
<p> … </p>A paragraphA block of text
<img src="school.jpg">A pictureThe image
<a href="contact.html"> … </a>A hyperlinkClickable text that opens another page

HTML’s tags are predefined: you must use the ones the language has — you cannot invent a <marks> tag and expect a browser to know what it means. HTML is not case-sensitive: <P> and <p> are the same tag.

HTML builds the page; CSS styles it
HTML gives a web page its structure. The colours, fonts and layout usually come from CSS (Cascading Style Sheets), and anything that reacts when you click comes from JavaScript. CBSE has asked which of these creates the structure of a page: it is HTML.

3From the board papers

1
Which of the following is used to create the structure of a web page? a) CSS b) HTML c) JavaScript d) FTPCBSE sample paper 2025-26
1 mark
▶Show the answer

b) HTML. CSS styles the page, JavaScript makes it interactive, and FTP is a protocol.

2
‘L’ in HTML stands for: (A) Large (B) Language (C) Long (D) LaserCBSE compartment exam 2024
1 mark
▶Show the answer

(B) Language — HyperText Markup Language.

3
Write the full form of HTML.CBSE board exam 2023 (with TCP)
1 mark
▶Show the answer

HyperText Markup Language.

4Check yourself

Quick Check

Which tag makes a hyperlink to another page?

Quick Check

Where does the text inside <title> appear?