A sample head might look something like this:
<head>
<title>My website</title>
</head>
A sample body looks like this:
<body>
This website is about ....
</body>
Notice that the codes have "<" and ">". The word inside the symbols "<" and ">" tells the browser what you want for them to do. These are called tags. So <title>My website</title> means that you are telling the browser that you want the title of your website to be "My website".
Another thing you should notice is that the beginning tag (such as <head>) does not contain a slash "/" while the ending tag does.
One thing to remember is that you must put html tags at your code. Now if you combine the html tags, the head part, and the body part, you'll get this code:
<html>
<head>
<title>My website</title>
</head>
<body>
This website is about ....
</body>
</html>
Note about spaces:
It does not matter if there are spaces between tags. For example, in the code above, there are spaces between "</title>" and "</head>" while there are no spaces between "
" and "</body>".
Below are some of the common tags that are used by webmasters:
- tells the browser to start a paragraph and display the words inside the code
- creates a break which means that the next words will be displayed on a line below instead on displaying on the current line.
<img src="myimage.jpg"> - display myimage.jpg on the browser.
For an interactive tutorial on how to build websites using HTML, visit
http://csshtmltutorial.com/Articles Source - Free Articles