Web Technology Paper Mids
Web Technology Paper Mids
To be filled by Student
b. Write the difference between DIV/CSS layouts vs. HTML Table layouts, which is more
useful and why?
ANSWER:
XML and HTML are both markup language with a lot of similarities and differences between them.
XML supplements HTML functionally via added extensions like CSS. XML would never be a
replacement for HTML but would be an extension to it.
Answer:
<!DOCTYPE html>
<html>
<head>
<style>
table {
width:50%;
table, th, td {
border-collapse: collapse;
padding: 2px;
td, th {
text-align:left;
</style>
</head>
<body>
<table>
<tr>
<th><u><b>Province</b></u></th>
<th><u><b>Capital</b></u></th>
<th><u><b>Population</b></u></th>
</tr>
<tr>
<td bgcolor="#ff0000">Punjab</td>
<td>Lahore</td>
<td>12,642,000</td>
</tr>
<tr>
<td ><b>Sindh</b></td>
<td bgcolor="#006400"><b>Karachi</b></td>
<td ><b>16,094,000</b></td>
</tr>
<tr>
<td><b><i>KPK</i></b></td>
<td><b><i>Peshawer</i></b></td>
<td bgcolor="#0096FF"><b><i>2,203,000</i></b></td>
</tr>
</table>
</body>
</html>
Answer:
<html>
<body>
<form>
<label>Name:</label><br>
<label>Email:</label><br>
<label>Phone Number:</label><br>
<label>File Field:</label><br>
<button type="button">Save</button>
</form>
</body>
</html>