html

HyperText Markup Language: the language of web pages

HTML stands for HyperText Markup Language. It is way of “marking up text” to indicate how should be structured into a web page.

For example, suppose we want a web page to look like this:

Demo Web Page

Hello, World

Welcome to my web page. This web page is a demonstration of HTML.

The HTML code might look like this:

<!DOCTYPE html>
<html>
 <head><title>Example web page</title></head>
 <body>
   <h1>Hello, World</h1>
   <p>
     Welcome to my web page.  This
     web page is a demonstration of
     HTML.
   </p>
 </body>
</html>

Notice a few things:

Elements

An HTML element consists of an open tag, content and a close tag. The element is named for its open tag.

For example, this is one HTML element, a p element:

<p> HTML was first proposed in 1980 by
a physicist named Tim Berners-Lee.</p>

And this is another HTML element, an h1 element.

<h1>HTML Basics</h1>

The content of this element is the text HTML Basics.