Logo Code X Community

Welcome to the Introduction

HTML stands for HyperText Markup Language. It is the most widely used language on the web to develop web pages.

In late 1991, Tim Berners-Lee created HTML, but HTML 2.0 (1995) was the first standard version. HTML provides a way to display web pages that include text, images, and multimedia content.

HTML files are stored on a web server. When you want to visit a website, you enter the URL (Uniform Resource Locator) — the website’s address — into the browser’s address bar.

The <html> Tag

This is the root tag of every HTML page. HTML tags are keywords (called tag names) surrounded by angle brackets.

● HTML tags usually come in pairs like <html> and </html>

● The first tag is the start tag; the second tag is the end tag

● The end tag includes a forward slash (/) before the tag name

<tag_name> content </tag_name>

Basic Structure of HTML

An HTML document has two main parts:

  1. Head – The <head> element contains the title and metadata of the document.
  2. Body – The <body> element contains the content you want to display on the webpage.

Here's a simple example – try it!

<html>
  <head>
    <title>Webpage</title>
  </head>
  <body>
    <h1>Heading 1</h1>
    <h2>Heading 2</h2>
    <p>Paragraph 1</p>
  </body>
</html>

If it works, move to the next topic.