0% found this document useful (0 votes)
14 views

Assignment 11

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Assignment 11

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Assignment 11

5.Design a webpage with the help of required HTML Tags and


apply some designs with

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>

6.Design a webpage with the help of required HTML Tags and


apply some designs with

the help of External CSS by using <link> Tag & some attributes
like rel, type,

href.(Write HTML Code, CSS Code & attach Output)


Html code ---->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>External CSS Example</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<header>
<h1>Welcome to My Webpage</h1>
</header>

<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;
}

You might also like