header h1
| <h1>This is a header h1.</h1> <h2>This is a header h2.</h2> <h3>This is a header h3.</h3> <h5>This is a header h5.</h5> <h6>This is a header h6.</h6> |
This is a header h1This is a header h2This is a header h3This is a header h5This is a header h6 |
Comment and paragraph
| <!--This is a comment. Comments are not displayed in the browser--> <p>This is a paragraph.</p> |
This is a paragraph. |
Format text in a document
|
<i>Italic text</i> <b>Bold text</b> <big>Big text</big> <small>Small text</small> <em>Emphasized text</em> <strong>Strong text</strong> <dfn>Definition term</dfn> <code>Computer code text</code> <samp>Sample computer code text</samp> <kbd>Keyboard text</kbd> <var>Variable</var> <cite>Citation</cite> |
Italic text Bold text Big text Small text Emphasized text Strong text Definition term Computer code textSample computer code text Keyboard text Variable Citation |
Line break
| This text contains<br />a line break. | This text contains a line break. |
Image is marked up as follows:
| <img src="images/banner.png" width="750" alt="banner" /> | |
Hyperlink is a reference (an address) to any resource on the web: an HTML page, an image, a sound file, a movie...
| <a href="http://www.w3schools.com/">Visit W3Schools!</a> | Visit W3Schools! |
The target Attribute defines where the linked document will be opened.
The code below will open the document in a new browser window:
| <a href="page1.html" target="_blank">page1.html</a> | page1.html |
Link Image
| <a href="http://www.w3schools.com/" target="_blank"><img border="0" src="images/banner.png" width="750" alt="banner" /></a>a line break. |
|
Link Music file
| <a href="http://potlatch20.net/queer/10.Shahaf_Ifhar_Too_many_windows.mp3" target="_blank">download 3.59 MB</a> | download 3.59 MB |
List - one ordered and one unordered HTML list:
| <ol> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol> <ul> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ul> |
|