iwantcoding.com
🔥 Daily 👥 Rooms 🏆 Top Log in Sign up

HTML Introduction

HTML stands for HyperText Markup Language. It is the standard markup language for documents designed to be displayed in a web browser.

How HTML fits in

An HTML document is plain text. The browser reads the tags, builds a structured tree of elements (the DOM), and paints the result on the screen.

Browser Server Rendered page GET /page HTML
Fig 1. The browser fetches an HTML document and turns it into a page.

What HTML can do

  • Mark up text as headings, paragraphs, lists, quotes.
  • Embed images, video, audio, and other media.
  • Link documents together with hyperlinks.
  • Collect input through forms.
  • Describe document semantics for search engines and screen readers.
Note: HTML is a markup language, not a programming language. It has no variables, loops, or conditionals — it only describes structure.

Example

Example
<!DOCTYPE html>
<html>
<head>
    <title>HTML Introduction</title>
</head>
<body>

<h1>HTML Introduction</h1>
<p>This is a demo page for the "HTML Introduction" lesson.</p>

</body>
</html>
Try it Yourself »

Exercise

Add an <h1> heading with the text "My First Page" inside the body.

<!DOCTYPE html> <html> <body> </body> </html>

Test yourself

Q1. What does HTML stand for?
Q2. Which kind of language is HTML?
Q3. Where does the browser turn HTML into a visible page?

Discussion

Loading…