Added a CSS and HTML website

This commit is contained in:
Muhammad Ibrahim 2024-11-19 08:17:56 +05:30
parent 7b0cb030a2
commit cf5eeb3fd4
3 changed files with 51 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Colors</title>
<style>
/* Write your CSS code here. */
/* 1. Make the background of the webpage "antiquewhite"
2. Make the h1 "whitesmoke"
3. Make the background of the h1 "darkseagreen"
4. Make the h2 #FAF8F1
5. Make the background of the h2 "#C58940" */
</style>
</head>
<body>
<h1>Hello</h1>
<h2>World</h2>
</body>
</html>

View File

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Colors</title>
<style>
body {
background-color: antiquewhite;
}
h1 {
color: whitesmoke;
background-color: darkseagreen;
}
h2 {
color: #FAF8F1;
background-color: #C58940;
}
</style>
</head>
<body>
<h1>Hello</h1>
<h2>World</h2>
</body>
</html>