Followed README and added main.css and created stylesheet entry. Edited index.html according to directions.

This commit is contained in:
cheeks 2024-06-29 00:08:17 -04:00
parent b11aab2595
commit e15b05ceb3
2 changed files with 16 additions and 1 deletions

View File

@ -4,11 +4,19 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="main.css">
<style>[]
p {
background-color: green;
font-size: 18px;
color:white;
}
</style>
<title>Methods for Adding CSS</title>
</head>
<body>
<div>Style me via the external method!</div>
<p>I would like to be styled with the internal method, please.</p>
<button>Inline Method</button>
<button style="background-color: orange; font-size: 18px;">Inline Method</button>
</body>
</html>

View File

@ -0,0 +1,7 @@
div {
color:white;
background-color: red;
font-size: 32px;
text-align: center;
font-weight: bold;
}