Lab Adp 01
Lab Adp 01
BACKGROUND THEORY:
<!DOCTYPE> Defines the document type
The title Attribute
Mouse over this paragraph, to display the title attribute as a tooltip.
SOURCE CODE:
<!DOCTYPE html>
<head>
<title>
</title>
</head>
<body>
<p>This is working</p>
</body>
OUTPUT:
RESULT:
By using basic html tags the webpage is created
Lab experiment 2
2.<p>Tag:
The <p> tag in HTML is used to define a paragraph of text. It is a block-level element, which
means it typically occupies the full width of its parent container, and it automatically adds
space before and after the content, providing separation between other elements.
3.<em>Tag:
The <em> tag in HTML is used to emphasize text, usually by rendering it in italic style. The
purpose of the <em> tag is to indicate that the content inside it should be stressed or given
special importance within a sentence or passage.
4.<pre>Tag:
The <pre> tag in HTML is used to define preformatted text, which means the text inside the
<pre> tag is displayed exactly as written in the HTML source code, including any white
spaces, line breaks, and indentation. This makes it ideal for displaying code, ASCII art, or any
text where preserving the original formatting is important.
5.<b>Tag:
The <b> tag in HTML is used to bold text. However, it is important to note that the <b> tag is
primarily a stylistic tag and does not convey any semantic meaning about the content. This
means that it simply changes the appearance of the text (usually making it bold) but does not
indicate that the text is of any particular importance.
6.<body>Tag:
The <body> tag in HTML is used to define the body of an HTML document, which contains
all the visible content of a web page. Everything that appears on the page, such as text,
images, links, videos, forms, and other elements, is placed Inside the <body> tag. It is one of
the most important structural elements in an HTML document.
7.<dl>Tag:
The <dl> tag in HTML is used to define a definition list, which is a list of terms and their
corresponding definitions. It is commonly used for displaying glossary-like content, where
you list terms
SOURCE CODE:
<!DOCTYPE html>
<html>
<head>
<title>Document</title>
</head>
<body bgcolor="aqua">
<pre>
<em>Date : 24-9-2024</em>
<center><p><b>Personal Details</b></p></center>
<em>Mobile No : 9442240109</em>
<em>Statement Of The Purpose : A Dream Come True College.Once A SKCTian Always A SKCTian.It
is a Beautiful College.</em>
<center><p><b>Skill Section</b></p></center>
<em><UL><LI>Tools : UML</LI></UL></em>
<center><p><b>Education Section</b></p></center>
<em><ol type="I">
</ol></em>
<a href="http://127.0.0.1:5500/Untitled-da.html">GO</a>
</pre>
</body>
</html>
SCREEN SHOT:
RESULT:
By using html tags the personal detail webpage is created
Lab experiment 3
AIM:
Design web pages using lists and tables.
BACKGROUND THEORY:
.<head>Tag:
The <head> tag in HTML is a container for metadata and resources that define the structure
and behavior of a webpage, but it doesn’t display content directly on the page. It is placed
inside the <html> tag and precedes the <body> tag.
2.<center>Tag:
The <center> tag in HTML was used to center-align content such as text, images, or other
HTML elements. It was introduced in early HTML specifications to align content
horizontally in the center of its parent container.
3. <tr>Tag:
The <tr> tag in HTML is used to define a table row in an HTML table. It is a container
element that wraps around <td> (table data) or <th> (table header) elements within a <table>.
The <tr> tag helps organize content into rows, allowing data to be displayed in a tabular
format.
4. <th>Tag:
The <th> tag in HTML is used to define table header cells within a table. It represents a
heading for a group of table cells, and its contents are typically displayed in bold and
centered by default. The <th> tag helps provide a description or title for each column or row
in the table, making it easier for users to understand the data.
5. <td>Tag:
The <td> tag in HTML is used to define table data cells within a table. Each <td> element
represents a single cell in a table row and is placed inside a <tr> (table row) tag. The <td> tag
holds the data or content of the table and is typically used alongside <th> (table header)
elements to create a complete table structure.
SOURCE CODE:
<!DOCTYPE html>
<html>
<head>
<title>SKCT</title>
</head>
<body>
<center>
<th>Day</th>
<th rowspan="6">BREAK</th>
</tr>
<tr bgcolor="yellow">
<td>1</td>
<td>C++</td>
<td>C++</td>
<td>C++</td>
<td>PHY</td>
<td>MATHS</td>
<td>ADP</td>
</tr>
<tr >
<td>2</td>
<td>DLD</td>
<td>CHE</td>
<td>ADP</td>
<td>PHY</td>
<td>C++</td>
<td>C++</td>
</tr>
<tr bgcolor="yellow">
<td>3</td>
<td>ADP</td>
<td>BIO</td>
<td>DLD</td>
<td>MATHS</td>
<td>TWS</td>
<td>CHE</td>
</tr>
<tr>
<td>4</td>
<td>ADP</td>
<td>ADP</td>
<td>BIO</td>
<td>DLD</td>
<td>PHY</td>
<td>BIO</td>
</tr>
<tr bgcolor="yellow">
<td>5</td>
<td>DLD</td>
<td>LAB</td>
<td>LAB</td>
<td>MATHS</td>
<td>CHE</td>
<td>MATHS</td>
</tr>
</table>
</center>
</body>
</html>
SCREEN SHOT:
RESULT:
Created web pages using lists and tables.
Lab experiment 4
AIM:
TO CREATE web client-side Login, Registration form and Dashboard
with drop down menus
BACKGROUND THEORY:
<a>Tag:
It looks like you may have meant to ask about the <a> tag in HTML, which is used to create
hyperlinks. If you were referring to something else, feel free to clarify
The
<p> tag in HTML is used to define a paragraph of text. It is a block-level element, which
means it typically occupies the full width of its parent container, and it automatically adds
space before and after the content,
.<center>Tag:
The <center> tag in HTML was used to center – align content, such as text or other elements,
within its parent container. However,
SOURCE CODE:
<!DOCTYPE html>
<html>
<head>
<title>Workshop Registration</title>
<style>
body {
background-color: gainsboro;
margin: 0;
padding: 20px;
backdrop-filter: blur(px);
.container {
max-width: 600px;
margin: auto;
background: white;
padding: 20px;
border-radius: 50px;
backdrop-filter: blur(20px);
background-color: transparent;
h1, h2 {
color: #333;
label {
display: block;
margin-top: 10px;
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
input[type="file"] {
width: 500px;
padding: 10px;
margin-top: 5px;
input[type="radio"],
input[type="checkbox"] {
margin-top: 10px;
button {
background-color: #007BFF;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
margin-top: 20px;
button:hover {
background-color: #0056b3;
.resource {
margin-top: 20px;
padding: 10px;
border-radius: 4px;
.resource-image {
max-width: 100%;
height: auto;
border-radius: 4px;
</style>
</head>
<body style="background-image: url(cart.jpg);">
<div class="container">
</video></center>
<h2>Personal Information</h2>
<label>Gender:</label>
<label for="male">Male</label>
</select>
<label for="password">Password:</label>
<h2>Resource Persons</h2>
<div class="resource">
</div>
<div class="resource">
</div>
<div class="resource">
</div>
<label>
</label>
</form>
</div>
</body>
</html>
OUTPUT IMAGE
Result:
Created a web client-side Login, Registration form and Dashboard with drop down menus
Lab experiment 5
An <input> element can be displayed in many ways, depending on the type attribute.
Type Description
<input type="radio"> Displays a radio button (for selecting one of many choices)
<input type="checkbox"> Displays a checkbox (for selecting zero or more of many choices)
[3:54 pm, 27/11/2024] Jaya Surya Skct Madurai: The Submit Button
The <input type="submit"> defines a button for submitting the form data to a form-handler.
The form-handler is typically a file on the server with a script for processing input data.
[3:54 pm, 27/11/2024] Jaya Surya Skct Madurai: The Name Attribute for <input>
Notice that each input field must have a name attribute to be submitted.
If the name attribute is omitted, the value of the input field will not be sent at all.
SOURCE CODE:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="ADP_.CSS">
</head>
<body>
<div id="abc">
<pre>
<h1>SKI-KART</h1>
<input type="search" placeholder="SEARCH">
<pre> <button><a href="https://www.amazon.in/electronics/b/?
ie=UTF8&node=976419031&ref_=nav_cs_electronics">ELECTRONICS</a></button>
<button><a href="https://www.amazon.in/s?
k=kitchen+accessories+items+for+home&crid=YNYFJFBAVX5F&sprefix=ki%2Caps
%2C248&ref=nb_sb_ss_ts-doa-p_1_2">KICTHEN</a></button> <button><a
href="https://www.amazon.in/s?k=fashion&crid=33SKACRTE88MD&sprefix=fashion%2Caps
%2C267&ref=nb_sb_noss_2">FASHION</a></button> <button><a
href="https://www.redbus.in">TRAVEL</a></button> <button> <a
href="https://www.amazon.in/amazonpay/home?ref_=nav_cs_apay">SKI_PAY</a>
</button> <button><a
href="https://www.primevideo.com/offers/nonprimehomepage/ref=dv_web_force_root">S
KI_PRIME</a> </button> <button><a href="#ref">KEYBOARD</a></button>
<button><a href="#ref1">GAMING LAPTOP</a> </button> </pre>
</pre>
</div>
<div id="sec">
<pre><a href="https://www.asus.com/in/"> <img src="ASUS”></a> <a
href=https://www.lenovo.com> <img src=LENOVO”></a> <a
href="https://www.infinixmobiles.in/"><img src="INFINIX” ></a> <a
href="https://www.dell.com/en-in/shop/scc/scr/laptops?~ck=mn&gacd=10415953-9027-
5761040-297509714-
0&dgc=PLA&gad_source=1&gclid=CjwKCAjwjsi4BhB5EiwAFAL0YMbZszrj7EzPzMZ5XAVFj1X_
wIpIWNAS-cTVtR7DKGlwKdWJDQDmAhoCd88QAvD_BwE&gclsrc=aw.ds"> <img src="DELL”
a>
<a href="https://store.acer.com/en-“ ></a> <a href="https://www.samsung.com/in/?
cid=in_pd_ppc_google_im-mobile-smartphone-all-dtc_sales_samsung-book4-all-
2024_eshop-pmax-pla_23sep2024-na_1ur-503228l-2024-eshop-bau-performancemax-
cpc_pfm--21741953002------x--
&gad_source=1&gclid=CjwKCAjwjsi4BhB5EiwAFAL0YPVwazZmuIMD9AJmWBYMt43qaKE7rU
nuwueeUcLehkdJg7ciIv94yRoCGwkQAvD_BwE"><img src="SAMSUNG” </a> <a
href="https://www.hp.com/in-en/shop/?
intel_sem&gad_source=1&gclid=CjwKCAjwjsi4BhB5EiwAFAL0YD4kajUlTK9tlJmv81mSqCboLe
alnAdHcYXznfdsu5xtFAHaekiX5RoCFW0QAvD_BwE&gclsrc=aw.ds"><img src="HP” </a>
<a href="https://www.dell.com/en-in/gaming/alienware"><img src="ALIEN WARE” ></a>
</pre>
</div>
<div>
SCREEN SHOT:
Result:
Developed a HTML form and validation using HTML5 features.
Lab experiment 6
Create a website using HTML: To embed an image
map in a web page. To fix the hot spots. Show all
the related information when the hot spots are
clicked
AIM:
TO CREATE A WEBSITE WITH IMAGE MAPPING AND TO SHOW
RELATED INFORMATION ABOUT
BACK GROUND THEORY:
<h1>Tag:
The <h1> tag is an HTML element used to define the most important heading on a
webpage. It represents the main topic or theme of the page content.
2.<map>Tag:
The <map> tag in HTML is used to define an image map, which allows you to create
clickable areas within an image. Each clickable area, called a hotspot, can link to a different
URL or trigger a JavaScript action. The <map> tag works in conjunction with the <area> tag,
which specifies the coordinates and behavior for each hotspot.
3.<area>Tag:
The <area> tag in HTML is used in conjunction with the <map> tag to define
clickable areas (also known as “hotspots”) within an image map. Each <area> element
represents a specific region of an image that can be clicked on, and typically, each area links
to a different destination or performs a specific action.
4.<img>Tag:
The <img> tag in HTML is used to embed images in a webpage. It allows you to
display images such as photographs, illustrations, and icons, enhancing the visual content of
your site. The <img> tag is an empty tag, meaning it doesn’t have a closing tag, and it has
several important attributes that control how the image appears and behaves.
5.<table>Tag:
The <table> tag in HTML is used to create a table on a webpage. Tables are often
used for displaying tabular data, such as lists, schedules, financial data, or any other
information that can be organized into rows and columns.
6.<tr>Tag:
The <tr> tag in HTML is used to define a table row in an HTML table. It is an
essential part of creating structured data within tables, and it is used to group a set of table
cells (<td>) or table headers (<th>) together in a horizontal line, representing one row of data
or headers
SOURCE CODE:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
</div>
<div><map name="feelmap">
<area shape="poly"
coords="327,635,366,567,417,542,453,528,475,570,450,592,432,601,415,619,383,626,359,618"
title="" href="http://127.0.0.1:5500/file.html">//madurai
<area shape="poly"
coords="244,305,331,281,303,303,368,331,379,383,354,401,296,374,333,395,237,329,259,366"
title="" href="https://erode.nic.in/about-district/">//erode
<area shape="poly"
coords="507,548,561,591,541,560,586,558,571,511,563,474,508,465,473,481,479,519" title=""
href="https://en.wikipedia.org/wiki/Pudukkottai">//pudukootai
<area shape="poly"
coords="533,180,580,162,607,181,660,159,625,144,661,205,645,221,612,212,586,214,587,252,577,
268,523,273,502,241,518,210" title=""
href="https://tiruvannamalai.nic.in/about-district/">//thiruvanamlai
<area shape="poly"
coords="303,542,345,471,425,469,455,534,410,549,372,563,359,541,320,550,315,500,450,505,385,
478" title="" href="https://dindigul.nic.in/about-district/">//dindukal
<area shape="poly"
coords="399,142,368,250,343,189,464,181,498,228,463,241,433,222,402,201,328,238,431,157,494,
245" title="" href="https://en.wikipedia.org/wiki/Krishnagiri">krisnagirii
<area shape="poly"
coords="630,293,665,306,665,331,667,358,643,381,608,364,559,360,547,336,589,327,618,322,618,
308,575,363" title="" href="https://cuddalore.nic.in">//cudddlaore
</div>
</body>
</html>
SCREEN SHOT:
Result:
embed an image map in a web page. To fix the hot spots.
Lab experiment 7
AIM:
BACKGROUND THEORY:
External CSS
With an external style sheet, you can change the look of an entire website by changing just
one file!
Each HTML page must include a reference to the external style sheet file inside the <link>
element, inside the head section.
Internal CSS
An internal style sheet may be used if one single HTML page has a unique style.
The internal style is defined inside the <style> element, inside the head section.
Inline CSS
An inline style may be used to apply a unique style for a single element.
To use inline styles, add the style attribute to the relevant element. The style attribute can
contain any CSS property
SOURCE CODE:
HTML CODE:
<!DOCTYPE html><html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<header>
<div class="logo">
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Categories</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<div class="heading">
<h1>product review</h1>
<div class="input_box">
</div>
<div class="input_box">
</div>
<div class="remember">
</div>
<div class="discribe">
</div>
<footer>
</footer>
</body>
</html>
CSS CODE:
*{ border: 2px solid rgba(79, 70, 70, 0.2);
margin: 0; margin-left:500px ;
padding: 0; }
} padding: 0px;
body{ }
} border-radius: 10px;
} }
.discribe{ .remember{
} }
align-items:right; h1{
background-color: transparent; }
} margin-left: 20px;
.remember label{ }
font-weight: bolder; }
Result:
Applied style specification in HTML page using CSS
Lab experiment 8
<head>
<link rel=”stylesheet” type=”text/css” href=”styles.css”>
</head>
<head>
<script src=”script.js” type=”text/javascript”></script>
</head>
<body>
<!—Your HTML content here →
<script src=”script.js” type=”text/javascript”></script>
</body>
SOURCE CODE:
HTML CODE:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="java_script01.js"></script>
<link rel="stylesheet" href="java.css">
</head>
<body>
<div>
<label for="age">AGE:<input type="number" id="age" name="ag"></label><br>
<br>
<button onclick="ifelsecondition()">CHECK ELIGIBILITY</button><br>
<button onclick="forcondition()" id="12">TABLE</button>
<p id="neligible"></p><br>
<p id="nseligible"></p><br>
<p id="eligible"></p><br>
</div>
</body>
</html>
CSS CODE:
div{
border: solid;
border-radius: 20px;
background-repeat: no-repeat;
backdrop-filter: blur(5px);
width: 500px;
border-color:burlywood;
}
label{
margin :125px;
padding: 20px;
}
button{
padding: 7px;
margin: 10px;
text-align: center;
justify-content: center;
justify-items: center;
margin-left: 165px;
border-radius: 5px;
}
button{
margin-left: 175px;
}
input{
margin-top: 20px;
width: 155px;
}
body{
background-image: url(download.jpg);
justify-content: center;}
JAVA CODE:
function ifelsecondition()
{
let x=document.getElementById("age").value;
if (x<18)
document.getElementById("neligible").innerText="Not eligible";
else if((x>18) && (x<60))
document.getElementById("nseligible").innerText="eligible not a senior citizen";
else
document.getElementById("eligible").innerText="Eligible and senior citizen";
}
function forcondition(){
let x=document.getElementById("age").value;
for(let i=1;i<x;i++)
{
var tab=i+"*"+x+"="+i*x;
document.write(tab);
document.write("<br>");
//document.getElementById("eligible").innerHTML ="<br>";
}
}
SCREEN SHOT:
Result:
Develop dynamic web application using HTML, CSS and JavaScript