Every webpage has to have the following tags:
<html> </html> indicates that it is an html page
<head> </head> for information about the page
<title> </title> allows you to set the title bar
<body> </body> where you will put your html stuff
Inside the body of the html page, is where you will have your paragraphs about you, pictures, links and anything else that you would like to display. In this tag, you can also change the color of the webpage.
Some other tags of interest:
<p></p> indicates a paragraph
<h1></h1> indicates a headline
<h2></h2> smaller headline
<h3></h3> even smaller headline
<b></b> makes text bold
<u></u> underlines text
<i></i> italicizes text
To change the font properties (size or color for example):
<font size="5">Makes this text bigger</font>
<font color="red">Makes this text red</font>
<font color="blue" size="5">Makes this text bigger and blue</>
To add a link to the page:
<a href="http://www.qc.edu">Makes a link to QC</a>
To add an image to the page:
<img src="images/cat.jpg">
<img src="http://www.example.com/images/cat.jpg">
The first img tag places a local picture of a cat on the webpage. The second one adds a picture from a link elsewhere.
Here is a skeleton of a basic webpage:
<html>
<HEAD><TITLE>This is my website</TITLE></HEAD>
<body bgcolor="yellow">
<p>Hello, this is my website</p>
</html>
No comments:
Post a Comment