0% found this document useful (0 votes)
10 views

4 Examples: HTML Basic

This document provides examples of basic HTML tags, including headings defined with <h1> to <h6>, paragraphs defined with <p>, links defined with <a> and images defined with <img>. For each example the document shows the HTML tag and attributes used to define the element. It encourages the reader to try out the examples themselves on the provided "Try it yourself" links.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

4 Examples: HTML Basic

This document provides examples of basic HTML tags, including headings defined with <h1> to <h6>, paragraphs defined with <p>, links defined with <a> and images defined with <img>. For each example the document shows the HTML tag and attributes used to define the element. It encourages the reader to try out the examples themselves on the provided "Try it yourself" links.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

4/4/13

HTML Basic

HTML Basic - 4 Examples


Previous
Don't worry if the examples use tags you have not learned. You will learn about them in the next chapters.

Next Chapter

HTML Headings
HTML headings are defined with the <h1> to <h6> tags.

Example
< h 1 > T h i si sah e a d i n g < / h 1 > < h 2 > T h i si sah e a d i n g < / h 2 > < h 3 > T h i si sah e a d i n g < / h 3 >
Try it yourself

HTML Paragraphs
HTML paragraphs are defined with the <p> tag.

Example
< p > T h i si sap a r a g r a p h . < / p > < p > T h i si sa n o t h e rp a r a g r a p h . < / p >
Try it yourself

HTML Links
HTML links are defined with the <a> tag.

Example
< ah r e f = " h t t p : / / w w w . w 3 s c h o o l s . c o m " > T h i si sal i n k < / a >
Try it yourself Note: The link address is specified in the href attribute. (You will learn about attributes in a later chapter of this tutorial).

HTML Images
HTML images are defined with the <img> tag.
w3schools.com/html/html_basic.asp 1/2

4/4/13

HTML Basic

Example
< i m gs r c = " w 3 s c h o o l s . j p g "w i d t h = " 1 0 4 "h e i g h t = " 1 4 2 " >
Try it yourself Note: The filename and the size of the image are provided as attributes.

Previous

Next Chapter

w3schools.com/html/html_basic.asp

2/2

You might also like