Web Design and Development
Web Design and Development
Experiment-1
Aim:Create a linkwith the name of Mallareddy University and linkthat name to
theuniversity website and Insert an image and create a link such that clicking
on image takesusertoanotherpage.
Program code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body bgcolor="pink">
<center>
</center>
</body>
</html>
Output:
ExerciseProgram:
Create a basic webpage using html tags to display links of Home Page, About us,
Services, Contact with images respectively.
Program:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
</header>
</nav>
</main>
</footer>
</body>
</html>
Output:
Experiment–2
Aim:DesignyourCVwiththefollowingco
ntents
Personaldetails
Workexperience
Educationaldetails
Skills
Program:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
html, body {
overflow: hidden;
</style>
</head>
<body bgcolor="gray";>
<center>
<table border="1">
<tr>
<td>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td colspan="2">
</td>
</tr>
<tr>
<td colspan="2">
<ul style="font-style:italic;">
<li style="list-style-type: square;">HTML/CSS</li>
</ul>
</td>
</tr>
</table>
</center>
</body>
</html>
Output:
ExerciseProgram:
Createa webpagefordemonstrationofCSSbyapplying
Inlinestyle
Internalstyle
Externalstyle
Program code:
<html>
<head>
<style type="text/css">
body
.c1{cursor:crosshair}
.c2{cursor:pointer}
.c3{cursor:move}
.c4{cursor:text}
.c5{cursor:wait}
.c6{cursor:help}
</style>
<title>CSS(Inline,InternalandExternal)</title>
</head>
<body bgcolor="cyan">
<h1 style="color:blue;text-align:center;">CSS(Inline,InternalandExternal)</h1>
<p>Heading is Styled by InlineCSS</p>
</html>
Style.css
p.left
text-align:left;color:blue;
font-family:Cambria;font-size:large;
text-indent:20px;
p.center
text-align:center;
text-decoration:underline;text-transform:uppercase;letter-spacing:-3px;
word-spacing:20px;font-size:larger;
p.right
{
text-align:right;color:red;
font-family:Tahoma;font-size:15pt;
text-decoration:overline;font-style:italic;
b#headline
color:orange;font-size:22px;font-family:arial;
text-decoration:underline;
Output:
Experiment–3
Aim:CreateaWebpagetodisplayasimplecalculatortoperformthefollowingoperations:
Sum
Product
Difference
Quotient
Program:
<html>
<head>
<title>CALCULATOR</title>
</head>
<style>
html, body {
overflow: hidden;
input {
width: 100%;
padding: 40px;
font-weight: bold;
input:hover {
background: silver;
</style>
<body bgcolor="pink">
<div align="center">
<h2>SIMPLECALCULATOR</h2>
<script type="text/javascript">
a = ['1', '2', '3', '+', '4', '5', '6', '-', '7', '8', '9', '*', 'C', '0', '=', '/'];
if (i == 12)
continue;
if (i == 14)
continue;
if (i == 3 || i == 7 || i == 11|| i == 15) {
continue;
else
document.write('</table></form></div>');
</script>
</div>
</body>
</html>
Output:
ExerciseProgram:
TodesignanysimplewebpageusingJavaScripttodemonstrateonframetags.
Program:
3.2.html
<html>
<head>
<title>FrameExample</title>
</head>
<frameset rows="25%,75%">
<frameset cols="30%,70%">
<frame src="menu.html"name="menuFrame">
<frame src="content.html"name="contentFrame">
</frameset>
</frameset>
</html>
menu.html:
<!DOCTYPE html>
<html>
<head>
<title>Menu</title>
</head>
<body>
<ul>
<script>
functionloadContent(page){
parent.contentFrame.location.href = page;
</script>
</body>
</html>
content.html:
<!DOCTYPE html>
<html>
<head>
<title>Content</title>
</head>
<body>
<h1>Welcome to Content</h1>
</body>
</html>
Soe.html:
<html>
<body>
<p><strong>B.Tech:</strong></p>
<ul>
<li><p>COMPUTERSCIENCE&ENGINEERING</p></li>
<li><p>ARTIFICIALINTELLIGENCE&MACHINELEARNING</p></li>
<li><p>DATASCIENCE</p></li>
<li><p>CYBERSECURITY</p></li>
<li><p>INTERNETOFTHINGS</p></li>
<li><p>INFORMATIONTECHNOLOGY</p></li>
</ul>
<p><strong>M.Tech:</strong></p>
<ul>
<li><p>COMPUTERSCIENCE&ENGINEERING</p></li>
<li><p>CLOUDCOMPUTING</p></li>
<li><p>SOFTWAREENGINEERING</p></li>
<li><p>BIGDATAANALYTICS</p></li>
</ul>
</body>
</html>
Soa.html:
<html>
<body>
<p><strong>Bsc:</strong></p>
<ul>
<li><p>B.Sc.(Hons.)AGRICULTURE</p></li>
<li><p>B.Sc.(Hons.)HORTICULTURE</p></li>
<li><p>B.Sc.(Hons.)FORESTRY</p></li>
<li><p>B.Sc.(Hons.)FOODSCIENCE&TECHNOLOGY</p></li>
</ul>
<p><strong>M.Sc.Agriculture:</strong></p>
<ul>
<li><p>GENETICS&PLANTBREEDING</p></li>
<li><p>AGRONOMY</p></li>
<li><p>ENTOMOLOGY</p></li>
<li><p>PLANTPATHOLOGY</p></li>
</ul>
</body>
</html>
Som.html:
<html>
<body>
<p><strong>BBAPROGRAMMES:</strong></p>
<ul>
<li><p>BBA-DualSpecialization(Buss.Analytics,Fin.,Mrkg.,&HRM)</p></li>
<li><p>BBA-LogisticsManagement</p></li>
<li><p>BBA-BusinessAnalytics</p></li>
<li><p>BBA-BankingandFinance</p></li>
</ul>
<p><strong>MBAPROGRAMMES:</strong></p>
<ul>
<li><p>MBA-DualSpecialization(Fin.,HRM,IT,&Mrkg.)</p></li>
<li><p>MBA-Agri.BusinessManagement</p></li>
<li><p>MBA-BusinessAnalytics</p></li>
<li><p>MBA-Logistics&SupplyChainManagement</p></li>
</ul>
</body>
</html>
Output:
Experiment-4
Aim:
Createawebpagetoacceptindividualmarksfromtheuserandcomputethegradeofth
estudent.
Program:
4.1.html
<html>
<head>
<title>Grade Calculator</title>
<style>
body
label
input
width: 100px;
margin-bottom: 10px;
button
{
padding: 10px 20px; background-color: #4CAF50; color: white;
#result {
</style>
</head>
<body>
<h2>Grade Calculator</h2>
<form id="marksForm">
<label for="subject1">Subject 1:
<label for="subject2">Subject 2:
<label for="subject3">Subject 3:
<label for="subject4">Subject 4:
<label for="subject5">Subject 5:
<label for="subject6">Subject 6:
</form>
<div id="result">
</div>
<script>
functioncalculateGrade() {
constaverageMarks = totalMarks / 6;
let grade;
</script>
</body>
</html>
Output:
ExerciseProgram:
Createawebpagetodisplaytimetable.
Program:
4.2.html
<html>
<head>
</head>
<tr align="center">
<th>DAY/TIME</th>
<th>09:10AM <br>10:10AM</th>
<th>10:10AM <br>11:10AM</th>
<th>11:10AM <br>11:20AM</th>
<th>10:20AM <br>12:20PM</th>
<th>12:20PM <br>01:20PM</th>
<th>01:20PM <br>02:20PM</th>
<th>02:20PM <br>03:20PM</th>
</tr>
<tr align="center">
<td>MON</td>
<td>WWD</td>
<td>AD</td>
<td rowspan="2">BREAK</td>
<td>AD</td>
<td rowspan="6"><br>L<br>U<br>N<br>C<br>H<br></td>
</tr>
<tr align="center">
<td>TUE</td>
<td>OOSE</td>
<td>AI</td>
<td>DBMS</td>
</tr>
<tr align="center">
<td>WED</td>
<td>OOSE</td>
<td>AD</td>
<td>AI</td>
<td>LIBRARY</td>
</tr>
<tr align="center">
<td>THUR</td>
<td>DA</td>
<td>PWS</td>
<td rowspan="3">BREAK</td>
<td>AD</td>
</tr>
<tr align="center">
<td>FRI</td>
<td>WDD</td>
<td>AD</td>
<td>DBMS</td>
<td>OOSE</td>
<td>DBMS</td>
</tr>
<tr align="center">
<td>SAT</td>
<td>PWS</td>
<td>DBMS</td>
<td>DA</td>
<td>AI</td>
<td>SPORTS</td>
</tr>
</table></p>
</body>
</html>
Output:
Experiment-5
Aim:JavaScript to validate the following field sof the above registration form
First name(name should contains the minimum 6 alphabets)
password(length should not be less than 6characters)
email(should no tcontain invalid and must follow the standard
pattern)
mobile number(should contain 10 digits only)
address(should not be empty)
submit and reset buttons
Program: