W3Schools
home HOME Tutorials | References | Examples | Forum | About
Search W3Schools :

HTML Basic
HTML HOME
HTML Introduction
HTML Get Started
HTML Basic Tags
HTML Elements
HTML Attributes
HTML Formatting
HTML Entities
HTML Links
HTML Frames
HTML Tables
HTML Lists
HTML Forms
HTML Images
HTML Background
HTML Colors
HTML Colorvalues
HTML Colornames

HTML Quick List

HTML Advanced
HTML Layout
HTML Fonts
HTML 4.0 Why
HTML Styles
HTML Head
HTML Meta
HTML URLs
HTML Scripts
HTML Attributes
HTML Events
HTML URL Encode
HTML Webserver
HTML Summary

Examples/Quiz
HTML Examples
HTML Quiz
HTML Exam

References
HTML Tag List
HTML Attributes
HTML Events
HTML Colornames
HTML Character Sets
HTML ASCII
HTML ISO-8859-1
HTML Symbols
HTML URL Encode
HTML Lang Codes
HTTP Messages

Selected Reading
Web Statistics
Web Glossary
Web Hosting
Web Quality

W3Schools Tutorials
W3Schools Forum

Helping W3Schools

Introduction to HTML

Previous Next

HTML Code

<html>
<body>

<h1>My Homepage</h1>

<p>This page is about me.</p>

</body>
</html>


HTML Output

My Homepage

This page is about me.

Try it yourself


What is HTML?

HTML is a language for describing web pages.

  • HTML stands for Hyper Text Markup Language
  • HTML is not a programming language, it is a markup language
  • A markup language is a set of markup tags
  • The markup tags describe how text should be displayed

HTML Markup Tags

HTML markup tags are usually called HTML tags

  • HTML tags are keywords surrounded by angle brackets like <html>
  • HTML tags normally come in pairs like <b> and </b>
  • The first tag in a pair is the start tag, the second tag is the end tag

Note: The start and end tags are also called the opening and closing tags.


What is an HTML File?

  • An HTML file is a text file with HTML tags
  • An HTML file name must end with .htm or .html
  • An HTML file can be created using a simple text editor
  • An HTML file is often called an HTML document or a Web Page

When a browser displays a web page, it will not display the markup tags. The browser uses the markup tags to understand the layout of the page.


An HTML Document

<html>
<body>
<p>This is my first paragraph</p>
<p>This is my <b>second</b> paragraph</p>
</body>
</html>

Try it yourself

Example Explained

When a browser displays a web page, it will not display the markup tags.

The text between the <html> and </html> tags describes a web page.

The text between the <body> and </body> tags is displayed in the web browser.

The text between the <p> and </p> tags is displayed as paragraphs.

The text between the <b> and </b> tags is displayed in a bold font.


Writing HTML

In this tutorial we use a plain text editor (like Notepad) to edit HTML. This is a good way to learn HTML.

However, professional web developers often prefer HTML editors like FrontPage or Dreamweaver, instead of writing plain text.

In the next chapter of this tutorial, you will learn how to create a web site on your own computer.


Previous Next


DeepTrawl; Take the headache out of finding website errors.
DeepTrawl; Take the headache out of finding website errors.
Go to the DeepTrawl website
Download DeepTrawl for PC / Mac
See DeepTrawl demo video
DeepTrawl; Take the headache out of finding website errors.

Check your site for errors with one click. No more one-by-one page checks, DeepTrawl will find all the errors on your site in seconds.

DeepTrawl is incredibly easy to use, simply type the url of your site & hit go. You'll see all the errors in all your pages, including:

  - Dead Links (404's etc.)

  - Missing Images

  - Spelling Mistakes (USA / UK / Canadian English)

  - Invalid xhtml (checked against w3c standards)

  - Common html Errors (missing meta-tags etc.)

  - User Defined Errors (out of date texts/html etc.)  

  - Unwanted User Postings (profanity, spam)

Fix any error easily using the integrated html editor. Download free trial now for PC & Mac.

More Info || Download Free Trial || Watch Demo Video




diploma   

Get Your Diploma!

W3Schools' Online Certification Program is the perfect solution for busy professionals who need to balance work, family, and career building.

The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.

The JavaScript Certificate is for developers who want to document their knowledge of JavaScript and the HTML DOM.

The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.



Jump to: Top of Page or HOME or Printer Friendly Printer friendly page

W3Schools provides material for training only. We do not warrant the correctness of its contents. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.

Copyright 1999-2008 by Refsnes Data. All Rights Reserved.

Validate Validate W3C-WAI level A conformance icon W3Schools was converted to XHTML in December 1999
Web charting
Web based charting
for ASP.NET
WEB HOSTING
$15 Domain Name
Registration
Save $20 / year!
Buy UK Domain Names
Register Domain Names
Cheap Domain Names
Cheap Web Hosting
Best Web Hosting
PHP MySQL Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
WEB BUILDING
Website Templates
Flash Templates
Website Builder
Internet Business Opportunity
Custom Programming
FREE Trial or Demo
Web Content Manager
Forms,Web Alerts,RSS
Download XML editor
Free Flash Website
EDUCATION
US Web Design Schools
HTML Exam