Professional Documents
Culture Documents
HTML <address>
<address>
Written by Jon Doe.<br>
Visit us at:<br>
Example.com<br>
Box 564, Disneyland<br>
USA
</address>
4. HTML Link
4.1 Target attribute
Target Value
Description
_blank
_self
Opens the linked document in the same frame as it was clicked (this i
_parent
_top
framename
5. HTML Image
5.1 Syntax
<img src="url" alt="some_text">
6. HTML Tables:
6.1 Defining HTML tables:
<tr>: hng
<td>: ct thng
<th>: ct heading
V d:
<table style="width:100%">
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
<style>
table, th, td {
border: 1px solid black;
}
</style>
7. HTML Form
7.1 <form> Element
<form>
.
form elements
.
</form>
f. <textarea> Element:
<textarea name="message" rows="10" cols="30">
The cat was playing in the garden.
</textarea>
g. <button> Element:
<button type="button" onclick="alert('Hello World!')">Click Me!</button>
i. <checkbox> Input:
<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>
k. <date> Input:
<form>
Birthday:
<input type="date" name="bday">
</form>
l. <color> Input:
<form>
Select your favorite color:
<input type="color" name="favcolor">
</form>
m. <time> Input:
<form>
Select a time:
<input type="time" name="usr_time">
</form>
o.