Escolar Documentos
Profissional Documentos
Cultura Documentos
Elements of a web page. .............................................................................................................. - 2 Create web pages using a text editor (Notepad). ...................................................................... - 3 Your first web page ...................................................................................................................... - 3 Paragraphs ................................................................................................................................... - 3 Horizontal Line & Line break ........................................................................................................ - 4 Horizontal line .......................................................................................................................... - 4 Line Break..................................................................................................................................... - 4 Text Formatting ............................................................................................................................ - 5 Text Heading ............................................................................................................................ - 5 Fonts ......................................................................................................................................... - 5 Hyperlink.................................................................................................................................. - 6 HTML Styles CSS .................................................................................................................... - 6 HTML Tables................................................................................................................................. - 7 Inserting a table .................................................................................................................... - 7 HTML Table Headers ............................................................................................................ - 7 HTML Lists .................................................................................................................................... - 8 Unordered Lists (bullets) ...................................................................................................... - 8 Ordered Lists ........................................................................................................................ - 8 Definition Lists ...................................................................................................................... - 8 HTML Forms ................................................................................................................................. - 9 Input Elements ...................................................................................................................... - 9 Text Fields ............................................................................................................................ - 9 Password Field...................................................................................................................... - 9 Radio Buttons .............................................................................................................................. - 10 Checkboxes ............................................................................................................................... - 10 Submit Button.............................................................................................................................. - 10 -
Good Luck!
Powered by Arjun De Silva
Page - 1 -
4. IMAGE
1. TITLE
2. BODY
7. LIST
6. TEXT FIELD
5. HYPERLINK
3. FOOTER
9. FORM
Page - 2 -
Paragraphs
<html>
<body>
<p>This is my first paragraph.</p>
</body>
</html>
<html>
<body>
<p>This is a paragraph.</p>
<p>This is the second paragraph.</p>
<p>This is the third paragraph.</p>
</body>
</html>
Page - 3 -
Line Break
A paragraph basically addresses a specific matter. Therefore you should insert
paragraph tags <p> for different paragraphs in web pages. But to move down the
same paragraph the HTML uses another coding called a line break.
<html>
<body>
This is the first line of the paragraph. <br/>
This is the second line of the paragraph. <br/>
This is the third line of the paragraph
</body>
</html>
Page - 4 -
Fonts
<html>
<body>
</body>
</html>
Page - 5 -
</body>
</html>
</body>
</html>
Page - 6 -
<table border="1">
<tr>
<td>Row 1, cell 1</td>
<td>Row 1, cell 2</td>
</tr>
</table>
<table border="1">
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>
<table border="1">
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>
Page - 7 -
<ul>
<li>Coffee</li>
<li>Milk</li>
<li>Tea</li>
</ul>
Ordered Lists
<ol>
<li>Coffee</li>
<li>Milk</li>
</ol>
Definition Lists
<dl>
<dt>Coffee</dt>
<dd>- Coffee is a black hot drink</dd>
<dt>Milk</dt>
<dd>- Milk is a white cold drink</dd>
</dl>
Page - 8 -
<form>
.
input elements
.
</form>
Text Fields
<form>
First name: <input type="text" name="firstname" /> <br />
Last name: <input type="text" name="lastname" />
</form>
Password Field
<form>
Password: <input type="password" name="pwd" />
</form>
Page - 9 -
Checkboxes
<form>
<input type="checkbox" name="vehicle" value="Bike" /> I have
a bike<br />
<input type="checkbox" name="vehicle" value="Car" /> I have
a car
</form>
Submit Button
<form name="input" action="html_form_action.asp"
method="get">
Username: <input type="text" name="user" />
<input type="submit" value="Submit" />
</form>
Page - 10 -