Welcome to the HTML Basics Tutorial! This guide will help you understand the fundamental concepts of HTML, which is the standard markup language for creating web pages.

What is HTML?

HTML stands for HyperText Markup Language. It is used to create and structure content on the web. HTML elements are the building blocks of HTML pages.

HTML Elements

HTML elements are defined by tags. A tag is a word enclosed in angle brackets. For example, <h1> is an HTML tag.

  • Start Tag: <element>
  • End Tag: </element>

Example

Here's a simple HTML document:

<!DOCTYPE html>
<html>
<head>
  <title>HTML Basics</title>
</head>
<body>
  <h1>Hello, World!</h1>
  <p>This is an example of an HTML document.</p>
</body>
</html>

HTML Structure

An HTML document has a specific structure:

  • Doctype: Declares the document type and version of HTML.
  • HTML: The root element that contains all the content of the document.
  • Head: Contains meta-information about the document, such as the title.
  • Body: Contains the content of the document, such as text, images, and links.

HTML Elements

Here are some common HTML elements:

  • <h1> to <h6>: Headings
  • <p>: Paragraphs
  • <a>: Links
  • <img>: Images
  • <div>: Divisions
  • <span>: Span elements

Learning Resources

For more information, check out our comprehensive HTML Tutorial.

HTML Elements