-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCSS_in_HTML.html
More file actions
33 lines (33 loc) · 1.25 KB
/
CSS_in_HTML.html
File metadata and controls
33 lines (33 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html>
<head>
<title>CSS IN HTML</title>
<!--CSS Style declaration 1 and Linking with an external file -->
<style>
p{
color: green;
font-size: 30px;
font-family: sans-serif;
}
</style>
<link rel="stylesheet" href="CSS\style1.css">
</head>
<body>
<p>This is a green paragraph with larger font size</p>
<!--CSS Style declaration 2 -->
<p style="color: blue;font-size: 28px;font-family: 'Courier New', Courier, monospace;">This is a blue paragraph with large font size </p>
<p id="yellow_paragraph">This is a yellow paragraph with the largest font size</p>
<p class="red_paragraph">This is a red paragraph with an even larger font size</p>
<img class="image" src="Images\Drone.jpg" alt="This is a drone">
<div class="container">
<div class="item">
<img src="Images\KanyeWest.jpeg" alt="Ye">
<p>A paragraph inside a div container</p>
</div>
<div class="item">
<img src="Images\KanyeWest.jpeg" alt="Ye">
<p>A paragraph inside a div container</p>
</div>
</div>
</body>
</html>