Web exercises solution chapter 1..

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Web exercises chapter 1

Exercise 1 :
<!DOCTYPE html>
<html>
<head>
<title>exercise 1</title>
</head>
<body>

<ol>
<section>
<li><h3>Ahmad</h3>
<ol>
<h4><li>samir</li>
<li>samer</li>
<li>smear 2</li></h4>
</ol>
</li>
</section>

<section>
<li>Ali
<ol>
<li>hamoud</li>
<li>hamed</li>
<li>hamid</li>
</ol>
</li>
</section>

<section>
<li>Omar
<ol>
<li>ammar</li>
<li>amar</li>
<li>omran</li>
</ol>
</li>
</section>
</ol>

</body>
</html>
Exercise 2 :
<!DOCTYPE html>
<html>
<head>
<title>ex2</title>
<meta charest ="utf-8"/>
</head>
<body>

<ol>
<li>M1
<ul>
<li>the first</li>
<li>the second</li>
<li></li>
</ul>
</li>

<li>M2
<ul>
<li>the first</li>
<li>the second</li>
<li>the third</li>
</ul>
</li>
<li>M3
<ul>
<li>the first</li>
<li>the second</li>
<li>the third</li>
</ul>
</li>
<li>M4
<ul>
<li>the first</li>
<li>the second</li>
<li>the third</li>
</ul>
</li>
<li>M5
<ul>
<li>the first</li>
<li>the second</li>
<li>the third</li>
</ul>
</li>
</ol>

</body>
</html>

Exercise 4 :
<!DOCTYPE html>
<html>
<head>
<title>exercise 4</title>
</head>
<body>
<table border="border" cellpadding="5"
cellspacing="10">
<tr>
<th>Country </th>
<th>Capital </th>
<th>currency </th>
<th>minimum employe salary</th>
</tr>
<br>
<tr>
<td>lebanon</td>
<td>beirut</td>
<td>Lira</td>
<td>50$</td>
</tr>
<tr>
<td>turkey</td>
<td>ankara</td>
<td>lira</td>
<td>100$</td>
</tr>
<br>
<tr>
<td>jordan</td>
<td>amman</td>
<td>dinar</td>
<td>250$</td>
</tr>
<br>
<tr>
<td>Saudi arabic kingdome</td>
<td>Riyad</td>
<td>Riyal</td>
<td>700$</td>
</tr>
</table>

</body>
</html>

Exercise 5 :
<!DOCTYPE html>

<html>

<head>

<title>

Exercise 5

</title>

</head>

<body>

<table border="border">

<tr>

<td rowspan="2"></td>

<th colspan="3">Meals</th>

</tr>

<tr>

<th>Breakfast</th>

<th>Lunch</th>

<th>Dinner</th>

</tr>
<tr>

<th>Bread</th>

<td>50g</td>

<td>100g</td>

<td>0g</td>

</tr>

<tr>

<th> Main course</th>

<td>200g</td>

<td>500g</td>

<td>100g</td>

</tr>

<tr>

<th>Vegetable</th>

<td>50g</td>

<td>100g</td>

<td>30g</td>

</tr>

<tr>

<th>Dessert</th>

<td>0g</td>

<td>0g</td>

<td>0g</td>

</tr>
</table>

</body>

</html>

Exercise 6 :
<html>
<head>
<title>Exercise 6</title>
</head>
<body>
<p>
<form action="">
Username:<textarea name="User name" cols="40"
rows="1"></textarea>

<br><br><br>

<input type="checkbox" >Four 100 watt light


bulbs for 2 dollars
<br>
<input type="checkbox"> Eight 100 watt light
bulbs for 4 dollars
<br>
<input type="checkbox"> Four 100 long-life
light bulbs for 3 dollars
<br>
<input type="checkbox"> Eight 100 long-life
light bulbs for 8 dollars

<br> <br><br>

<input type="radio">Master Card <br>


<input type="radio"> Visa <br>
<input type="radio"> Discover

</form>
</p>
</body>
</html>

You might also like