-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
65 lines (53 loc) · 1.79 KB
/
Copy pathindex.html
File metadata and controls
65 lines (53 loc) · 1.79 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Introduction to CSS</title>
<style>
h1 {
color: navy;
text-align: center;
}
</style>
<link rel="stylesheet" href="styles/styles.css">
</head>
<body style="background-color: lightblue;">
<h1>Welcome to CSS Basics</h1>
<p>This is a simple introduction to CSS.</p>
<p>CSS stands for Cascading Style Sheets and is used to style HTML documents.</p>
<p>With CSS, you can change colors, fonts, layouts, and much more!</p>
<a href="contact.html">Contact Us</a>
<hr>
<h2>Box Model Demo</h2>
<div class="box-demo">
<p>This box shows margin, padding, and border in action.</p>
</div>
<hr>
<h2>Colors & Backgrounds</h2>
<div class="color-example">This box has a background color and a colored border.</div>
<hr>
<h2>Buttons</h2>
<button class="styled-button">Click Me!</button>
<button class="styled-button">Another Button</button>
<hr>
<h2>Simple Navigation</h2>
<nav class="nav-bar">
<a href="index.html" class="nav-link">Home</a>
<a href="contact.html" class="nav-link">Contact</a>
<a href="#" class="nav-link">About</a>
</nav>
<hr>
<h2>Card Example</h2>
<div class="card">
<h3>Card Title</h3>
<p>This is a simple card. Cards are useful for grouping content.</p>
</div>
<hr>
<h2>List Styling</h2>
<ul class="fancy-list">
<li>Learn CSS</li>
<li>Practice daily</li>
<li>Build cool websites</li>
</ul>
</body>
</html>