Completed exercise 01
Added style.css - external, style tag - internal, style value - inline
This commit is contained in:
parent
4af2ddc1c6
commit
0d2bcd0903
|
@ -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>
|
|
@ -0,0 +1,7 @@
|
|||
div {
|
||||
background: red;
|
||||
color: white;
|
||||
font-size: 32px;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
}
|
Loading…
Reference in New Issue