Home Quick html tutorial
Quick html tutorial PDF Print E-mail
Written by Vrancken Dieter   
Monday, 30 November 2009 22:30

Quick html tutorial!

I'm not going to learn you how to write html i'm just going to show you the basics so that you can understand what you see.
Ok, i'm going to show you a very small html code just read it fast and then i will explain what it means.

<html>
<head>
<title>Website title</title>
</head>
<body>
Welcome to my website!
</body>
</html>

By typing <html> we start the html page.
Within the head tags you can write your CSS code, the site title & more.
Now you probably already know where the title tag is for... for the site title, ofcouse.
The body tag. This i probably the most important tag, cause within the body tags you can write all your content. Like i did in the code above "Welcome to my website!" this will appear in the brower.
Now you probably already know this but going to say it anyway: </html> will end the html page

Ok i hope you get that if you don't please feel free to contact me.
If you've tried this you're probably wondering how you start a new line?
Cause if you press enter in your code it wont appear that way in the browser, right?
Well thats cause it doesn't matter how you write your code in the editor it will always appear in one line,
unless you use <br> at the end of the line, this will start a new line.
Like this:

<body>
Welcome to my website! <br>
(new line will start here)I hope you enjoy your stay!
</body>

You even can do this:
<body>
Welcome to my website! <br> I hope you enjoy your stay!
</body>

This will appear like this:
Welcome to my website!
I hope you enjoy your stay!


You also can add PHP codes in the body, but i'll explain more about that in the PHP tutorial.

I hope this helped you a bit, i will add more to this tutorial later so keep checking!
Last Updated on Monday, 30 November 2009 22:38
 

Advertisement