This is a main heading

And this is a normal text.

This is a paragraph...

This is a subheading

This is a paragraph in a subheading...

This is a heading level 3

This is a heading level 4

Headings give an outline structure to a page

Headings are important for search engines to understand the structure and content of a page. They are also important for screen reader users.

Headings should be used in order

HTML is like a skeleton for a web page. The default style of headings is not very pretty. We will cover how to style headings in a later chapter.

Headings should be used in order

Headings should be used in order. This is the most important heading, and should be used for the main heading of the page. This is a subheading, and should be used for the main sections of the page. You can see that the source code formating is not reflected in the HTML page. To really enforec a line break
you need to use the br tag.

With the pre tag you can format the text in the source code and it will be reflected in the HTML page.
        This is now

        exactly formated
        as you
        type it here...
     

This section will show you lists

Lists are important for structuring content. There are two types of lists in HTML: unordered lists and ordered lists. Unordered lists are for lists where the order of the items doesn't matter, for example a shopping list. Ordered lists are for lists where the order of the items does matter, for example a recipe.

Unordered lists

Unordered lists are created with the ul element. Each item in the list is placed inside a li element. The list items are marked with bullets (typically small black circles).

Ordered lists

Ordered lists are created with the ol element. Each item in the list is placed inside a li element. The list items are marked with numbers by default.

  1. Item 1
  2. Item 2
  3. Item 3

Definition lists

Definition lists are created with the dl element. Each item in the list is placed inside a dt element (for the term being defined) or a dd element (for the definition).

Term 1
Definition 1
Term 2
Definition 2
Term 3
Definition 3

Lists can be nested

Lists can be nested inside each other. This is useful for lists of related items. For example, a list of ingredients for a recipe could be nested inside an ordered list.

  1. Item 1
  2. Item 2
  3. Item 3

This section will show you links

Links are created with the a element. The text between the opening and closing a tags is the link text. The value of the href attribute is the URL of the link.

This is a link to Google

Links can also be created to other pages on the same site. This is called an internal link. Internal links are useful for creating a navigation menu for a website.

This is an internal link to the index page

Links can also be created to other parts of the same page. This is called an anchor link. Anchor links are useful for creating a table of contents for a long page.

This is an anchor link to the section 1 heading

This section will show you images

Images are created with the img element. The value of the src attribute is the URL of the image. The value of the alt attribute is the alternative text for the image. The alternative text is used by screen readers for blind users, and is also displayed if the image fails to load.

Google logo

This section will show you tables

Tables are created with the table element. Each row in the table is created with the tr element. Each cell in the table is created with the td element. The th element is used for the table header.

Column 1 Column 2
Row 1, Column 1 Row 1, Column 2
Row 2, Column 1 Row 2, Column 2

This section will show you forms

Forms are created with the form element.

This section will show you semantic elements

HTML5 introduced a number of new elements that have a semantic meaning.

This section will show you multimedia

HTML5 introduced a number of new elements for multimedia.

This section will show you iframes