HTML Introduction
What Is It?
HTML is the language used to describe a web page. Tags tell the browser which text is a heading, paragraph, link, or image.
What the Tags Mean
h1: a main heading.p: a paragraph.- HTML: page content.
- CSS: how it looks.
- JavaScript: what happens when people interact.
Example 1
Save each example as index.html and open it in your browser. Each code block is a complete page.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML Introduction</title>
</head>
<body>
<h1>Hello!</h1>
<p>I am learning HTML.</p>
</body>
</html>Browser preview
What you see: The browser shows a large Hello! heading and a sentence underneath.
Example 2: Another Use
Change the words to make a page about yourself.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML Introduction</title>
</head>
<body>
<h1>About me</h1>
<p>My name is Asha. I like reading.</p>
</body>
</html>Browser preview
Simple Tip
Start with one editor and one browser. Learn one tag, change one thing, and look at the result.
Try It Yourself
Replace Asha with your name.