Web Design
Web Design
1
INDEX
S no. Program Date Signature
7.
Write HTML/Javascript to display your CV in
navigator,your institute website,Department website and
tutorial website for specific subject.
2
Program 01
HTML program to create resume preparation using tables.
</tr> <tr>
4
<td><strong>:</strong></td> <ul>
<td>React Js ,Bootstrap</td> <td width="831"><li>Done a project
<strong> ""Online Store and Billing
</ul>
System"
</tr>
"</strong> using React js and Node
<tr> Js</li></td>
<ul> </ul>
<td><li>Database</li></td> </tr>
<td><strong>:</strong></td> <tr>
</ul> </tr>
</tr> <tr>
</table></td> </tr>
</tr> </table></td>
<tr> </tr>
5
<td height="2" colspan="2" <td colspan="2"
bgcolor="#FFFFFF"><table width="829" bgcolor="#FFFFFF"><table width="829"
border="0" border="0" align="center">
align="center"> <tr>
<tr> <ul>
<ul> <td width="513"><li>Creativity</li></td>
<td width="513"><li>Selected in Top 30 </ul>
of Samsung Solve For Tomorrow across
</tr>
India. </li></td>
<tr>
</ul>
<ul>
</tr>
<td><li>Adaptability</li></td>
<tr>
</ul>
<ul>
</tr>
<td><li>Bagged 1st prize in IT Quiz
copmpetition at Univeristy of <tr>
Lucknow</li></td>
<ul>
</ul>
<td><li>Self Motivation</li></td>
</tr>
</ul>
</table></td>
</tr>
</tr>
<tr>
<tr>
<ul>
<td colspan="2"><table width="829"
<td><li>Quick Learning to new
border="0" align="center">
things</li></td>
</table></td>
</ul>
</tr>
</tr>
</table></td>
</table></td>
</tr>
</tr>
<tr>
<tr>
<td colspan="2"
<td colspan="2"
bgcolor="#CCCCCC"><strong>STRENG
bgcolor="#CCCCCC"><strong>HOBBIE
HTS</strong></td>
S</strong></td>
</tr>
</tr>
<tr>
<tr>
6
<td colspan="2" </table></td>
bgcolor="#FFFFFF"><table width="829"
</tr>
border="0" align="center">
<tr>
<tr>
<td width="50%"
<ul>
bgcolor="#FFFFFF">Place:Lucknow</td>
<td width="513"><li>Playing
<td width="9%"
Chess</li></td>
bgcolor="#FFFFFF"><div
</ul> align="right">(Vinay)</div></td>
</tr> </tr>
<tr> <tr>
<ul> <td colspan="2"
bgcolor="#FFFFFF">Date:02/11/2023</td
<td><li>Watching Sci-fi and Thriller
>
Movies/Series</li></td>
</tr>
</ul>
</table></td>
</tr>
</tr>
</table></td>
</table>
</tr>
</body>
<tr>
</html>
<td colspan="2"
bgcolor="#FFFFFF"><table width="829"
border="0" align="center">
7
OUTPUT-
8
Program 02
HTML program for home page creation using frames.
</main> </body>
<footer> </html>
9
Output-
10
Program 03
HTML program for form creation.
<Html> <input type="radio" name="female"/>
<head> Female
11
Output
12
Program 04
Create a web page to embed an image map using HTML.
<!DOCTYPE html>
<html>
<body>
<h2>Image Maps</h2>
<img src="workplace.jpg" alt="Workplace" usemap="#workmap">
<map name="workmap">
<area shape="rect" coords="34,44,270,350" alt="Computer" href="computer.htm">
<area shape="rect" coords="290,172,333,250" alt="Phone" href="phone.htm">
<area shape="circle" coords="337,300,44" alt="Coffee" href="coffee.htm">
</map></body>
</html>
Output –
13
Program 05
Create a web page to get the coordinates from an image using JavaScript.
<style> <script>
Output –
14
Program 06
Create a web page with all types of cascading style sheets .
<!DOCTYPE html> width: 100px;
<html lang="en"> height: 100px;
<head> background-color: #28a745;
<meta charset="UTF-8"> margin: 10px;
<meta name="viewport" display: inline-block;
content="width=device-width, initial- }
scale=1.0">
<title>CSS Showcase</title>
#special-text {
font-weight: bold;
<!-- Internal Styles -->
color: #d9534f;
<style>
}
body {
</style>
font-family: Arial, sans-serif;
</head>
background-color: #f5f5f5;
<body>
color: #333;
}
<!-- Inline Styles -->
<header style="font-size: 24px;">Inline
header { Styles</header>
text-align: center;
padding: 20px; <section style="border: 2px solid
background-color: #007bff; #007bff; padding: 15px;">
color: white; <p>This is a paragraph with inline
} styles.</p>
<div style="width: 150px; height:
150px; background-color:
section { #ffcc00;"></div>
margin: 20px; </section>
padding: 20px;
border: 1px solid #ccc; <!-- Internal Styles -->
border-radius: 5px; <header>Internal Styles</header>
background-color: #fff;
} <section>
<p>This is a paragraph with internal
.box { styles.</p>
15
<div class="box"></div> <section>
<div class="box"></div> <p>This is a paragraph with external
<div class="box"></div> styles.</p>
Output –
16
Program 07
Write HTML/JavaScript to display your CV in navigator, your institute
website, department website and tutorial website for specific subject.
</head> } else {
<h2>My CV</h2> }
17
OUTPUT-
18
Program 08
Design HTML form for keeping student record and validate using
JavaScript.
<head> <option
value="Math">Math</option>
<title>Student Record Form</title>
<option
<style> value="Science">Science</option>
.error { <option
color: red; value="History">History</option>
} <option
</style> value="English">English</option>
</head> </select>
19
let isValid = true; isValid = false;
nameError.textContent = ""; } else if (!isValidEmail(email)) {
rollError.textContent = ""; emailError.textContent =
emailError.textContent = ""; "Invalid email format.";
if (!name) { }
} isValid = false;
if (!roll) { }
20
Output :
21
Program 09
Writing program in XML for creation of DTD, which specifies set of rules.
A Document Type Definition (DTD) in XML is used to specify a set of rules that define the structure
and content of an XML document. Here's an example of a simple DTD for an XML document that
describes a list of books:
In this example, we have created a DTD within the <!DOCTYPE> declaration. The DTD specifies the
following rules:
The root element is <library>, which contains one or more <book> elements.
Each <book> element must contain the following child elements: <title>, <author>,
<publication_date>, and <price>.
The content of <title>, <author>, <publication_date>, and <price> elements is defined as parsed
character data (#PCDATA), meaning they can contain text content.
The <!ATTLIST> declarations define attributes for the <book> and <publication_date> elements,
specifying the ISBN and format attributes for <book>, and the format and currency attributes for
<publication_date>. These attributes have default values if not provided.
The XML document below the DTD defines a sample library with two books, each following the
rules specified in the DTD.
22
Program 10
Create a style sheet in CSS/XSL & display the document in browser.
<!DOCTYPE html> xml.send(null);
<html> xsl.send(null);
<head> var xmlDoc = xml.responseXML;
<title>Library Catalog</title> var xslDoc = xsl.responseXML;
</head>
<body> xsltProcessor.importStylesheet(xslDoc);
23
h2 { <xsl:stylesheet version="1.0"
color: #555; xmlns:xsl="http://www.w3.org/1999/XSL/Tra
nsform">
}
<xsl:template match="/">
p{
<html>
color: #777;
<head>
}
<link rel="stylesheet"
data.xml type="text/css" href="style.css" />
<?xml version="1.0" encoding="UTF-8"?> </head>
<library> <body>
<book> <xsl:apply-templates
<title>Sample Book</title> select="library/book" />
<author>John Doe</author> </body>
<publication_date>2023-01- </html>
01</publication_date> </xsl:template>
<price>29.99</price> <xsl:template match="book">
</book> <div class="book">
<book> <h2><xsl:value-of select="title"
<title>Another Book</title> /></h2>
<author>Jane Smith</author> <p>Author: <xsl:value-of
select="author" /></p>
<publication_date>2023-02-
15</publication_date> <p>Publication Date: <xsl:value-of
select="publication_date" /></p>
<price>19.99</price>
<p>Price: $<xsl:value-of
</book>
select="price" /></p>
</library>
</div>
style.xsl
</xsl:template>
<?xml version="1.0" encoding="UTF-8"?>
</xsl:stylesheet>
24
Output –
25