0% found this document useful (0 votes)
11 views8 pages

1 Notes

Uploaded by

danishayubansari
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)
11 views8 pages

1 Notes

Uploaded by

danishayubansari
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
You are on page 1/ 8

Question bank for Web designing Practical

1. Write HTML code to change the background of web page.

<html>
<head>
<title> Background </title>
</head>
<body background="C:\Users\Ayub Ansari\Desktop\
DANEEYAL\WORKING\WEB DES\Example\The-Amazing-
Spider-Man-Franchise-Gwen-Stacy-Emma-Stone.jpg">
<h1> As per your Background<h1>
</body>
</html>
2. Write HTML code to show the working of anchor tag on web
page.

<!DOCTYPE html>
<html>
<body>
<h1> ANCHOR TAG </h1>
<a href="https://valiacollege.co.in/">
Valia College WEB</a>
</body>
</html>
3. Write JavaScript code to display “Hello World” on web page.

<html>
<body>
<title> Javascript </title>
<script language="javascript" type="text/javascript">
<!--
document.write ("Hello World!")
//-->
</script>
</body>
</html>
4. Write HTML code to draw table on web page.

<!DOCTYPE html>
<html>
<head>
<title>Table</title>
<style>
table {
width: 50%;
border-collapse: collapse;
margin: 20px auto;
}
th, td {
border: 1px solid #000;
padding: 10px;
text-align: center;
}
</style>
</head>
<body>
<h1 style="text-align: center;">Simple Table Example</h1>
<table>
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Age</th>
<th>City</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>John Doe</td>
<td>28</td>
<td>New York</td>
</tr>
<tr>
<td>2</td>
<td>Jane Smith</td>
<td>34</td>
<td>Los Angeles</td>
</tr>
<tr>
<td>3</td>
<td>Mike Johnson</td>
<td>23</td>
<td>Chicago</td>
</tr>
</tbody>
</table>
</body>
</html>
5. Write HTML code to draw table and change the colour on web
page.

<html>
<head>
<title> Table & Colour </title>
</head>
<body>
<h1> Valia College<h1>
<table border=10 width=50%>
<caption> Admission 1997-98</caption>
<tr> <th bgcolor=#ff0000 align=center> Community
<th bgcolor=#00ff00 align=center> Male
<th bgcolor=#0000ff align=center> Female
<tr><td bgcolor=#ff0000 align=center> OC
<td bgcolor=#00ff00 align= center >35
<td bgcolor=#0000ff align= center >15

<tr><td bgcolor=#ff0000 align=center> BC


<td bgcolor=#00ff00 align= center >50
<td bgcolor=#0000ff align= center >45
<tr><td bgcolor=#ff0000 align=center> SC/ST <td
bgcolor=#00ff00 align= center >65 <td
bgcolor=#0000ff align= center >12
</table>
</body>
</html>

6. Write HTML code to show the working of input tag on web


page.

<html>
<head>
<title>Form</title>
</head>
<body>
<hr>
<h1>Input Tag Example</h1>
<hr>
<form action = ""> <p>
<input type = "text" name = "Name" size = "25" /> </p>
</form><hr>
</body>
</html>

You might also like