Awt Solutions
Awt Solutions
<html>
<head>
<title>Practical 1</title>
</head>
<body>
<h1>HTML Heading tag</h1>
<p> HTML headings are defined with the h1 to h6 tags. h1
defines the most important heading. h6 defines the least
important heading. </p>
<h2>HTML Links</h2>
<p>HTML links are defined with the a tag :</p>
<a href="https://www.raisoni.net">This is a link</a>
<h2>HTML Images</h2>
<p>HTML images are defined with the img tag:</p>
<img src= "
C:\xampp\htdocs\dashboard\images\team\paul-hinz.jpg”
alt="Raisoni College Image" width="104" height="142">
</body>
</html>
2.Create a Web Page for displaying a paragraph using block level tags, HR
tags.
<html>
<head>
<title>Practical2</title>
</head>
<body>
<h1>Basic Internet Terms</h1>
<h2>Browser</h2>
<p>Browser software is specifically designed to convert HTML
and XML computer code into human-readable documents.</p>
<hr>
<h2>Web Page </h2>
<p>A web page is what you see in a web browser when you're
on the internet.</p>
<hr>
<h2>Uniform Resource Locators (URLs)</h2>
<p>Uniform Resource Locators (URLs) are the web browser
addresses of internet pages and files.</p>
</body>
</html>
<ol>
<li>C Programming</li>
<li>AWT</li>
<li>DBMS</li>
</ol>
</body>
</html>
<ul>
<li>C Programming</li>
<li>AWT</li>
<li>DBMS</li>
</ul>
</body>
</html>
7.Design a Web Page of class TIME TABLE using HTML table tag.
<html>
<head>
<title>Time Table</title>
</head>
<body>
<table border="1" cellspacing="0">
8.Write an HTML Code to create a registration for with the following fields
like Name, Password, Email.ID, Mobile no, Gender, DOB, Language known
and Address.
<html>
<head>
<title>Form Example</title>
</head>
<body>
<h2>Registration Form</h2>
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<br><br>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<br><br>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required>
<br><br>
<label>Gender:</label>
<input type="radio" id="male" name="gender" value="male">
<label for="male">Male</label>
<input type="radio" id="female" name="gender" value="female">
<label for="female">Female</label>
<br><br>
<label>Interests:</label>
<input type="checkbox" id="sports" name="interests" value="sports">
<label for="sports">Sports</label>
<input type="checkbox" id="music" name="interests" value="music">
<label for="music">Music</label>
<input type="checkbox" id="reading" name="interests"
value="reading">
<label for="reading">Reading</label>
<br><br>
</form>
</body>
</html>
<html>
<head>
<title>Audio and Video Example</title>
</head>
<body>
<h3>Audio Example</h3>
<audio controls>
<source src="audio-file.mp3" type="audio/mpeg">
<source src="audio-file.ogg" type="audio/ogg">
Your browser does not support the audio element.
</audio>
<p>This is an example of an embedded audio file.</p>
<hr>
<h3>Video Example</h3>
<video width="640" height="360" controls>
<source src="video-file.mp4" type="video/mp4">
<source src="video-file.ogg" type="video/ogg">
Your browser does not support the video element.
</video>
<p>This is an example of an embedded video file.</p>
</body>
</html>
<h3>Left to Right</h3>
<marquee direction="right">This text scrolls from left to right!</marquee>
<br><br>
<h3>Right to Left</h3>
<marquee>This text scrolls from right to left!</marquee>
<br><br>
<h3>Top to Bottom</h3>
<marquee direction="down" height="100">This text scrolls from top to
bottom!</marquee>
<br><br>
<h3>Bottom to Top</h3>
<marquee direction="up" height="100">This text scrolls from bottom to
top!</marquee>
</body>
</html>
11.Write an HTML Code to demonstrate the use of frameset tag.
<!DOCTYPE html>
<html>
<head>
<title>Frameset Example</title>
</head>
<frameset cols="25%,75%">
<frameset rows="50%,50%">
<frame src="header.html" name="header">
<frame src="content.html" name="content">
</frameset>
</frameset>
<noframes>
<body>
Your browser does not support frames. Please update your browser or use a
modern browser to view this content.
</body>
</noframes>
</html>
12.Design a Webpage using FONT PROPERTY of Cascading Stylesheet(CSS)
<!DOCTYPE html>
<html>
<head>
<title>Webpage with Font Properties</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
}
h1 {
font-family: 'Georgia', serif;
font-size: 36px;
font-weight: bold;
text-align: center;
color: #4CAF50;
}
h2 {
font-family: 'Courier New', monospace;
font-size: 28px;
font-style: italic;
color: #333;
}
p{
font-family: 'Verdana', sans-serif;
font-size: 16px;
color: #555;
}
.highlight {
font-weight: bold;
color: #ff6600;
}
.centered {
text-align: center;
}
</style>
</head>
<body>
<h1>Welcome to My Webpage</h1>
</body>
</html>
13.Use CSS to apply a background color to a section and add different types of
borders (solid, dashed, dotted) to various elements?
<!DOCTYPE html>
<html>
<head>
<title>Background Color and Borders</title>
<style>
/* Applying background color to the section */
section {
background-color: #f0f8ff;
padding: 20px;
}
</body>
</html>
14.Create hover effects on buttons and links, and create smooth transitions for
changing background color when a user hovers over them
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hover Effects and Transitions</title>
<style>
/* Basic button style */
.btn {
background-color: #4CAF50; /* Initial background color */
color: white;
padding: 12px 24px;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease; /* Smooth transition */
}
<br><br>
</body>
</html>
15.Create a webpage for your organization having a home page and contact us
page(form with username, email and submit button).Also use suitable CSS.
(Optional).
<!DOCTYPE html>
<html>
<head>
<title>Simple Webpage</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
header {
background-color: #4CAF50;
color: white;
padding: 10px 0;
text-align: center;
}
nav {
background-color: #333;
overflow: hidden;
}
nav a {
float: left;
display: block;
color: white;
text-align: center;
padding: 14px 20px;
text-decoration: none;
}
nav a:hover {
background-color: #575757;
}
section {
padding: 20px;
}
footer {
background-color: #333;
color: white;
text-align: center;
padding: 10px;
position: absolute;
bottom: 0;
width: 100%;
}
</style>
</head>
<body>
<h2>Services We Offer</h2>
<ul>
<li>Web Design</li>
<li>Web Development</li>
<li>SEO Optimization</li>
</ul>
</section>
</body>
</html>