This is basic lesson, if you want to learn html. In this lesson you only have to open
notepad in Windows system.
Every html document in basic form must look like this:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250" />
<meta name="keywords" content="page_keywords">
<meta name="description" content="description_of_your_page">
<title>Title_Of_Your_Page</title>
</head>
<body>
This is my page. I can bold this text
</body>
</html>
Ok now something about every line.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
If your page is perfectly good you must add this w3c validator information.
Here you can check your validation.
Here is starting html code where you declarate information about page.
Code:
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250" />
You should change only
charset=windows-1250 if you page is not typed in english language. Check google.pl [something like
page code declaration to get more content types for other languages]
Code:
<meta name="keywords" content="page_keywords">
Keywords about your page. You change only
page_keywords. For example if your page is about
games you can type:
games, rpg, fpp, counter strike, quake, players, unreal, warcraft.
Code:
<meta name="description" content="description_of_your_page">
Description of your page. For example if your page is about
games you can type:
Page about the newest games.
Code:
<title>Title_Of_Your_Page</title>
This is the text which you will see on title bar when you open your page.
All upper information are used by search engines.
Code:
<body>
This is my page. I can bold this text
</body>
Here is everything what you see on your page. All visibles thing for user. For example you can type
<body bgcolor="red"> and you will have red background on your page. More information about this later.
Created by m1chu