You are on page 1of 4

What is HTML?

HTML stands for HyperText Markup Language. It is used to create Web pages. That is, Web pages all over the world consist of HTML. It is relatively easy to learn, with the basics being accessible to most people in one sitting; and quite powerful in what it allows you to create. The definition of HTML is HyperText Markup Language.

 

HyperText is the method by which you move around on the web — by clicking on special text called hyperlinks which bring you to the next page. The fact that it ishyper just means it is not linear — i.e. you can go to any place on the Internet whenever you want by clicking on links — there is no set order to do things in. Markup is what HTML tags do to the text inside them. They mark it as a certain type of text (italicised text, for example). HTML is a Language, as it has code-words and syntax like any other language.

HTML Page Structure
Below is a visualization of an HTML page structure:

HTML Element Syntax
  

An HTML element starts with a start tag / opening tag An HTML element ends with an end tag / closing tag The element content is everything between the start and the end tag

   Some HTML elements have empty content Empty elements are closed in the start tag Most HTML elements can have attributes HTML Headings HTML headings are defined with the <h1> to <h6> tags. Example <img src="w3schools.jpg" width="104" height="142"> HTML Formatting Tags HTML uses tags like <b> and <i> for formatting output. . like bold or italic text.</p> HTML Links HTML links are defined with the <a> tag.</p> <p>This is another paragraph. Example <a href="http://www. Example <h1>This is a heading</h1> <h2>This is a heading</h2> <h3>This is a heading</h3> HTML Paragraphs HTML paragraphs are defined with the <p> tag. <p>This is a paragraph.com">This is a link</a> HTML Images HTML images are defined with the <img> tag.w3schools. These HTML tags are called formatting tags.

The list items are marked with bullets (typically small black circles). images. A <td> tag can contain text. lists. <ul> <li>Coffee</li> <li>Milk</li> </ul> . and each row is divided into data cells (with the <td> tag). HTML Table Tags HTML Lists The most common HTML lists are ordered and unordered lists: An ordered list: 1. etc. forms. The second list item 3.HTML Tables Tables are defined with the <table> tag." and holds the content of a data cell. The third list item An unordered list:    List item List item List item HTML Unordered Lists An unordered list starts with the <ul> tag. A table is divided into rows (with the <tr> tag). links. Each list item starts with the <li> tag. The first list item 2. td stands for "table data. other tables.

Milk HTML Description Lists A description list is a list of terms/names. with a description of each term/name. The <dl> tag defines a description list.white cold drink</dd> </dl> How the HTML code above looks in a browser: Coffee . Each list item starts with the <li> tag. <ol> <li>Coffee</li> <li>Milk</li> </ol> How the HTML code above looks in a browser: 1.How the HTML code above looks in a browser:   Coffee Milk HTML Ordered Lists An ordered list starts with the <ol> tag.white cold drink .black hot drink Milk .black hot drink</dd> <dt>Milk</dt> <dd>. The list items are marked with numbers. Coffee 2. The <dl> tag is used in conjunction with <dt> (defines terms/names) and <dd> (describes each term/name): <dl> <dt>Coffee</dt> <dd>.