Html Basics

Refresh

Basic page structure

The format of a basic html page is:



<html>  
 <body> 
  Text and other content goes here...
 </body> 
</html>  

Click to see this page in your browser.

Formatting

Lines of text in an html page all run together unless they are grouped into paragraphs or separated by line breaks.

A paragraph of text is indicated using the <p> tag. For example:


<p>This is a paragraph of text</p>

These lines are broken up using line breaks:<br>

<br>
Line one<br>
Line two<br>
Line three<br>

Unlike most html tags, there is no closing tag for the <br> tag.

Hyperlinks

A hyperlink can be used to open another page using an anchor tag.

For example