Complete WD Lab Exp
Complete WD Lab Exp
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Online Bookstore - Homepage</title>
<style>
body {
margin: 0;
font-family: Arial, sans-serif;
}
.container {
display: flex;
flex-direction: column;
height: 100vh;
}
.top-frame {
background-color: #4CAF50;
color: white;
padding: 10px;
text-align: center;
height: 15%;
}
.top-frame img {
height: 50px;
vertical-align: middle;
}
.top-frame a {
color: white;
margin: 0 15px;
text-decoration: none;
font-weight: bold;
}
.top-frame a:hover {
text-decoration: underline;
}
.main-frame {
display: flex;
flex: 1;
}
.left-frame {
background-color: #f1f1f1;
width: 20%;
padding: 10px;
}
.left-frame a {
display: block;
padding: 10px;
text-decoration: none;
color: #333;
margin-bottom: 5px;
}
.left-frame a:hover {
background-color: #ddd;
}
.right-frame {
flex: 1;
padding: 20px;
background-color: #fff;
}
</style>
</head>
<body>
<div class="container">
<div class="top-frame">
<img src="[Link]" alt="Logo"> <!-- Replace with actual logo
path -->
<span>Online Bookstore</span>
<div>
<a href="[Link]">Home</a>
<a href="[Link]">Login</a>
<a href="[Link]">Registration</a>
<a href="[Link]">Catalogue</a>
<a href="[Link]">Cart</a>
</div>
</div>
<div class="main-frame">
<div class="left-frame">
<a href="#" onclick="loadCatalogue('CSE')">CSE</a>
<a href="#" onclick="loadCatalogue('ECE')">ECE</a>
<a href="#" onclick="loadCatalogue('EEE')">EEE</a>
<a href="#" onclick="loadCatalogue('CIVIL')">CIVIL</a>
</div>
<div class="right-frame" id="rightContent">
<h2>Description of the Web Site</h2>
<p>Welcome to our online bookstore! Browse through various
categories of books and enjoy shopping.</p>
</div>
</div>
</div>
<script>
function loadCatalogue(category) {
// For static page, simulate loading content
[Link]('rightContent').innerHTML =
`<h2>${category} Catalogue</h2><p>Books for ${category} will be displayed
here.</p>`;
// In full implementation, this would link to catalogue page
with category filter
}
</script>
</body>
</html>
Experiment - 2
Q. Create a Login Page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Online Bookstore - Login</title>
<style>
body {
margin: 0;
font-family: Arial, sans-serif;
}
.container {
display: flex;
flex-direction: column;
height: 100vh;
}
.top-frame {
background-color: #4CAF50;
color: white;
padding: 10px;
text-align: center;
height: 15%;
}
.top-frame img {
height: 50px;
vertical-align: middle;
}
.top-frame a {
color: white;
margin: 0 15px;
text-decoration: none;
font-weight: bold;
}
.top-frame a:hover {
text-decoration: underline;
}
.main-frame {
display: flex;
flex: 1;
}
.left-frame {
background-color: #f1f1f1;
width: 20%;
padding: 10px;
}
.left-frame a {
display: block;
padding: 10px;
text-decoration: none;
color: #333;
margin-bottom: 5px;
}
.left-frame a:hover {
background-color: #ddd;
}
.right-frame {
flex: 1;
padding: 20px;
background-color: #fff;
}
.login-form {
max-width: 300px;
margin: 0 auto;
}
.login-form h2 {
text-align: center;
}
.login-form label {
display: block;
margin: 10px 0 5px;
}
.login-form input[type="text"],
.login-form input[type="password"] {
width: 100%;
padding: 8px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 4px;
}
.login-form input[type="submit"],
.login-form input[type="reset"] {
background-color: #4CAF50;
color: white;
padding: 10px 15px;
border: none;
border-radius: 4px;
cursor: pointer;
margin-right: 10px;
}
.login-form input[type="submit"]:hover,
.login-form input[type="reset"]:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<div class="container">
<div class="top-frame">
<img src="[Link]" alt="Logo"> <!-- Replace with actual logo
path -->
<span>Online Bookstore</span>
<div>
<a href="[Link]">Home</a>
<a href="[Link]">Login</a>
<a href="[Link]">Registration</a>
<a href="[Link]">Catalogue</a>
<a href="[Link]">Cart</a>
</div>
</div>
<div class="main-frame">
<div class="left-frame">
<a href="#" onclick="loadCatalogue('CSE')">CSE</a>
<a href="#" onclick="loadCatalogue('ECE')">ECE</a>
<a href="#" onclick="loadCatalogue('EEE')">EEE</a>
<a href="#" onclick="loadCatalogue('CIVIL')">CIVIL</a>
</div>
<div class="right-frame">
<div class="login-form">
<h2>Login Page</h2>
<form>
<label for="username">User Name:</label>
<input type="text" id="username" name="username"
required>
<label for="password">Password:</label>
<input type="password" id="password"
name="password" required>
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</form>
</div>
</div>
</div>
</div>
<script>
function loadCatalogue(category) {
[Link]('rightContent').innerHTML =
`<h2>${category} Catalogue</h2><p>Books for ${category} will be displayed
here.</p>`;
}
</script>
</body>
</html>
Experiment - 3
Q. Create a Catalogue Page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Online Bookstore - Catalogue</title>
<style>
body {
margin: 0;
font-family: Arial, sans-serif;
}
.container {
display: flex;
flex-direction: column;
height: 100vh;
}
.top-frame {
background-color: #4CAF50;
color: white;
padding: 10px;
text-align: center;
height: 15%;
}
.top-frame img {
height: 50px;
vertical-align: middle;
}
.top-frame a {
color: white;
margin: 0 15px;
text-decoration: none;
font-weight: bold;
}
.top-frame a:hover {
text-decoration: underline;
}
.main-frame {
display: flex;
flex: 1;
}
.left-frame {
background-color: #f1f1f1;
width: 20%;
padding: 10px;
}
.left-frame a {
display: block;
padding: 10px;
text-decoration: none;
color: #333;
margin-bottom: 5px;
}
.left-frame a:hover {
background-color: #ddd;
}
.right-frame {
flex: 1;
padding: 20px;
background-color: #fff;
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
th {
background-color: #4CAF50;
color: white;
}
[Link]-cover {
width: 50px;
height: auto;
}
button {
background-color: #4CAF50;
color: white;
padding: 5px 10px;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<div class="container">
<div class="top-frame">
<img src="[Link]" alt="Logo"> <!-- Replace with actual logo
path -->
<span>Online Bookstore</span>
<div>
<a href="[Link]">Home</a>
<a href="[Link]">Login</a>
<a href="[Link]">Registration</a>
<a href="[Link]">Catalogue</a>
<a href="[Link]">Cart</a>
</div>
</div>
<div class="main-frame">
<div class="left-frame">
<a href="#" onclick="loadCatalogue('CSE')">CSE</a>
<a href="#" onclick="loadCatalogue('ECE')">ECE</a>
<a href="#" onclick="loadCatalogue('EEE')">EEE</a>
<a href="#" onclick="loadCatalogue('CIVIL')">CIVIL</a>
</div>
<div class="right-frame">
<h2>Catalogue</h2>
<table>
<tr>
<th>Cover Page</th>
<th>Book Title</th>
<th>Author</th>
<th>Publisher</th>
<th>Price</th>
<th>Action</th>
</tr>
<tr>
<td><img src="xml_bible.jpg" alt="XML Bible Cover"
class="book-cover"></td>
<td>XML Bible</td>
<td>Winston</td>
<td>Wiely</td>
<td>$40.5</td>
<td><button onclick="addToCart('XML Bible')">Add
to Cart</button></td>
</tr>
<tr>
<td><img src="ai_book.jpg" alt="AI Cover"
class="book-cover"></td>
<td>AI</td>
<td>S. Russel</td>
<td>Princeton Hall</td>
<td>$63</td>
<td><button onclick="addToCart('AI')">Add to
Cart</button></td>
</tr>
<tr>
<td><img src="java2_book.jpg" alt="Java 2 Cover"
class="book-cover"></td>
<td>Java 2</td>
<td>Watson</td>
<td>BPB Publications</td>
<td>$35.5</td>
<td><button onclick="addToCart('Java 2')">Add to
Cart</button></td>
</tr>
<tr>
<td><img src="html_24hours.jpg" alt="HTML in 24
Hours Cover" class="book-cover"></td>
<td>HTML in 24 Hours</td>
<td>Sam Peter</td>
<td>Sam Publication</td>
<td>$50</td>
<td><button onclick="addToCart('HTML in 24
Hours')">Add to Cart</button></td>
</tr>
</table>
</div>
</div>
</div>
<script>
function loadCatalogue(category) {
[Link]('.right-frame').innerHTML =
`<h2>${category} Catalogue</h2><p>Books for ${category} will be displayed
here.</p>`;
}
function addToCart(bookTitle) {
alert(`${bookTitle} has been added to your cart!`);
// In a full implementation, this would interact with a cart
system
}
</script>
</body>
</html>
Experiment - 4
Q. Create a Cart Page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Online Bookstore - Cart</title>
<style>
body {
margin: 0;
font-family: Arial, sans-serif;
}
.container {
display: flex;
flex-direction: column;
height: 100vh;
}
.top-frame {
background-color: #4CAF50;
color: white;
padding: 10px;
text-align: center;
height: 15%;
}
.top-frame img {
height: 50px;
vertical-align: middle;
}
.top-frame a {
color: white;
margin: 0 15px;
text-decoration: none;
font-weight: bold;
}
.top-frame a:hover {
text-decoration: underline;
}
.main-frame {
display: flex;
flex: 1;
}
.left-frame {
background-color: #f1f1f1;
width: 20%;
padding: 10px;
}
.left-frame a {
display: block;
padding: 10px;
text-decoration: none;
color: #333;
margin-bottom: 5px;
}
.left-frame a:hover {
background-color: #ddd;
}
.right-frame {
flex: 1;
padding: 20px;
background-color: #fff;
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
th {
background-color: #4CAF50;
color: white;
}
button {
background-color: #ff4444;
color: white;
padding: 5px 10px;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #cc0000;
}
.total {
margin-top: 20px;
font-weight: bold;
text-align: right;
}
</style>
</head>
<body>
<div class="container">
<div class="top-frame">
<img src="[Link]" alt="Logo"> <!-- Replace with actual logo
path -->
<span>Online Bookstore</span>
<div>
<a href="[Link]">Home</a>
<a href="[Link]">Login</a>
<a href="[Link]">Registration</a>
<a href="[Link]">Catalogue</a>
<a href="[Link]">Cart</a>
</div>
</div>
<div class="main-frame">
<div class="left-frame">
<a href="#" onclick="loadCatalogue('CSE')">CSE</a>
<a href="#" onclick="loadCatalogue('ECE')">ECE</a>
<a href="#" onclick="loadCatalogue('EEE')">EEE</a>
<a href="#" onclick="loadCatalogue('CIVIL')">CIVIL</a>
</div>
<div class="right-frame">
<h2>Shopping Cart</h2>
<table>
<tr>
<th>Book Title</th>
<th>Author</th>
<th>Publisher</th>
<th>Price</th>
<th>Action</th>
</tr>
<tr>
<td>XML Bible</td>
<td>Winston</td>
<td>Wiely</td>
<td>$40.5</td>
<td><button onclick="removeFromCart('XML
Bible')">Remove</button></td>
</tr>
<tr>
<td>Java 2</td>
<td>Watson</td>
<td>BPB Publications</td>
<td>$35.5</td>
<td><button onclick="removeFromCart('Java
2')">Remove</button></td>
</tr>
</table>
<div class="total">
Total: $76.0
</div>
</div>
</div>
</div>
<script>
function loadCatalogue(category) {
[Link]('.right-frame').innerHTML =
`<h2>${category} Catalogue</h2><p>Books for ${category} will be displayed
here.</p>`;
}
function removeFromCart(bookTitle) {
alert(`${bookTitle} has been removed from your cart!`);
// In a full implementation, this would update the cart
dynamically
}
</script>
</body>
</html>
Experiment - 5
Q. Create a Registration Page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Online Bookstore - Registration</title>
<style>
body {
margin: 0;
font-family: Arial, sans-serif;
}
.container {
display: flex;
flex-direction: column;
height: 100vh;
}
.top-frame {
background-color: #4CAF50;
color: white;
padding: 10px;
text-align: center;
height: 15%;
}
.top-frame img {
height: 50px;
vertical-align: middle;
}
.top-frame a {
color: white;
margin: 0 15px;
text-decoration: none;
font-weight: bold;
}
.top-frame a:hover {
text-decoration: underline;
}
.main-frame {
display: flex;
flex: 1;
}
.left-frame {
background-color: #f1f1f1;
width: 20%;
padding: 10px;
}
.left-frame a {
display: block;
padding: 10px;
text-decoration: none;
color: #333;
margin-bottom: 5px;
}
.left-frame a:hover {
background-color: #ddd;
}
.right-frame {
flex: 1;
padding: 20px;
background-color: #fff;
}
.registration-form {
max-width: 400px;
margin: 0 auto;
}
.registration-form h2 {
text-align: center;
}
.registration-form label {
display: block;
margin: 10px 0 5px;
}
.registration-form input[type="text"],
.registration-form input[type="password"],
.registration-form textarea {
width: 100%;
padding: 8px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 4px;
}
.registration-form select {
padding: 8px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 4px;
}
.registration-form input[type="radio"],
.registration-form input[type="checkbox"] {
margin-right: 5px;
}
.registration-form input[type="submit"],
.registration-form input[type="reset"] {
background-color: #4CAF50;
color: white;
padding: 10px 15px;
border: none;
border-radius: 4px;
cursor: pointer;
margin-right: 10px;
}
.registration-form input[type="submit"]:hover,
.registration-form input[type="reset"]:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<div class="container">
<div class="top-frame">
<img src="[Link]" alt="Logo"> <!-- Replace with actual logo
path -->
<span>Online Bookstore</span>
<div>
<a href="[Link]">Home</a>
<a href="[Link]">Login</a>
<a href="[Link]">Registration</a>
<a href="[Link]">Catalogue</a>
<a href="[Link]">Cart</a>
</div>
</div>
<div class="main-frame">
<div class="left-frame">
<a href="#" onclick="loadCatalogue('CSE')">CSE</a>
<a href="#" onclick="loadCatalogue('ECE')">ECE</a>
<a href="#" onclick="loadCatalogue('EEE')">EEE</a>
<a href="#" onclick="loadCatalogue('CIVIL')">CIVIL</a>
</div>
<div class="right-frame">
<div class="registration-form">
<h2>Registration</h2>
<form>
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="password">Password:</label>
<input type="password" id="password"
name="password" required>
<label>Sex:</label>
<input type="radio" id="male" name="sex"
value="male" required>
<label for="male" style="display:
inline;">Male</label>
<input type="radio" id="female" name="sex"
value="female">
<label for="female" style="display:
inline;">Female</label>
<label>Date of Birth:</label>
<select id="day" name="day" required>
<option value="">Day</option>
<option value="1">1</option>
<!-- Add options up to 31 -->
<option value="31">31</option>
</select>
<select id="month" name="month" required>
<option value="">Month</option>
<option value="January">January</option>
<!-- Add other months -->
<option value="December">December</option>
</select>
<select id="year" name="year" required>
<option value="">Year</option>
<option value="2005">2005</option>
<!-- Add years back to 1900 or as needed -->
<option value="1900">1900</option>
</select>
<label>Languages Known:</label>
<input type="checkbox" id="english"
name="languages" value="English">
<label for="english" style="display:
inline;">English</label>
<input type="checkbox" id="telugu"
name="languages" value="Telugu">
<label for="telugu" style="display:
inline;">Telugu</label>
<input type="checkbox" id="hindi" name="languages"
value="Hindi">
<label for="hindi" style="display:
inline;">Hindi</label>
<input type="checkbox" id="tamil" name="languages"
value="Tamil">
<label for="tamil" style="display:
inline;">Tamil</label>
<label for="address">Address:</label>
<textarea id="address" name="address" rows="4"
required></textarea>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Online Bookstore - Registration Validation</title>
<style>
body {
margin: 0;
font-family: Arial, sans-serif;
}
.container {
display: flex;
flex-direction: column;
height: 100vh;
}
.top-frame {
background-color: #4CAF50;
color: white;
padding: 10px;
text-align: center;
height: 15%;
}
.top-frame img {
height: 50px;
vertical-align: middle;
}
.top-frame a {
color: white;
margin: 0 15px;
text-decoration: none;
font-weight: bold;
}
.top-frame a:hover {
text-decoration: underline;
}
.main-frame {
display: flex;
flex: 1;
}
.left-frame {
background-color: #f1f1f1;
width: 20%;
padding: 10px;
}
.left-frame a {
display: block;
padding: 10px;
text-decoration: none;
color: #333;
margin-bottom: 5px;
}
.left-frame a:hover {
background-color: #ddd;
}
.right-frame {
flex: 1;
padding: 20px;
background-color: #fff;
}
.registration-form {
max-width: 400px;
margin: 0 auto;
}
.registration-form h2 {
text-align: center;
}
.registration-form label {
display: block;
margin: 10px 0 5px;
}
.registration-form input[type="text"],
.registration-form input[type="password"] {
width: 100%;
padding: 8px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 4px;
}
.registration-form input[type="submit"],
.registration-form input[type="reset"] {
background-color: #4CAF50;
color: white;
padding: 10px 15px;
border: none;
border-radius: 4px;
cursor: pointer;
margin-right: 10px;
}
.registration-form input[type="submit"]:hover,
.registration-form input[type="reset"]:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<div class="container">
<div class="top-frame">
<img src="[Link]" alt="Logo"> <!-- Replace with actual logo
path -->
<span>Online Bookstore</span>
<div>
<a href="[Link]">Home</a>
<a href="[Link]">Login</a>
<a href="[Link]">Registration</a>
<a href="[Link]">Catalogue</a>
<a href="[Link]">Cart</a>
</div>
</div>
<div class="main-frame">
<div class="left-frame">
<a href="#" onclick="loadCatalogue('CSE')">CSE</a>
<a href="#" onclick="loadCatalogue('ECE')">ECE</a>
<a href="#" onclick="loadCatalogue('EEE')">EEE</a>
<a href="#" onclick="loadCatalogue('CIVIL')">CIVIL</a>
</div>
<div class="right-frame">
<div class="registration-form">
<h2>Registration</h2>
<form onsubmit="return validateForm()">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="password">Password:</label>
<input type="password" id="password"
name="password" required>
function validateForm() {
const name = [Link]('name').value;
const password = [Link]('password').value;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Registration Form - Centered & Colorful</title>
<style>
/* Full page gradient background */
body {
margin: 0;
padding: 0;
height: 100vh;
font-family: Arial, sans-serif;
background: linear-gradient(135deg, #667eea, #764ba2); /* Beautiful purple-blue
gradient */
display: flex;
justify-content: center;
align-items: center;
color: #333;
}
h2 {
font-family: 'Georgia', serif;
color: #4a148c;
margin-bottom: 20px;
}
label {
display: block;
text-align: left;
margin: 15px 0 5px;
font-weight: bold;
color: #6a1b9a;
}
input[type="text"],
input[type="password"] {
width: 100%;
padding: 12px;
margin-bottom: 15px;
border: 2px solid #9575cd;
border-radius: 8px;
font-family: 'Courier New', monospace;
font-size: 16px;
box-sizing: border-box;
transition: all 0.3s;
background-color: #f8f0ff;
}
input:focus {
border-color: #7e57c2;
outline: none;
box-shadow: 0 0 8px rgba(126, 87, 194, 0.5);
}
button {
background-color: #6a1b9a;
color: white;
padding: 12px 30px;
font-size: 18px;
border: none;
border-radius: 8px;
cursor: pointer;
margin-top: 20px;
transition: 0.3s;
}
button:hover {
background-color: #4a148c;
transform: scale(1.05);
}
<div class="form-container">
<h2>Register Account</h2>
<form id="registrationForm">
<label for="name">Full Name</label>
<input type="text" id="name" placeholder="Enter name (min 6 letters)">
<label for="password">Password</label>
<input type="password" id="password" placeholder="Min 6 characters">
<p style="margin-top:20px;">
<a href="#">Forgot Password?</a> | <a href="#">Login Here</a>
</p>
</div>
<script>
function validateForm() {
🎉
if (validateName() && validatePassword() && validateEmail() && validatePhone()) {
alert("Registration Successful! ");
return true;
}
return false;
}
function validatePassword() {
const password = [Link]("password").value;
if ([Link] < 6) {
alert("Password must be at least 6 characters long.");
return false;
}
return true;
}
function validatePhone() {
const phone = [Link]("phone").value;
const phoneRegex = /^\d{10}$/;
if () {
alert("Phone number must be exactly 10 digits.");
return false;
}
return true;
}
</script>
</body>
</html>
Experiment 8: Design a complete web page using CSS that demonstrates the following
two requirements:
1. Use different fonts and styles by defining them in CSS using selectors (like tag selectors,
class selectors, etc.), then apply those styles in the HTML body.
2. Set a background image for the entire page and also for a single specific element on the
page.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
background-color: #f0f2f5;
margin: 0;
padding: 40px;
line-height: 1.6;
color: #333;
color: #2c3e50;
text-align: center;
font-size: 2.8rem;
h2 {
color: #8e44ad;
padding-bottom: 8px;
.fancy-text {
font-style: italic;
color: #2c3e50;
background-color: #ecf0f1;
padding: 15px;
}
/* Special box using ID selector */
#highlight-box {
font-weight: bold;
font-size: 1.2rem;
color: white;
background-color: #e74c3c;
padding: 20px;
border-radius: 10px;
text-align: center;
margin: 30px 0;
/* 2. Background images */
body {
background-image:
url('[Link]
mat&fit=crop&w=1350&q=80');
background-size: cover;
background-attachment: fixed;
}
/* Overlay to make text readable on background image */
.overlay {
max-width: 900px;
margin: 0 auto;
padding: 40px;
border-radius: 15px;
.card {
background-image:
url('[Link]
&fit=crop&w=500&q=80');
background-size: cover;
background-position: center;
color: white;
padding: 40px;
border-radius: 12px;
margin: 30px 0;
text-align: center;
min-height: 200px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
</style>
</head>
<body>
<div class="overlay">
<p class="fancy-text">
This paragraph uses a class selector (.fancy-text) with Lucida Sans font, italic style,
</p>
<p>
<div id="highlight-box">
This box uses an ID selector (#highlight-box) with Trebuchet MS font, bold weight,
</div>
<div class="card">
</div>
</p>
</div>
</body>
</html>