Completed exercise 01

Added style.css - external, style tag - internal, style value - inline
This commit is contained in:
NetMan 2023-12-28 18:37:31 +01:00
parent 4af2ddc1c6
commit 0d2bcd0903
2 changed files with 16 additions and 1 deletions

View File

@ -5,10 +5,18 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Methods for Adding CSS</title>
<style>
p {
background: green;
color: white;
font-size: 18px;
}
</style>
<link rel="stylesheet" href="style.css">
</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: orange; font-size: 18px;">Inline Method</button>
</body>
</html>

7
01-css-methods/style.css Normal file
View File

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