From http://www.w3schools.com (Copyright Refsnes Data)

Basic HTML Examples

Previous Next

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


HTML Headings

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

<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>

Try it yourself


HTML Paragraphs

HTML paragraphs are defined with the <p> tag.

<p>This is a paragraph</p>
<p>This is another paragraph</p>

Try it yourself


HTML Links

HTML links are defined with the <a> tag.

<a href="http://www.w3schools.com">This is a link</a>

Note: The <a> tag contains an attribute (href) to provide the link address.

Try it yourself


HTML Images

HTML images are defined with the <img> tag.

<img src="constr4.gif" width="144" height="50" />

Note: The name of the image and the size are provided as attributes.

Try it yourself


Previous Next

From http://www.w3schools.com (Copyright Refsnes Data)