-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtml_css.html
More file actions
38 lines (37 loc) · 1.24 KB
/
html_css.html
File metadata and controls
38 lines (37 loc) · 1.24 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
34
35
36
37
38
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML and CSS Example</title>
<link rel="stylesheet" href="styles.css">
<!-- internal -->
<!-- <style>
h1 {
color: blue;
background-color: lightpink;
}
p {
color: green;
background-color: lightgray; ;
font-size: 20px;
}
</style> -->
</head>
<body>
<!-- <h1 style="color:indigo; background-color: pink">Hello, World!</h1> -->
<!-- inline (more priority than internal) -->
<!-- <p>This is a simple HTML document styled with CSS.</p> -->
<!-- <button>Click Me!</button>
<button>Click Me Too!</button> -->
<div style="color:blueviolet;background-color: yellow; width: 1000px; height: 200px;font-size: 50px; text-align: center;">
This is a div element.
</div>
<div style="color:blue;background-color: red; width: 1000px; height: 200px;font-size: 50px; text-align: center;">
Today's lecture.
</div>
<div style="color:green;background-color: orange; width: 1000px; height: 200px;font-size: 50px; text-align: center;">
last div.
</div>
</body>
</html>