4 Examples: HTML Basic
4 Examples: HTML Basic
HTML Basic
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