Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 2

HTML Page setup

Open Notepad, and type out this:

<html>

<head>
<title></title>
</head>

<body>

</body>

</html>

Save as filename.html you can view it in the browser if you open.

Setting up Windows to save as .html

You have to set your windows so that files display their file extension. Like file.txt,
will be a notepad TXT file. File.jpg will be a jpg file.

To do that
Press CTRL + E (it will open My Computer) -> Go to -> Tools -> Folder Options
-> View -> Uncheck the “Hide extensions for known file types”

Creating an HTML Table

<table>
<tr>
<td> Content</td>
</tr>
</table>

Tag Attributes

<table class=”classname”></table>
<table border=”0”></table>
<table cellpadding=”0”></table>
<table cellspacing=”0”></table>

Or <table class=”classname” border=”0” cellpading=”0” cellspacing=”0”></table>

Attributes are optional parameters to customize how the output looks.


<!-- HTML Comments -->

To make Web server recognize that the file is the front page of the site

You have to name your file index.html in that folder, that would be the first page
the user sees when he enters that folder.

Tags

<b>This is bold text</b> <br />


<i>This is italic text</i> <br />
<u>This is underlined text</u> <br />

<br /> is a line break, if you don’t put it the text will continue on the same line.

<p>This is a paragraph</p> Paragraph tag this will make a paragraph

<div>This text is in container</div> Container tag, you won’t see anything


different only that

<span>This text is just regular text</span>

CSS

To make HTML pretty you need to know Cascading Style Sheets or CSS.

References to learn from

http://www.w3schools.com/Xhtml/default.asp XHTML = HTML modern


w3schools.com is a very nice reference

http://www.myhtmltutorials.com/table.html Making HTML tables

http://www.htmldog.com/guides/htmlbeginner/

Nice HTML beginner tutorial – very good one

You might also like