You are on page 1of 34
LEARNING THE HTML Markup Language Contents 1.Introduction to HTML 2.Tags 3.What’s in the HTML website? 4.How to add a text 5.Indentation and more tags 6. Lists 7.Hyperlinks 8.Images 9.Basic page structure 10.DIV and SPAN 03 06 09 13 17 19 21 24 27 31 1.Introduction to HTML HTML is an abbreviation for Hypertext Markup Language. It may sound daunting but don’t worry. It’s simply the language used for building websites. We use a HTML to define the content and structure of the website. We use HTML to describe every element on a website. The browser will know how to interpret these elements and how to display them. Take a look at the following examples. Think for a moment about code and how it’s interpreted by the browser: Learning the HTML 03 First example: Header Header Second example:

The text in the paragraph

Paragraph Last example: We write and publish the HTML code in a document with an ".Atm|" extension. The browser knows that such a document contains HTML code and knows how to deal with its content. Learning the HTML 04 For example: We want to create an HTML document named "index". So we create a document named "index.html" - with an ".AtmI" extension. HTML will allow you to add to your website any element imaginable. You can build: * headings, * paragraphs, ¢ forms, ¢ data tables, ¢ video and audio player, ¢ hyperlinks, ¢ graphics, * and much more... Learning the HTML 05 2. Tags We already used some tags in the previous lessons. Now we will take a closer look at them. Here is an example of a simple tag: Header What's important: * - this an opening tag. The browser will know that it should interpret the following code as a level 1 heading. ¢ Welcome - this is the text that will be displayed as a level 1 heading ¢ - this is the closing tag. This is the end of our heading Everything we put between

and

tags will be displayed as a level 1 heading. Learning the HTML 06 There are some of different tags: e - level 1 heading

- paragraph e - hyperlink

- table
- section