Skip to main content

WP Practical

Prac 1
Aim : Implement basic HTML tags to learn HTML
Code :
<html>
<head>
<title>prac1</title>
</head>
<body>
<form>
name:<input type="text" name="name"><br>
Gender:male <input type="radio" name="g" value="male"><br> female <input type="radio" name="g"
value="female"><br>
city : <select>
<option>ahmedabad</option>
<option>mumbai</option>
<option>surat</option>
<option>mehsana</option>
</select>
</form>
<hr>
<ol type="i">
<li>abc</li>
<li>xyz</li>
<li>mno</li>
</ol> <br>
<ul type="disc">
<li>abc</li>
<li>xyz</li>
<li>mno</li>
</ul>
<p>this is p tag</p><br>
<b>this is b tag</b><br>
<i>this is i tag</i><br>
<u>this is u tag</u><br>
<strong>strong</strong><br>
<del>del tag</del><br>
<ins>ins tag</ins><br>
h<sub>2</sub>0<br>
a<sup>2</sup><br>
<a href="">this is "a" tag with href</a><br>
<h1>h1 tag</h1><br>
<h2>h2 tag</h2><br>
<h3>h3 tag</h3><br>
<h4>h4 tag</h4><br>
<h5>h5 tag</h5><br>
<h6>h6 tag</h6><br>
<img src="img.jpg"><br>
</body>< /html>
Prac 2
Aim : Create table structure as given in image using table. Also Create 5 page structures for your
website.
Code :
<html>
<body>
<table border="1">
<tr><th colspan="3">HOSTEL</th></tr>
<tr>
<td>CATEGORY</td>
<td>Registration Fee</td>
<td>Annual/500 hrs <br> Whichever is earlier</td>
</tr>
<tr>
<td>Students</td>
<td>Rs 50</td>
<td>Rs 500</td>
</tr>
<tr>
<td>General</td>
<td>Rs 500</td>
<td>Rs 5000</td>
</tr>
<tr><th colspan="3">SERVICE</th></tr>
<tr>
<td>Students</td>
<td>Not Offered</td>
<td>Not Offered</td>
</tr>
<tr>
<td>General</td>
<td>Rs 500</td>
<td>Rs 15000</td>
</tr>
</table>
</body>
</html>
Prac 3
Aim: Create structure of website as given in image using div and external css. Also Create 5
page structures for your website using div and external css.
Code :
STYLESHEET.CSS
div
{
float:left;
border:1px solid black;
}
.c
{
clear:left;
}
.head
{
text-align:center;
width:604px;
font-weight:bold;
}
.field
{
width:200px;
}
.an
{
height:40px;
}
prac3.html
<html>
<head>
<title>Prc3</title>
<link rel="stylesheet" type="text/css" href="STYLESHEET.css">
</head>
<body>
<div>
<div class="head">HOSTEL</div>
<div class="c field an">CATEGORY</div>
<div class="field an">Registration Fee</div>
<div class="field an">Annual/500 hrs <br> Whichever is earlier</div> <div class="c
field">Students</div> <div class="field">Rs 50</div>
<div class="field">Rs 500</div>
<div class="c field">General</div>
<div class="field">Rs 500</div>
<div class="field">Rs 5000</div>
<div class="c head">SERVICE</div>
<div class="c field">Students</div>
<div class="field">Not Offered</div>
<div class="field">Not Offered</div>
<div class="c field">General</div>
<div class="field">Rs 500</div>
<div class="field">Rs 100</div>
</div>
</body>
</html>
Prac 4
Aim:Implement use of <ul>, <ol>, <li> tag to create navigation (menu) in your website.
Also make your website attractive by adding images and colors in website.
Code:
<html>
<head>
<title>Prc4</title>
<style>
.c1{
float:left;
list-style-type: none;
width:75px;
text-align: center;
background-color: buttonface;
margin: 2px;
}
.a{
text-decoration: none;
}
</style>
</head>
<body>
<ul>
<div style="background-color: darkred;border: 1px solid black;height: 22px;"> <div
class="c1"><li><a href="" class="a">Home</a></li></div> <div class="c1"><li><a href=""
class="a">HTML</a></li></div>
<div class="c1"><li><a href="" class="a">CSS</a></li></div>
<div class="c1"><li><a href="" class="a">JavaScript</a></li></div>
<div class="c1"><li><a href="" class="a">About Us</a></li></div>
<div class="c1"><li><a href="" class="a">Contact Us</a></li></div>
<div class="c1"><li><a href="" class="a">more...</a></li></div>
</div>
</ul>
</body>
</html>
Prac 5
Aim: Create a registration form and give proper validations.
Code:
<html>
<head><title>Prc5_Validation</title><script>
function Vfn(){
var nam=document.getElementById("name");
var em=document.getElementById("email");
var pwd=document.getElementById("pass");
var ad=document.getElementById("add");
var z=document.getElementById("zip");
var testem=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(em.value);
if(nam.value=="")
{
alert("Please Enter Name");
}
else if(testem==false)
{
alert("Enter Valid Email");
}
else if(pwd.value.length<8)
{
alert("Password is too short");
}
else if(pwd.value.length>16)
{
alert("Password is too large");
}
else if(ad.value=="")
{
alert("please Enter Address");
}
else if(isNaN(z.value))
{
alert("Zip Must be in number");
}
else
{
if(z.value.length!=6)
{
alert("please Enter 6 Digit zipcode");
} }
alert("Registration Successful");
}
</script>
</head>
<body>
<form>
Enter name : <input type="text" name="name" id="name"><br> Email : <input type="text"
name="email" id="email"><br>
Password : <input type="password" name="pass" id="pass"><br> Address : <input type="text"
name="add" id="add"><br>
Zip Code : <input type="text" name="zip" id="zip"><br> <input type="button" value="submit"
onclick="Vfn()">
</form>
</body>
</html>
Prac 6
Aim: Implement event handling in JavaScript.
Code:
<html>
<head>
<style>
div
{
margin-left: 50px;
margin-top: 50px;
}
</style>
</head>
<body>
<div>
First name: <input type="text" id="fname" onfocus="myFunction(this.id)"><br>
<p>Select a color from the list.</p>
<select id="mySelect" onchange="main()">
<option value="Red">Red
<option value="Green">Green
<option value="Blue">Blue
</select>
<p id="clr"></p>
<input type="text" onkeydown="main1()">
<p>Click the button to display the date.</p>
<button onclick="displayDate()">The time is?</button>
<p id="CDT"></p>
<h1 onmouseover="style.color='red'" onmouseout="style.color='black'">Mouse over this
text</h1>
<body style="margin:0px;">
<div id="coordiv" style="width:199px;height:99px;border:1px solid"
onmousemove="myFunction(event)" onmouseout="clearCoor()"></div>
<p>Mouse over the rectangle above, and get the coordinates of your mouse pointer.</p>
<p id="demo"></p>
</div>
</body>
<script>
function myFunction(x) {
document.getElementById(x).style.background = "yellow";
}
function main() {
var x = document.getElementById("mySelect").value;
document.getElementById("clr").innerHTML = "You selected: " + x;
}
function main1() {
alert("You pressed a key inside the input field");
}
function displayDate() {
document.getElementById("CDT").innerHTML = Date();
}
function myFunction(e) {
x = e.clientX;
y = e.clientY;
coor = "Coordinates: (" + x + "," + y + ")";
document.getElementById("demo").innerHTML = coor
}
function clearCoor() {
document.getElementById("demo").innerHTML = "";
}
</script>
</body>
</html>
Prac 7
Aim: Create an XML file which will display the Book information and Create a Document
Type Definition (DTD) to validate the XMLFile.
*Create XML schemas XSL and CSS for the same.
Code:
bookstore1.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="bookstore.xsl"?>
<bookstore>
<book>
<title>Developing Webapplication</title>
<author>M. T. Savaliya</author>
<year>2012</year>
<price>350.00</price>
</book>
<book>
<title>System Programming</title>
<author>D. M. Dhamdhre</author>
<year>2011</year>
<price>275.50</price>
</book>
<book>
<title>Complete Reference JAVA</title>
<author>Herbert Schildt</author>
<year>2013</year>
<price>439.95</price>
</book>
</bookstore>
bookstore.xsl
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/">
<html>
<body>
<h2> My Books collection</h2>
<table border="1">
<tr bgcolor="red">
<th align="left">Title</th>
<th align="left">Author</th>
<th align="left">Year</th>
<th align="left">Price</th>
</tr>
<xsl:for-each select="bookstore/book">
<tr>
<td><xsl:value-of select="title"/></td>
<xsl:choose>
<xsl:when test="price &gt; 400">
<td><xsl:value-of select="author"/></td>
<td><xsl:value-of select="year"/></td>
<td bgcolor="yellow"><xsl:value-of select="price"/></td> </xsl:when>
<xsl:when test="price &gt; 200">
<td><xsl:value-of select="author"/></td>
<td><xsl:value-of select="year"/></td>
<td bgcolor="pink"><xsl:value-of select="price"/></td> </xsl:when>
<xsl:otherwise>
<td><xsl:value-of select="author"/></td> </xsl:otherwise>
</xsl:choose>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

Comments

Contact Form

Name

Email *

Message *

Popular posts from this blog

Microsoft SQL Server 2019 Serial Key For All Edition

  Microsoft SQL Server 2019 Enterprise Edition HMWJ3-KY3J2-NMVD7-KG4JR-X2G8G Microsoft SQL Server 2019 Enterprise Core Edition 2C9JR-K3RNG-QD4M4-JQ2HR-8468J Microsoft SQL Server 2019 Standard Edition PMBDC-FXVM3-T777P-N4FY8-PKFF4 SQL Server2019 key   SQL Server 2019 Enterprise:HMWJ3-KY3J2-NMVD7-KG4JR-X2G8G Strandard:PMBDC-FXVM3-T777P-N4FY8-PKFF4 SQL Server 2017 Enterprise:TDKQD-PKV44-PJT4N-TCJG2-3YJ6B Enterprise Core:6GPYM-VHN83-PHDM2-Q9T2R-KBV83 Strandard:PHDV4-3VJWD-N7JVP-FGPKY-XBV89 Web:WV79P-7K6YG-T7QFN-M3WHF-37BXC SQL Server 2016 Enterprise:MDCJV-3YX8N-WG89M-KV443-G8249 Enterprise Core:TBR8B-BXC4Y-298NV-PYTBY-G3BCP Standard:B9GQY-GBG4J-282NY-QRG4X-KQBCR Web:BXJTY-X3GNH-WHTHG-8V3XK-T8243 SQL Server 2014 Business Intelligence:GJPF4-7PTW4-BB9JH-BVP6M-WFTMJ Developer:82YJF-9RP6B-YQV9M-VXQFR-YJBGX Enterprise:27HMJ-GH7P9-X2TTB-WPHQC-RG79R Enterprise Core:TJYBJ-8YGH6-QK2JJ-M9DFB-D7M9D Strandard:P7FRV-Y6X6Y-Y8C6Q-TB4QR-DMTTK Web:J9MBB-R8PMP-R8WTW-8JJRD-C6GGW

VS CODE PRODUCT KEY

Visul Studio 2013 Ultimate Key BWG7X-J98B3-W34RT-33B3R-JVYW9 https://www.microsoft.com/en-us/download/details.aspx?id=55992 https://go.microsoft.com/fwlink/?linkid=841310 https://www.microsoft.com/en-us/download/details.aspx?id=35747 https://downloads.i-theses.com/?task=downloads&groupid=9&id=110 Product Year Version Product Keys Visual Studio 2022 2022 Enterprise: VHF9H-NXBBB-638P6-6JHCY-88JWH Professional: TD244-P4NB7-YQ6XK-Y8MMM-YWV2J Visual Studio 2020 2020 HG8FD-DR6F8-T7G9Y-H80UI-9NUB8 YV7T8-R6C8R-C6VT9-7GBHY-80NUJ T6RX5-EZXCR-6VT7B-Y80NU-HBGVF CDX5X-7E5CR-86VT7-9BY9V-7TC8R Visual Studio 2019 2019 16.x Professional: NYWVH-HT4XC-R2WYW-9Y3CM-X4V3Y Enterprise: BF8Y8-GN2QH-T84XB-QVY3B-RC4DF Visual Studio 2017 2017 15.x Test Professional: VG622-NKFP4-GTWPH-XB2JJ-JFHVF Professional: KBJFW-NXHK6-W4WJM-CRMQB-G3CDH 4F3PR-NFKDB-8HFP7-9WXGY-K77T7 Enterprise: NJVYC-BMHX2-G77MM-4XJMR-6Q8QF N2VYX-9VR2K-T733M-MWD9X-KQCDF Visual Studio 2015 2015 14.x Profession
   (MI) – PRACTICAL LIST 1 Write an 8085 assembly language program for exchanging two 8-bit numbers stored in memory locations 2050h and 2051h. 2 Write an 8085 assembly language program to add two 8-bit numbers stored in memory locations 2050h and 2051h. Store result in location 2052h 3 Write an 8085 assembly language program to subtract two 8-bit numbers stored in memory location 2050h from 2051h.Store result in location 2052h. 4 Write an 8085 assembly language program to add two 16-bit numbers stored in memory. 5 Write an 8085 assembly language program to add two decimal numbers using DAA instruction. 6 Write an 8085 assembly language program to find the minimum from two 8-bit numbers. 7 Write an 8085 assembly language program to get the minimum from block of N 8-bit numbers. 8 Write an 8085 assembly language program to add block of 8-bit numbers. 9 Write an 8085 assembly language program to copy block of five numbers starting from memory location 2001h to location starting from 3001