KodingKaro
HTML · Beginner · Introduction to HTML

What HTML is and what it does

HTML gives web content structure and meaning. Understanding that role makes it easier to decide what belongs in HTML and what belongs in CSS or JavaScript.

✓ What you will learn in this topic

  • Explain the purpose of What HTML is and what it does in a real HTML document.
  • Choose and apply the elements shown in both examples.
  • Recognize the specific mistake described in this lesson.

Concept explanation

HTML stands for HyperText Markup Language. A markup language places elements around content so a browser can identify a heading, paragraph, link, image, or form control. It does not decide the page color or implement application logic. Think of HTML as the labeled frame of a house: it says which spaces are rooms and doors, while other technologies handle appearance and behavior.

Syntax

Most elements use an opening tag, content, and a closing tag. The tag name communicates the content role.

Example 1: a small page

The h1 identifies the page’s main heading; p groups a sentence into a paragraph.

<h1>Community Garden</h1>
<p>Learn to grow fresh herbs at home.</p>

Expected result: A prominent Community Garden heading followed by a paragraph appears in the page.

Example 2: a practical page

The article groups a standalone workshop announcement and its supporting sentence.

<article>
  <h2>Weekend workshop</h2>
  <p>Bring a notebook and a pair of gloves.</p>
</article>

Expected result: A second-level heading and explanatory paragraph form one self-contained announcement.

Common mistakes

HTML describes the meaning and structure of content; it is not a programming language that performs calculations or a styling language.

Best practices

Start with a small, valid document and add meaningful elements as the content needs them.

Practice exercise

Create a tiny profile page with a title, one heading, and two paragraphs. Open it locally, edit a sentence, save, and refresh to connect the source with the browser result.

Lesson summary

  • Use HTML elements to describe what content is, not merely how you want it to look.
  • Start with a small, valid document and add meaningful elements as the content needs them.

Knowledge check

Which technology gives a paragraph its structural meaning?

Show the explanation

The p element marks the sentence as a paragraph; CSS may style it, but CSS does not give it that HTML meaning.

Practical example

html
<h1>Community Garden</h1>
<p>Learn to grow fresh herbs at home.</p>

Expected result:

A prominent Community Garden heading followed by a paragraph appears in the page.

Hands-on practice task

Create a tiny profile page with a title, one heading, and two paragraphs. Open it locally, edit a sentence, save, and refresh to connect the source with the browser result.

In this section

Other lessons in Introduction to HTML

Broaden your knowledge

Related learning topics