Professional Documents
Culture Documents
Webrec
Webrec
Webrec
<!DOCTYPE html>
<head>
<link href="style.css" rel="stylesheet">
<style>
/*internal css */
h2 {
color: blue;
text-decoration: none;
background-color: antiquewhite;
border-radius: 5px;
padding-left: 10px ;
font-size: 30px;
}
</style>
<title>POPULAR WRITERS</title>
</head>
<body style="margin:30px;background-color:skyblue;">
<h1>POPULAR STORY WRITERS IN THE WORLD</h1>
<h2>1.WILLIAM SHAKESPEARE</h2>
<div>
<img
src="https://www.discoverwalks.com/blog/wp-content/uploads/2022/03/william-shakespeare-
wikipedia-816x1045.jpg">
<p>William Shakespeare was an English playwright, poet, and actor who is widely regarded as
the greatest writer
in
the English language and the world’s greatest dramatist. Shakespeare’s work has made a
lasting impression in
particular; he expanded the dramatic potential of characterization, plot, language, and genre.
<a
href="1.html">for
more info..</a></p>
</div>
<h2>2.CHARLES DICKENS</h2>
<div>
<img src="https://www.discoverwalks.com/blog/wp-content/uploads/2022/03/charles-dickens-
wikipedia-768x1123.jpg">
<p>Charles John Huffam Dickens was an English writer and social critic who created some of
the world’s
best-known
fictional characters and is regarded by many as the greatest novelist of the Victorian era.
Dickens’s
approach
to the novel is influenced by various things, including the picaresque novel tradition,
melodrama, and the
novel
of sensibility.<a href="2.html"
target="blank">for more info..</a></p>
</div>
<h2>3.AGATHA CHRISTIE</h2>
<div>
<img src="https://www.discoverwalks.com/blog/wp-content/uploads/2022/03/agatha-christine-
flickr.jpg">
<p>Dame Agatha Mary Clarissa Christie, Lady Mallowan, DBE was an English writer known
for her 66 detective
novels
and 14 short story collections, particularly those revolving around fictional detectives Hercule
Poirot and
Miss
Marple.<a href="3.html"
target="blank">for more info..</a></p>
</div>
<h2>4.LEO TOLSTOY</h2>
<div>
<img src="https://www.discoverwalks.com/blog/wp-content/uploads/2022/03/leo-tolstoy-
wikipedia-816x1072.jpg">
<p>Lev Nikolayevich Tolstoy was a Russian writer who is regarded as one of the greatest
authors of all time. His
fiction includes dozens of short stories and several novellas such as The Death of Ivan Ilyich
(1886),
Family
Happiness (1859), “After the Ball” (1911), and Hadji Murad (1912). He also wrote plays and
numerous
philosophical essays.<a
href="4.html" target="blank">for
more info..</a></p>
</div>
<h2>5.J.K ROWLING</h2>
<div>
<img
src="https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcT_0cE_3EcEYFEw1G2v5mqjdmX94WURlolAoyxFx6x0EI
3s2qKMJRTCT4h8m5IL_y3FqRU&usqp=CAU">
<p>Joanne Rowling is a British author and philanthropist. She is known for the worldwide
sensation Harry Potter
which is a seven-volume children’s fantasy series published from 1997 to 2007.<a
href="5.html" target="blank">for
more info..</a></p>
</div>
</body>
</html>
1.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>William Shakespeare</title>
<style>
img {
width: 200px;
height: 200px;
box-shadow: 8px 8px 20px;
border-radius: 7px;
border:1.5px solid;
}
#bimg {
padding: 20px;
}
h2{
color:green;
text-shadow: 4px 4px 20px;
}
p{
font-size: 20px;
font-family: cursive;
color:teal;
text-shadow: 2px 1px 12px white;
}
body{
margin: 15px;
}
</style>
<link rel="stylesheet" href="instyle.css">
</head>
<body bgcolor="yellow">
<nav>
<ul type="none">
<a href="6.html#wabout">
<li>About Author</li>
</a>
<a href="6.html#wplays">
<li>Plays</li>
</a>
<a href="6.html#wpoems">
<li>Poems</li>
</a>
<a href="6.html#wbooks">
<li>Books</li>
</a>
</ul>
</nav>
<h2><b>William Shakespeare</b></h2>
<p>William Shakespeare (bapt. 26 April 1564 – 23 April 1616) was an English playwright, poet
and actor. He is widely regarded as the greatest writer in the English language and the world's pre-
eminent dramatist. He is often called England's national poet and the "Bard of Avon" (or simply "the
Bard"). His extant works, including collaborations, consist of some 39 plays, 154 sonnets, three long
narrative poems, and a few other verses, some of uncertain authorship. His plays have been translated
into every major living language and are performed more often than those of any other playwright.
Shakespeare remains arguably the most influential writer in the English language, and his works
continue to be studied and reinterpreted.</p>
<div align="center" style="display: flex;">
<div id="bimg"><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSOnu-
RdI6Js3BeZwdilIQEuIUO9i--FftQ0g&usqp=CAU" alt=""></div>
<div id="bimg"><img src="https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcQBgNP1UZ1tlgPiFz9f3KqRmWK8RCHvSyjFzg&usqp=C
AU" alt=""></div>
<div id="bimg"><img src="https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcSH7AZ53LMqd3zJjMcPvngqNeYG1OipicCUTA&usqp=C
AU" alt=""></div>
</div>
</body>
</html>
2.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Charles Dickens</title>
<style>
img {
width: 200px;
height: 200px;
box-shadow: 8px 8px 20px;
border-radius: 7px;
border:1.5px solid;
}
#bimg {
padding: 20px;
}
h2{
color:green;
text-shadow: 4px 4px 20px;
}
p{
font-size: 20px;
font-family: cursive;
color:teal;
text-shadow: 2px 1px 12px white;
}
</style>
Born in Portsmouth, Dickens left school at the age of 12 to work in a boot-blacking factory
when his father John was incarcerated in a debtors' prison. After three years he returned to school,
before he began his literary career as a journalist. Dickens edited a weekly journal for 20 years, wrote
15 novels, five novellas, hundreds of short stories and non-fiction articles, lectured and performed
readings extensively, was an indefatigable letter writer, and campaigned vigorously for children's
rights, for education, and for other social reforms.</p>
<div align="center" style="display: flex;">
<div id="bimg"><img src="https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcQgQgtDQ9i370sSQYXfY33pLaijqXzOSAiOZA&usqp=CA
U" alt=""></div>
<div id="bimg"><img src="https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcSMj7jBve8xsxSR61ABBkVOxlxIAg9AaEyrfw&usqp=CA
U" alt=""></div>
<div id="bimg"><img src="https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcTxz1Sn_LRSwGMv85xMefMRrblfVR6TM7QcKCQTfGG
5NEdgxl2fQlB4ChraA3HkVocGXmo&usqp=CAU" alt=""></div>
</div>
</body>
</html>
3.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Agatha Christie</title>
<link rel="stylesheet" href="instyle.css">
<style>
img {
width: 200px;
height: 200px;
box-shadow: 8px 8px 20px;
border-radius: 7px;
border:1.5px solid;
}
#bimg {
padding: 20px;
}
h2{
color:green;
text-shadow: 4px 4px 20px;
}
p{
font-size: 20px;
font-family: cursive;
color:teal;
text-shadow: 2px 1px 12px white;
}
</style>
</head>
<body bgcolor="yellow">
<nav>
<ul type="none">
<li><a href="6.html#abooks">About Author</a></li>
<li><a href="6.html#aabout">Plays</a></li>
<li> <a href="6.html#aplays">Poems</a></li>
<li> <a href="6.html#abooks">Books</a></li>
</ul>
</nav>
<h2><b>Agatha Christie</b></h2>
<p>Dame Agatha Mary Clarissa Christie, Lady Mallowan, DBE (née Miller; 15 September 1890 –
12 January 1976) was an English writer known for her 66 detective novels and 14 short story
collections, particularly those revolving around fictional detectives Hercule Poirot and Miss Marple.
She also wrote the world's longest-running play, the murder mystery The Mousetrap, which has been
performed in the West End since 1952. A writer during the "Golden Age of Detective Fiction",
Christie has been called the "Queen of Crime". She also wrote six novels under the pseudonym Mary
Westmacott. In 1971, she was made a Dame (DBE) by Queen Elizabeth II for her contributions to
literature. Guinness World Records lists Christie as the best-selling fiction writer of all time, her
novels having sold more than two billion copies.</p>
<div align="center" style="display: flex;">
<div id="bimg"><img src="https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcSXdJq_gf29iw2gKLV45O9uGhxoI_rVEJWpCw&usqp=CA
U" alt=""></div>
<div id="bimg"><img src="https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcRVCLitX4BhwjjS7YT1QNh1oOOnMSIYFhMuEw&usqp=
CAU" alt=""></div>
<div id="bimg"><img src="https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcTwk_VqNnF19ccfpBWBmeEK2Xq2j9Zt-
gDAXw&usqp=CAU" alt=""></div>
</div>
</body>
</html>
4.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Leo Tolstoy</title>
<style>
img {
width: 200px;
height: 200px;
box-shadow: 8px 8px 20px;
border-radius: 7px;
border:1.5px solid;
}
#bimg {
padding: 20px;
}
h2{
color:green;
text-shadow: 4px 4px 20px;
}
p{
font-size: 20px;
font-family: cursive;
color:teal;
text-shadow: 2px 1px 12px white;
}
</style>
<link rel="stylesheet" href="instyle.css">
</head>
<body bgcolor="yellow">
<nav>
<ul type="none">
<a href="6.html#labout">
<li>About Author</li>
</a>
<a href="6.html#lplays">
<li>Plays</li>
</a>
<a href="6.html#lpoems">
<li>Poems</li>
</a>
<a href="6.html#lbooks">
<li>Books</li>
</a>
</ul>
</nav>
<h2><b>Leo Tolstoy</b></h2>
<p>Lev Nikolayevich Tolstoy; 9 September [O.S. 28 August] 1828 – 20 November [O.S. 7
November] 1910), usually referred to in English as Leo Tolstoy, was a Russian writer regarded as one
of the greatest authors of all time. He received nominations for the Nobel Prize in Literature every
year from 1902 to 1906 and for the Nobel Peace Prize in 1901, 1902, and 1909.
Born to an aristocratic Russian family in 1828. Tolstoy's notable works include the novels War
and Peace (1869) and Anna Karenina (1878) often cited as pinnacles of realist fiction. He first
achieved literary acclaim in his twenties with his semi-autobiographical trilogy, Childhood, Boyhood,
and Youth (1852–1856), and Sevastopol Sketches (1855), based upon his experiences in the Crimean
War. His fiction includes dozens of short stories such as "After the Ball" (1911), and several novellas
such as The Death of Ivan Ilyich (1886), Family Happiness (1859) and Hadji Murad (1912). He also
wrote plays and essays concerning philosophical, moral and religious themes.</p>
<div align="center" style="display: flex;">
<div id="bimg"><img
src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT-
ZNl2pqD9xzUQZ8JxQgRs7KlLC7RZ23oxZg&usqp=CAU "
alt="">
</div>
<div id="bimg">
<img src="https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcS6AZCWWtrp8Jue7xGRKgJSfgQ8CH7VavxK9A&usqp=C
AU"
alt="">
</div>
<div id="bimg"><img
src="https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcQFowGKzmoyFTDNYP9WlkJLGWhe0tQuevJyAv-
LuyBaJrINtuJqGiq2m7UhIeIx38IKaWo&usqp=CAU"
alt="">
</div>
</div>
</body>
</html>
5.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JK Rowling</title>
<style>
img {
width: 200px;
height: 200px;
box-shadow: 8px 8px 20px;
border-radius: 7px;
border:1.5px solid;
}
#bimg {
padding: 20px;
}
h2{
color:green;
text-shadow: 4px 4px 20px;
}
p{
font-size: 20px;
font-family: cursive;
color:teal;
text-shadow: 2px 1px 12px white;
}
</style>
<link rel="stylesheet" href="instyle.css">
</head>
<body bgcolor="yellow">
<nav>
<ul type="none">
<a href="6.html#jabout"><li>About Author</li></a>
<a href="6.html#jplays"><li>Plays</li></a>
<a href="6.html#jpoems"><li>Poems</li></a>
<a href="6.html#jbooks"><li>Books</li></a>
</ul>
</nav>
<h2><b>JK Rowling</b></h2>
<p>Joanne Rowling born 31 July 1965, best known by her pen name J. K. Rowling, is a British
author and philanthropist. She wrote Harry Potter, a seven-volume children's fantasy series published
from 1997 to 2007. The series has sold over 600 million copies, been translated into 84 languages,
and spawned a global media franchise including films and video games. The Casual Vacancy (2012)
was her first novel for adults. She writes Cormoran Strike, an ongoing crime fiction series, under the
alias Robert Galbraith.
Born in Yate, Gloucestershire, Rowling was working as a researcher and bilingual secretary for
Amnesty International in 1990 when she conceived the idea for the Harry Potter series while on a
delayed train from Manchester to London. The seven-year period that followed saw the death of her
mother, the birth of her first child, divorce from her first husband, and relative poverty until the first
novel in the series, Harry Potter and the Philosopher's Stone, was published in 1997. Six sequels
followed, and by 2008, Forbes had named her the world's highest-paid author.</p>
<div align="center" style="display: flex;">
<div id="bimg"><img src="https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcTy97XoGfDL7gn8LRO568l9rc_HQtzGMOfLOw&usqp=C
AU" alt=""></div>
<div id="bimg"><img src="https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcRwMS1ica6oFNlKBdfstube5qZVOQObgVWw6Q&usqp=C
AU" alt=""></div>
<div id="bimg"><img src="https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcRm01_6uELq5KcTWRAwc1yL-
WQbOM1BSi42bg&usqp=CAU" alt=""></div>
</div>
</body>
</html>
6.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Authors</title>
<style>
body {
margin: 20px;
padding: 10px;
background-image: url(https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcRL4BwRPPquNqfhF1vCtdnE5ukAE8Kj0XeWqQ&usqp=C
AU);
background-size: cover;
background: #d2cece;
}
img {
width: 200px;
height: 200px;
#aimg {
float:right;
position: relative;
right:100px;
box-shadow: 5px 10px 15px;
border-radius: 10px;
}
#bimg {
padding: 20px;
}
#bimg img:hover {
box-shadow: 2px 5px 12px ;
background-color: #fff;
border-radius: 10px;
width: 250px;
height: 250px;
h2 {
text-align: center;
color: rgb(149, 24, 149);
text-shadow: 2px 3px 20px;
background-color: pink;
}
h3 {
color: crimson;
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode',
Geneva, Verdana, sans-serif;
text-shadow: 2px 3px 15px;
font-size: 20px;
}
p,
li {
text-align: left;
color: rgb(0, 25, 247);
font-size: 20px;
}
div {
align-items: center;
/* background-color: #fff; */
width: 50%;
}
</style>
</head>
<body>
<h1 align="center" style="background-color: azure;">Authors</h1>
<h2 id="w">William Shakespeare</h2>
<img id="aimg"
src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSOnu-
RdI6Js3BeZwdilIQEuIUO9i--FftQ0g&usqp=CAU"
alt="">
<h3 id="wabout">About Author</h3>
<h3 id="wplays">Plays</h3>
<p>Shakespeare's plays portray recognisable people in situations that we can all relate to -
including love,
marriage, death, mourning, guilt, the need to make difficult choices, separation, reunion and
reconciliation.
They do so with great humanity, tolerance, and wisdom. They help us to understand what it is to
be human, and to
cope with the problems of being so. </p>
<h3 id="wpoems">Poems</h3>
<p></p>
<h3 id="wbooks">Books</h3>
<div align="center" style="display: flex;">
<div id="bimg">
<img
src="https://img.thriftbooks.com/api/images/s/3684285bfbf0c889d9e309d38a6e1c054f20a002.jpg"
alt="">
</div>
<div id="bimg">
<img
src="https://img.thriftbooks.com/api/images/s/d26c5d50592932cf57727891126afcf3566dc9c3.jpg"
alt="">
</div>
<div id="bimg">
<img
src="https://img.thriftbooks.com/api/images/s/5c4bd1e8133a7cfa83179a8f6f26af1a312fea71.jpg"
alt="">
</div>
</div>
<p></p>
<h3 id="cplays">Plays</h3>
<p></p>
<h3 id="cpoems">Poems</h3>
<p></p>
<h3 id="cbooks">Books</h3>
<div align="center" style="display: flex;">
<div id="bimg">
<img
src="https://img.thriftbooks.com/api/images/s/4511133739f1c56b3b599e5a6eb60b4944ec3591.jpg"
alt="">
</div>
<div id="bimg">
<img src="https://m.media-amazon.com/images/I/51+CSx00T9L._SL200_.jpg" alt="">
</div>
<div id="bimg">
<img
src="https://img.thriftbooks.com/api/images/s/928b7e723c50ef648f962705c452a008dfe1fa0b.jpg"
alt="">
</div>
</div>
<p></p>
<h3 id="aplays">Plays</h3>
<li>Murder On The Nile</li>
<li>Spider's Web </li>
<li>The Hollow</li>
<p></p>
<h3 id="apoems">Poems</h3>
<li>World Hymn</li>
<li>Dark Sheila</li>
<li>A Passing</li>
<h3 id="abooks">Books</h3>
<div align="center" style="display: flex;">
<div id="bimg"><img
src="https://img.thriftbooks.com/api/images/i/m/33F07AB88BD1559B6305EB66807621239E71FAE
5.jpg" alt="">
</div>
<div id="bimg">
<img
src="https://img.thriftbooks.com/api/images/i/m/A5A5AF2D91790079346456F0FA3EB40CDCF67F
D6.jpg" alt="">
</div>
<div id="bimg">
<img
src="https://img.thriftbooks.com/api/images/i/m/4A1952D7C3684439F78A574B7EA9CD8DE37C8
A24.jpg" alt="">
</div>
</div>
<p></p>
<h3 id="lplays">Plays</h3>
<p></p>
<li>The Power of Darkness</li>
<li>The Living Corpse</li>
<li>Strider </li>
<h3 id="lpoems">Poems</h3>
<p></p>
<li>The Kreutzer Sonata</li>
<li>Farmer's Porch</li>
<li>Changes in me</li>
<li>I'm Just Getting Started</li>
<li>Anna Karenina</li>
<h3 id="lbooks">Books</h3>
<p></p>
<div align="center" style="display: flex;">
<div id="bimg"> <img
src="https://img.thriftbooks.com/api/images/i/s/FECD7D8BD55765F58D362089DFFA97818C9CA6
74.jpg" alt="">
</div>
<div id="bimg"> <img
src="https://img.thriftbooks.com/api/images/s/73f8280bc8a285216da238b486713bb7140b5fd1.jpg"
alt=""></div>
<div id="bimg"> <img
src="https://img.thriftbooks.com/api/images/i/s/64C202DD99E3A8ADF1F30365DA53937118FED1
DD.jpg" alt="">
</div>
</div>
<h2 id="j">JK Rowling</h2>
<img id="aimg"
src="https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcTy97XoGfDL7gn8LRO568l9rc_HQtzGMOfLOw&usqp=C
AU"
alt="">
<h3 id="jabout">About Author</h3>
<h3 id="jplays">Plays</h3>
<p></p>
<li>Harry Potter and the Deathly Hallows</li>
<li>Harry Potter and the Order of the Phoenix</li>
<li>Harry Potter and the Half-Blood Prince</li>
<li>Harry Potter and the Prisoner of Azkaban</li>
<li>Harry Potter and the Sorcerer's Stone</li>
<h3 id="jpoems">Poems</h3>
<p></p>
<li>Sphinx's Riddle</li>
<li>Sorting Hat's Song</li>
<li>Grigotts Wizarding Bank Poem</li>
<h3 id="jbooks">Books</h3>
<div align="center" style="display: flex;">
<div id="bimg"> <img
src="https://img.thriftbooks.com/api/images/i/m/B84046D870A07EC2898389F30BC88DC46347E4
BD.jpg" alt="">
</div>
<div id="bimg"> <img
src="https://img.thriftbooks.com/api/images/i/m/83A2B3369312DE34B13CFB581A116E75A5FA8F
A8.jpg" alt="">
</div>
<div id="bimg"> <img
src="https://img.thriftbooks.com/api/images/i/m/7326D9253985F52EA8BE7019985CA47264391D8
4.jpg" alt="">
</div>
</div>
<a href="ex1.html">
<h2 align="right"> Home>></h2>
</a>
</body></html>
CSS
instyle.css
nav ul {
nav ul li {
display: inline-flex;
list-style-type: none;
/* margin:30px; */
padding: 12px;
font-size: large;
text-shadow: 2px 2px 5px grey;
text-decoration: none;
}
nav ul li:hover {
color: rgb(38, 0, 255);
font-weight: bolder;
background-color: rgb(198, 237, 219);
style.css
h1{
text-align: center;
color: rgb(255, 9, 173);
text-shadow: 2px 2px 2px rgb(241, 232, 232);
font-family: 'Times New Roman', Times, serif;
background-color:rgb(35, 33, 33);
border-radius: 10px;
height: 150px;
padding-top: 80px;
font-size: 60px;
}
img{
border: 3px solid ;
border-radius: 10px;
width: 200px;
height: 200px;
box-shadow: 15px 10px 20px black;
float: left;
margin-right: 40px;
}
p{
font-family:cursive;
font-size: 30px;
text-align: center;
}
div ul li{
font-family:Arial, Helvetica, sans-serif;
font-size: 22px;
text-align: center;
padding: 7px;
}
div{
width:100%;
height: 300px;
padding: 10px;
padding-bottom: 20px;
}
OUTPUT:
RESULT:
PROGRAM:
<!DOCTYPE html>
<html lang="en">
<head>
.container {
width: 50%;
margin: auto;
}
.form-group {
margin-bottom: 20px;
}
label {
display: block;
font-weight: bold;
font-size: 20px;
}
input[type="text"],
textarea, #email{
width: 100%;
padding: 10px;
border-radius: 7px;
}
span.error {
color: red;
}
#btn{
color: white;
font-size: 18px;
background-color: rgb(22, 22, 236);
padding: 10px;
border-radius: 5px;
border: none;
}
#btn:hover{
background-color: rgb(0, 0, 174);
}
h1{
text-shadow: 2px 2px 15px rgb(255, 255, 255);
color: rgba(134, 2, 174, 0.902);
}
</style>
</head>
<body>
<div class="container">
<h1 align="center">Credit Card Registration</h1>
<form id="registrationForm">
<div class="form-group">
<label for="name">Name (Initials at the end, no special characters except space):</label>
<input type="text" id="name" name="name" required>
<span class="error" id="nameError"></span>
</div>
<div class="form-group">
<label for="dob">Date of Birth:</label>
<input type="text" id="dob" name="dob" required>
<span class="error" id="dobError"></span>
</div>
<div class="form-group">
<label for="age">Age:</label>
<input type="text" id="age" name="age" required>
<span class="error" id="ageError"></span>
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<span class="error" id="emailError"></span>
</div>
<div class="form-group">
<label for="mobile">Mobile Number (10 digits):</label>
<input type="text" id="mobile" name="mobile" required>
<span class="error" id="mobileError"></span>
</div>
<div class="form-group">
<label for="accountNumber">Account Number:</label>
<input type="text" id="accountNumber" name="accountNumber" required>
<span class="error" id="accountNumberError"></span>
</div>
<div class="form-group">
<label for="bankName">Bank Name:</label>
<input type="text" id="bankName" name="bankName" required>
<span class="error" id="bankNameError"></span>
</div>
<div class="form-group">
<label for="ifsc">IFS Code:</label>
<input type="text" id="ifsc" name="ifsc" required>
<span class="error" id="ifscError"></span>
</div>
<div class="form-group">
<label for="annualIncome">Annual Income:</label>
<input type="text" id="annualIncome" name="annualIncome" required>
<span class="error" id="annualIncomeError"></span>
</div>
<div class="form-group">
<label for="address">Address:</label>
<textarea id="address" name="address" required></textarea>
<span class="error" id="addressError"></span>
</div>
<div align="right">
<button id="btn" type="submit">Submit</button></div>
</form>
</div>
<script>
const form = document.getElementById('registrationForm');
form.addEventListener('submit', function (event) {
// Prevent the form from submitting by default
event.preventDefault();
if (!dobValue.match(/^\d{2}-\d{2}-\d{4}$/)) {
document.getElementById('dobError').textContent = 'Invalid Date of Birth format (DD-
MM-YYYY)';
return;
} else {
document.getElementById('dobError').textContent = '';
}
}
else if (!(age === currAge)) {
document.getElementById('ageError').textContent = 'Invalid Age or Invalid Date of Birth';
return;
}
else {
document.getElementById('ageError').textContent = '';
}
// Validate Email
const emailValue = emailInput.value.trim();
if (!emailValue.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/)) {
document.getElementById('emailError').textContent = 'Invalid email format';
return;
} else {
document.getElementById('emailError').textContent = '';
}
</html>
OUTPUT:
RESULT:
PROGRAM:
index.html
<!DOCTYPE html>
<html>
<head>
<title>Login Form</title>
</head>
<body>
<h2>Login Form</h2>
<form action="./LoginServlet" method="post">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required><br><br>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required><br><br>
<input type="submit" value="Login">
</form>
</body>
</html>
LoginServlet.java
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException {
// Get the username and password from the request parameters
String gusername = request.getParameter("username");
String gpassword = request.getParameter("password");
// Check if the username and password are valid (replace with your validation logic)
if (username.equals(gusername) && password.equals(gpassword)) {
response.getWriter().write("Login Successful");
} else {
response.getWriter().write("Login Failed");
}
}
}
Web.xml
StudentMarks.jsp
<%
// Database connection details
String url = "jdbc:mysql://localhost:3306/mydb"; // Replace with your database URL
String username = "root";
String password = "Ayishu@123";
try {
Class.forName("com.mysql.jdbc.Driver");
conn = DriverManager.getConnection(url, username, password);
stmt = conn.createStatement();
}
}
ResultSet rs = stmt.executeQuery("SELECT * FROM StudentMarks");
%>
<!DOCTYPE html>
<html>
<head>
<title>Student Marks</title>
</head>
<body>
<div align="center">
<h2>Enter Student Marks:</h2>
<form method="post" action="">
<table border="1">
<tr bgcolor="pink">
<th>Student ID</th>
<th>Subject 1</th>
<th>Subject 2</th>
<th>Subject 3</th>
<th>Subject 4</th>
<th>Subject 5</th>
<th>Subject 6</th>
</tr>
<%
for (int i = 1; i <= 10; i++) {
%>
<tr >
<td><input type="text" name="studentID<%= i %>" required></td>
<td><input type="number" name="subject1<%= i %>" required></td>
<td><input type="number" name="subject2<%= i %>" required></td>
<td><input type="number" name="subject3<%= i %>" required></td>
<td><input type="number" name="subject4<%= i %>" required></td>
<td><input type="number" name="subject5<%= i %>" required></td>
<td><input type="number" name="subject6<%= i %>" required></td>
</tr>
<% } %>
</table>
<br>
<input type="submit" name="submit" value="Submit" style="background-color: rgb(45, 214,
45);color: white; font-size: 20px;border-radius: 5px;" ><br><br>
</form>
<h2>Student Marks</h2>
<table border="1">
<tr bgcolor="pink">
<th>Student ID</th>
<th>Subject 1</th>
<th>Subject 2</th>
<th>Subject 3</th>
<th>Subject 4</th>
<th>Subject 5</th>
<th>Subject 6</th>
</tr>
<%
while (rs.next()) {
int studentId = rs.getInt("student_id");
%>
<tr>
<td><%= studentId %></td>
<td><%= (rs.getObject("subject1") != null) ? rs.getInt("subject1") : "N/A" %></td>
<td><%= (rs.getObject("subject2") != null) ? rs.getInt("subject2") : "N/A" %></td>
<td><%= (rs.getObject("subject3") != null) ? rs.getInt("subject3") : "N/A" %></td>
<td><%= (rs.getObject("subject4") != null) ? rs.getInt("subject4") : "N/A" %></td>
<td><%= (rs.getObject("subject5") != null) ? rs.getInt("subject5") : "N/A" %></td>
<td><%= (rs.getObject("subject6") != null) ? rs.getInt("subject6") : "N/A" %></td>
</tr>
<% } %>
</table>
</div>
</body>
</html>
<%
// Close resources
stmt.close();
conn.close();
} catch (Exception e) {
out.println("Exception: " + e);
}
%>
OUTPUT:
RESULT:
PROGRAM:
library_schema.xsd
</xs:schema>
library.xml
<book>
<title>Wings Of Fire</title>
<author>A.P.J Abdul Kalam</author>
<section>Section 2</section>
<publication_year>2000</publication_year>
<isbn>1234561234</isbn>
</book>
</books>
<authors>
<author>
<name>J.K Rowling</name>
<birth_date>31-07-1965</birth_date>
<nationality>Britain</nationality>
</author>
<author>
<name>A.P.J Abdul Kalam</name>
<birth_date>15-10-1931</birth_date>
<nationality>India</nationality>
</author>
</authors>
<sections>
<section>Section 1</section>
<section>Section 2</section>
<!-- Additional section entries can be added here -->
</sections>
</library>
library_style.xslt
<xsl:template match="/">
<html>
<head>
<style>
table {
border-collapse: collapse;
width: 100%;
}
th, td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
th {
background-color: #f2f2f2;
}
</style>
</head>
<body>
<h2>Library Data</h2>
<h3>Books</h3>
<table>
<tr>
<th>Title</th>
<th>Author</th>
<th>Section</th>
<th>Publication Year</th>
<th>ISBN</th>
</tr>
<xsl:for-each select="/library/books/book">
<tr>
<td><xsl:value-of select="title"/></td>
<td><xsl:value-of select="author"/></td>
<td><xsl:value-of select="section"/></td>
<td><xsl:value-of select="publication_year"/></td>
<td><xsl:value-of select="isbn"/></td>
</tr>
</xsl:for-each>
</table>
<h3>Authors</h3>
<table>
<tr>
<th>Name</th>
<th>Birth Date</th>
<th>Nationality</th>
</tr>
<xsl:for-each select="/library/authors/author">
<tr>
<td><xsl:value-of select="name"/></td>
<td><xsl:value-of select="birth_date"/></td>
<td><xsl:value-of select="nationality"/></td>
</tr>
</xsl:for-each>
</table>
<h3>Sections</h3>
<ul>
<xsl:for-each select="/library/sections/section">
<li><xsl:value-of select="."/></li>
</xsl:for-each>
</ul>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
OUTPUT:
RESULT;