0% found this document useful (0 votes)
4 views18 pages

Web Engineering Lab 5

The document outlines a lab exercise for students at Quaid-e-Awam University focused on HTML images, tables, and lists. It includes various tasks that require students to practice inserting images, creating tables with different attributes, and generating lists in HTML. The lab submission deadline is set for August 31, 2016.

Uploaded by

Javed Oad
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views18 pages

Web Engineering Lab 5

The document outlines a lab exercise for students at Quaid-e-Awam University focused on HTML images, tables, and lists. It includes various tasks that require students to practice inserting images, creating tables with different attributes, and generating lists in HTML. The lab submission deadline is set for August 31, 2016.

Uploaded by

Javed Oad
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

QUAID-E-AWAM UNIVERSITY OF ENGINEERING, SCIENCE & TECHNOLOGY, NAWABSHAH

Subject: Web Engineering

Lab 5 HTML Images, Tables and Lists

Objective: HTML Images, Tables and Lists.

Tools. Notepad or any other simple text editor and a web browser.

Note: The main purpose of this lab is to have some hands on practice with HTML. You will have to
submit your solution for the lab by email. Last date to submit the lab 31 August 2016

Task 1. Simple Image Insert

<html>

<head>

<title>Using Image in Webpage</title>

</head>

<body>

<p>Simple Image Insert</p>

<img src="[Link]" alt="Test Image" />

</body>

</html>

Task 2. Simple Image Insert. Image in a forlder

<html>

<head>

<title>Using Image in Webpage</title>

</head>

<body>

<p>Simple Image Insert</p>

<img src="images/[Link]" alt="Test Image" />

</body>
</html>

Task 3. Set Image Width and Height

<html>

<head>

<title>Set Image Width and Height</title>

</head>

<body>

<p>Setting image width and height</p>

<img src=“[Link]" alt="Test Image" width="150" height="100"/>

</body>

</html>

Task 4. Set Image Border

<html>

<head>

<title>Set Image Border</title>

</head>

<body>

<p>Setting image Border</p>

<img src=“[Link]" alt="Test Image" border="3"/>

</body>

</html>

Task 5. Set Image Alignment


<html>

<head>

<title>Set Image Alignment</title>

</head>

<body>

<p>Setting image Alignment</p>

<img src=“[Link]" alt="Test Image" border="3" align="right"/>

</body>

</html>

Task 6. HTML Table Header

<html>

<head>

<title>HTML Table Header</title>

</head>

<body>

<table border="1">

<tr>

<th>Name</th>

<th>Salary</th>

</tr>

<tr>

<td>Ramesh Raman</td>

<td>5000</td>

</tr>
<tr>

<td>Shabbir Hussein</td>

<td>7000</td>

</tr>

</table>

</body>

</html>

Task 7. HTML Table Cellpadding

<html>

<head>

<title>HTML Table Cellpadding</title>

</head>

<body>

<table border="1" cellpadding="5" cellspacing="5">

<tr>

<th>Name</th>

<th>Salary</th>

</tr>

<tr>

<td>Ramesh Raman</td>

<td>5000</td>

</tr>

<tr>

<td>Shabbir Hussein</td>
<td>7000</td>

</tr>

</table>

</body>

</html>

Task 8. HTML Table Colspan/Rowspan

<html>

<head>

<title>HTML Table Colspan/Rowspan</title>

</head>

<body>

<table border="1">

<tr>

<th>Column 1</th>

<th>Column 2</th>

<th>Column 3</th>

</tr>

<tr><td rowspan="2">Row 1 Cell 1</td><td>Row 1 Cell 2</td><td>Row 1 Cell 3</td></tr>

<tr><td>Row 2 Cell 2</td><td>Row 2 Cell 3</td></tr>

<tr><td colspan="3">Row 3 Cell 1</td></tr>

</table>

</body>

</html>
Task 9. HTML Table Background Color

<html>

<head>

<title>HTML Table Background</title>

</head>

<body>

<table border="1" bordercolor="green" bgcolor="yellow">

<tr>

<th>Column 1</th>

<th>Column 2</th>

<th>Column 3</th>

</tr>

<tr><td rowspan="2">Row 1 Cell 1</td><td>Row 1 Cell 2</td><td>Row 1 Cell 3</td></tr>

<tr><td>Row 2 Cell 2</td><td>Row 2 Cell 3</td></tr>

<tr><td colspan="3">Row 3 Cell 1</td></tr>

</table>

</body>

</html>

Task 10. HTML Table Background Image

<html>

<head>

<title>HTML Table Background</title>

</head>

<body>
<table border="1" bordercolor="green" background=“[Link]">

<tr>

<th>Column 1</th>

<th>Column 2</th>

<th>Column 3</th>

</tr>

<tr><td rowspan="2">Row 1 Cell 1</td><td>Row 1 Cell 2</td><td>Row 1 Cell 3</td></tr>

<tr><td>Row 2 Cell 2</td><td>Row 2 Cell 3</td></tr>

<tr><td colspan="3">Row 3 Cell 1</td></tr>

</table>

</body>

</html>

Task 11. HTML Table Width/Height

<html>

<head>

<title>HTML Table Width/Height</title>

</head>

<body>

<table border="1" width="400" height="150">

<tr>

<td>Row 1, Column 1</td>

<td>Row 1, Column 2</td>

</tr>

<tr>
<td>Row 2, Column 1</td>

<td>Row 2, Column 2</td>

</tr>

</table>

</body>

</html>

Task 12. HTML Table Caption

<html>

<head>

<title>HTML Table Caption</title>

</head>

<body>

<table border="1" width="100%">

<caption>This is the caption</caption>

<tr>

<td>row 1, column 1</td><td>row 1, columnn 2</td>

</tr>

<tr>

<td>row 2, column 1</td><td>row 2, columnn 2</td>

</tr>

</table>

</body>

</html>
Task 13. HTML Table

<html>

<head>

<title>HTML Table</title>

</head>

<body>

<table border="1" width="100%">

<thead>

<tr>

<td colspan="4">This is the head of the table</td>

</tr>

</thead>

<tfoot>

<tr>

<td colspan="4">This is the foot of the table</td>

</tr>

</tfoot>

<tbody>

<tr>

<td>Cell 1</td>

<td>Cell 2</td>

<td>Cell 3</td>

<td>Cell 4</td>

</tr>

</tbody>
</table>

</body>

</html>

Task 14. Nested Tables

<html>

<head>

<title>HTML Table</title>

</head>

<body>

<table border="1" width="100%">

<tr>

<td>

<table border="1" width="100%">

<tr>

<th>Name</th>

<th>Salary</th>

</tr>

<tr>

<td>Ramesh Raman</td>

<td>5000</td>

</tr>

<tr>

<td>Shabbir Hussein</td>

<td>7000</td>
</tr>

</table>

</td>

</tr>

</table>

</body>

</html>

Task 15. HTML Unordered List

<html>

<head>

<title>HTML Unordered List</title>

</head>

<body>

<ul>

<li>Beetroot</li>

<li>Ginger</li>

<li>Potato</li>

<li>Radish</li>

</ul>

</body>

</html>

Task 16. HTML Unordered List

<html>

<head>
<title>HTML Unordered List</title>

</head>

<body>

<ul type="square">

<li>Beetroot</li>

<li>Ginger</li>

<li>Potato</li>

<li>Radish</li>

</ul>

</body>

</html>

Task 17. HTML Unordered List type disc

<html>

<head>

<title>HTML Unordered List</title>

</head>

<body>

<ul type="disc">

<li>Beetroot</li>

<li>Ginger</li>

<li>Potato</li>

<li>Radish</li>

</ul>

</body>
</html>

Task 18. HTML Unordered List type circle

<html>

<head>

<title>HTML Unordered List</title>

</head>

<body>

<ul type="circle">

<li>Beetroot</li>

<li>Ginger</li>

<li>Potato</li>

<li>Radish</li>

</ul>

</body>

</html>

Task 19. HTML Ordered List

<html>

<head>

<title>HTML Ordered List</title>

</head>

<body>

<ol>

<li>Beetroot</li>
<li>Ginger</li>

<li>Potato</li>

<li>Radish</li>

</ol>

</body>

</html>

Task 20. Following is an example where we used <ol type="1">

<html>

<head>

<title>HTML Ordered List</title>

</head>

<body>

<ol type="1">

<li>Beetroot</li>

<li>Ginger</li>

<li>Potato</li>

<li>Radish</li>

</ol>

</body>

</html>

Task 21. Following is an example where we used <ol type="I">

<html>

<head>
<title>HTML Ordered List</title>

</head>

<body>

<ol type="I">

<li>Beetroot</li>

<li>Ginger</li>

<li>Potato</li>

<li>Radish</li>

</ol>

</body>

</html>

Task 22. Following is an example where we used <ol type="i">

<html>

<head>

<title>HTML Ordered List</title>

</head>

<body>

<ol type="i">

<li>Beetroot</li>

<li>Ginger</li>

<li>Potato</li>

<li>Radish</li>

</ol>

</body>
</html>

Task 23. Following is an example where we used <ol type="A">

<html>

<head>

<title>HTML Ordered List</title>

</head>

<body>

<ol type="A">

<li>Beetroot</li>

<li>Ginger</li>

<li>Potato</li>

<li>Radish</li>

</ol>

</body>

</html>

Task 24. Following is an example where we used <ol type="a">

<html>

<head>

<title>HTML Ordered List</title>

</head>

<body>

<ol type="a">

<li>Beetroot</li>
<li>Ginger</li>

<li>Potato</li>

<li>Radish</li>

</ol>

</body>

</html>

Task 25. Following is an example where we used <ol type="i" start="4">

<html>

<head>

<title>HTML Ordered List</title>

</head>

<body>

<ol type="i" start="4">

<li>Beetroot</li>

<li>Ginger</li>

<li>Potato</li>

<li>Radish</li>

</ol>

</body>

</html>

Task 26. HTML Definition List

<html>

<head>
<title>HTML Definition List</title>

</head>

<body>

<dl>

<dt><b>HTML</b></dt>

<dd>This stands for Hyper Text Markup Language</dd>

<dt><b>HTTP</b></dt>

<dd>This stands for Hyper Text Transfer Protocol</dd>

</dl>

</body>

</html>

Task 27. Create a web page which shows the list of faculty members along with their pictures, who are
currently teaching you a course in the semester.

You might also like