Assignment 11
Assignment 11
the help of Internal CSS by using <style> Tag (Write HTML Code &
attach Output)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Internal CSS Example</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
header {
background-color: #333;
color: white;
text-align: center;
padding: 20px 0;
}
h1 {
font-size: 2em;
}
.content {
padding: 20px;
}
footer {
background-color: #333;
color: white;
text-align: center;
padding: 10px 0;
position: fixed;
width: 100%;
bottom: 0;
}
</style>
</head>
<body>
<header>
<h1>Welcome to My Webpage</h1>
</header>
<div class="content">
<p>This is a simple webpage designed with HTML and
Internal CSS.</p>
</div>
<footer>
<p>Footer Content</p>
</footer>
</body>
</html>
the help of External CSS by using <link> Tag & some attributes
like rel, type,
<div class="content">
<p>This webpage is styled using external CSS.</p>
</div>
<footer>
<p>Footer Content</p>
</footer>
</body>
</html>
External CSS----->
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
header {
background-color: #333;
color: white;
text-align: center;
padding: 20px 0;
}
h1 {
font-size: 2em;
}
.content {
padding: 20px;
}
footer {
background-color: #333;
color: white;
text-align: center;
padding: 10px 0;
position: fixed;
width: 100%;
bottom: 0;
}