GNVHSGNVHSDEBUG

About HTML

HTML (HyperText Markup Language) is the standard markup language used to create web pages. It defines the structure and content of your web pages and is the fundamental building block of the World Wide Web.

What is HTML?

HTML stands for HyperText Markup Language. It's a markup language, which means it uses a system of tags to define elements within a document.

These elements tell the web browser how to display the content. Think of HTML as the skeleton of a webpage — it provides structure but not style or interactivity.

Web browsers like Chrome, Firefox, Safari, and Edge read HTML documents and render them into visible or audible web pages. HTML elements are represented by tags that label pieces of content such as "heading", "paragraph", "table", and so on.

Key Characteristics:

  • HTML documents have a .html or .htm file extension
  • HTML tags are surrounded by angle brackets: <tagname>
  • Most tags come in pairs: <tagname>content</tagname>
  • Tags can contain attributes: <tagname attribute="value">

A Simple HTML Example:

<!DOCTYPE html>
<html>
  <head>
    <title>My First Webpage</title>
  </head>
  <body>
    <h1>Welcome to HTML</h1>
    <p>This is a paragraph of text.</p>
    <a href="https://example.com">This is a link</a>
  </body>
</html>

What This Produces:

Welcome to HTML

This is a paragraph of text.

This is a link

Why Learn HTML?

Easy to Learn

HTML uses a simple, readable tag syntax that's intuitive and beginner-friendly

Universal Compatibility

HTML works across all browsers, devices, and operating systems

Foundation of the Web

Every website starts with HTML, regardless of what other technologies are used

Constantly Evolving

HTML5 introduced powerful features for modern web applications

Brief History of HTML

1993

HTML 1.0

The first version of HTML was created by Tim Berners-Lee, consisting of just 18 elements

1995-1997

HTML 2.0 - 3.2

Added features like tables, text flow around images, and form elements

1997-1999

HTML 4.0

Introduced stylesheets (CSS), scripting, frames, and better accessibility features

2000-2008

XHTML

Reformulated HTML as an XML application, bringing stricter rules and better compatibility

2008-Present

HTML5

The current standard, adding semantic elements, video/audio support, canvas for drawing, and many APIs for advanced web applications

HTML and Related Technologies

HTML rarely works alone in modern web development. It's usually combined with these complementary technologies:

HTML

Provides structure and content

<h1>This is a heading</h1>

CSS

Controls presentation and styling

h1 { color: blue; font-size: 24px; }

JavaScript

Adds behavior and interactivity

document.querySelector('h1').addEventListener('click', function() { alert('Clicked!'); });

Ready to Write Your First HTML?

Now that you understand what HTML is and why it matters, let's create your first webpage!

Create Your First Webpage