HTML5ANDCSS3 logoHTML5ANDCSS3Tools and Tutorials
  • Insights
  • Verify Certificate
HTML5ANDCSS3 logoHTML5ANDCSS3Tools and Tutorials
HTML5ANDCSS3 logoHTML5ANDCSS3Tools and Tutorials

HTML5andCSS3.org helps developers learn modern frontend skills with practical tutorials, production-ready snippets, and fast web tools built for everyday coding.

Quick Links

  • About Us
  • Contact Us
  • Privacy Policy
  • Copyright
  • Disclaimer

Top Tools

  • Try It Editor
  • JSON Formatter
  • CSS Minifier
  • HTML Minifier
  • Base64 Encoder / Decoder

Contact

  • business@html5andcss3.org
Newsletter

Learn at your own pace, practice with useful tools, and build websites you're proud of.

© 2011-2026 html5andcss3.org. All rights reserved.

How to Use

HTML Tutorial

HTML Basics

Introduction to HTMLHTML EditorsHTML StructureHTML Elements & AttributesHTML HeadingsHTML ParagraphsHTML FormattingHTML CommentsHTML Styles

HTML Text and Links

HTML Text FormattingHTML Quotations & CitationsHTML LinksHTML Email Links

HTML Lists and Tables

HTML ListsHTML TablesTable Styling & Borders

HTML Images and Media

HTML ImagesHTML Picture ElementHTML AudioHTML VideoHTML Embed & Object

HTML Forms

HTML Forms OverviewHTML Form ElementsHTML Input TypesHTML Input AttributesHTML Form AttributesHTML Form Validation

HTML Layout

HTML Block vs Inline ElementsHTML Div & SpanHTML Semantic Layout TagsHTML Iframes

Advanced HTML

HTML Entities & SymbolsHTML EmojisHTML Head Element TagsHTML Meta Tags for SEOHTML Responsive Design

HTML References

HTML5 New TagsDeprecated TagsHTML Global AttributesEvent AttributesComplete HTML Tag ListComplete HTML5 ElementsHTML Tutorial PDF
  1. Home
  2. /
  3. Tutorials
  4. /
  5. HTML Tutorial
  6. /
  7. Introduction to HTML

HTML Basics

Introduction to HTML

HTML (HyperText Markup Language) is the standard language for creating web pages. In this introduction, you’ll learn what HTML is, how it works, and why it forms the foundation of all websites on the internet.

What is HTML?

HTML stands for HyperText Markup Language.

It is the standard language used to create webpages and web applications. HTML is not a programming language - it is a markup language that tells the browser how to display content.

Key Points about HTML:

  • HTML uses tags to define elements on a webpage.
  • Every HTML document has a basic structure with head and body sections.
  • HTML files usually have a .html or .htm extension.
  • HTML is interpreted by web browsers like Chrome, Firefox, Safari, and Edge.

History of HTML:

Developed in 1991 by Tim Berners-Lee.

HTML has evolved over time:

  • HTML 1.0 → Basic text formatting.
  • HTML 2.0 / 3.2 / 4.01 → Introduced forms, tables, and more complex formatting.
  • HTML5 → Modern standard with semantic tags, multimedia support, and APIs.

Why HTML is Important:

  • Foundation of the Web – All websites use HTML.
  • Works with CSS & JavaScript – HTML handles structure, CSS handles style, JS handles behavior.
  • Semantic Meaning – Tags give meaning to content for search engines and accessibility.
  • Browser Compatibility – All browsers understand HTML.

Basic Structure of an HTML Document:

Here’s a simple example of a basic HTML5 page:

HTML Example

html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>My First HTML Page</title>
</head>
<body>
    <h1>Welcome to HTML Tutorial</h1>
    <p>This is a simple introduction to HTML.</p>
</body>
</html>

Explanation:

  • <!DOCTYPE html> → Declares HTML5.
  • <html> → Root element of the page.
  • <head> → Contains meta information, title, and links to CSS/JS.
  • <body> → Contains visible content (text, images, links, etc.).
  • <h1> → Main heading
  • <p> → Paragraph

Where to See HTML Output (Running HTML Code)

After writing your first HTML code, the next step is to view the result - and for that, you don’t need any special software.

All you need is a web browser like Google Chrome, Mozilla Firefox, Microsoft Edge, or Safari.

You can save your file with .html extension and then you can open the saved file by double clicking on it.

The file will be opened in default browser like below image

HTML Example

Edit and Refresh

To make changes:

  1. Go back to your text editor and update the HTML code.
  2. Save the file again.
  3. Refresh (F5) your browser window to see the updated output.

💡Tip: Keep your editor and browser windows side by side - so you can code and preview quickly.

If you don’t want to save files locally, you can test your code instantly using online Try it Editor

These allow you to write HTML, CSS, and JavaScript directly in your browser and see results instantly - perfect for beginners.

Tips for Beginners:

  • Always close your HTML tags (<p></p>, <h1></h1>).
  • Indent your code for readability.
  • Use semantic tags whenever possible (<header>, <footer>, <article>).
  • Test your HTML in different browsers.

Browser Support

Chrome
Edge
Firefox
Safari
Opera
IE9+
YesYesYesYesYesYes

Conclusion

You can run and test your HTML code anywhere, even without internet access.

Start with simple pages, observe the browser output, and experiment - that’s the best way to learn HTML!

NextHTML Editors