HTML (HyperText Markup Language) is the standard language for creating web pages. It uses tags to define content structure and appearance. Here's a quick overview:

What is HTML?

  • Definition: HTML is used to structure content on the web. 🧱
  • Purpose: It tells browsers how to display text, images, and other media. 🖼️
  • Example: A simple HTML document starts with <!DOCTYPE html> and includes <html>, <head>, and <body> tags. 📄

Basic Structure

A valid HTML document includes:

  1. <!DOCTYPE html>: Declares the document type. 🔧
  2. <html>: Root element of the document. 🌐
  3. <head>: Contains metadata like title and styles. 📦
  4. <body>: Holds the visible content. 🖥️

Example:

<!DOCTYPE html>
<html>
  <head>
    <title>My First Page</title>
  </head>
  <body>
    <h1>Hello, World!</h1>
  </body>
</html>

HTML Tags

Tags are enclosed in < and >. Common types include:

  • Heading Tags: <h1> to <h6> for section titles. 📖
  • Paragraph Tags: <p> for text blocks. 📝
  • List Tags: <ul> and <ol> for unordered/ordered lists. 📌

For more details on HTML tags, visit HTML_Tags.

Common Elements

  • Text Formatting: Use <strong>, <em>, or <code> for emphasis or code. 💬
  • Images: Insert with <img src="..." alt="...">. 🖼️
  • Links: Create with <a href="..." target="_blank">...</a>. 🔗

Example of Image Insertion

HTML_element

Further Reading

For a visual guide to HTML elements, check out HTML_Element_Guide. 📚