HTML Tutorial Easy Beginner
| HTML files are just simple text files. You can simply create HTML file by using simple Notepad. Type this in your notepad, and save the file as helloword.html |
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<p>Hello World</p>
</body>
</html>
That’s it. Here is your first website. You can view it by using any web browser like Internet Explorer, Netscape, or Firefox.
HTML is tags language. The first line <!DOCTYPE.. is the declaration tag. It tell the browser what you are doing.
<html>…</html>:
<html> tag is the opening tag for all HTML files. Browser will view everything between <html> and </html> as HTML document.
<head>…</head>:
The <head> should always appear before <body> tag. It contains information that does not appear in the browser window.
<body>…</body>:
Everything that is on contents of your page should will be inside the <body> tag. For instance, pictures or text that shall be shown on the page must be inside this tag.
<p>…</p>:
Web browsers do not keep track what line of code it is on. It does not notice any spaces, unless it is inside paragraph tag.
<br/>:
If you want to start a new line, you have to put a line-break tag. It should look something like this:
I am learning how to make websites<br/>
I love it.

|