-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexcss.html
115 lines (106 loc) · 3.8 KB
/
excss.html
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="./icon.png">
<meta charset = "utf-8">
<title>JQCode.net CSS</title>
<script src="./jquery-3.6.0.min.js"></script>
<link id="def" rel="stylesheet" href="default.css">
<link id="stl" rel="stylesheet" href="styles.css">
<script src="./script.js"></script>
</head>
<body>
<nav>
<div class="navbar">
<image class="navimg name" src="./icon.png" alt="JQCode Logo">
<a class="navlink" href="./index.html">Home</a>
<a class="navlink" href="./quiz.html">Topic Quizzes</a>
<a class="navlink" href="./about.html">About</a>
<a class="dropdown">
<a class="navlink dropbtn">Examples and Tutorials</a>
<div class="dropdown-content">
<a href="./exhtml.html">HTML</a>
<a href="./exjs.html">JavaScript</a>
<a href="./excss.html">CSS</a>
<a href="./exjq.html">Jquery</a>
<a href="./expy.html">Python</a>
</div>
</a>
</a>
</div>
</nav>
<header></header>
<aside>
<div>
<p></p>
<a id="idd">🌓 Theme</a>
</div>
</aside>
<section>
<h1>JQCode.net</h1>
<h3>Introduction to CSS:</h3>
<p></p>
<div>
<p>CSS is used to change the way elements on a webpage look:</p>
<div class="codep">
<p><span class="tag">p</span> {<br>
<span class="atr">color</span>: <span class="val">red</span>;<br>
}</p>
</div>
<p>This would make all the paragraphs red:</p>
<h3>This is a size 3 heading</h3>
<p style="color: red;">This is a paragraph<p>
<p style="color: red;">This is a paragraph<p>
<a href="">This is a link</a>
<h4>This is a size 4 heading</h4>
</div>
</section>
<section>
<p></p>
<div>
<p>If at any time you would like to try the code on this site you can use <a href="https://www.onlinegdb.com/" target="blank">GDB Debugger</a> or <a href="https://www.w3schools.com/html/tryit.asp?filename=tryhtml_default" target="blank">W3Schools Tryit Editor</a> or use a text editor. To do that make a new file called 'index.html' and open with your text editor (don't double click, it will open the HTML file in your browser)</p>
</div>
</section>
<section>
<p></p>
<div>
<h3>CSS Syntax Basics</h3>
<p>CSS is a easy language to learn but you need to remember a few important things:</p>
<p>To start using CSS you first need to know how it works.<br>
CSS uses a system of:</p>
<p><i class="tag">selector</i> {<br>
<i class="atr">attribute</i>: <i class="val">value</i>;<br>
}</p>
<p>Lets turn that into real code</p>
<div class="codep">
<p><span class="tag">p</span>{<span class="atr">color</span>: <span class="val">red</span>;}</p>
</div>
<p>Lets change some more attributes:</p>
<div class="codep">
<p><span class="tag">p</span> {<br>
<span class="atr">color</span>: <span class="val">red</span>;<br>
<span class="atr">background-color:</span> <span class="val">blue</span>;<br>
<span class="atr">padding:</span> <span class="val">5px</span>;<br>
<span class="atr">border-radius:</span> <span class="val">15px</span>;<br>
<span class="atr">font-size:</span> <span class="val">20px</span>;<br>
}</p>
</div>
<p>To see it in action use one the editors above or go <a href="./cex1.html">Here</a></p>
</div>
<div>
<p>You can also use 'Inline' CSS which looks like this:</p>
<div class="codep">
<p>
<span class="tag"><p</span> <span class="atr">style=</span><span class="val">"color: red;"</span><span class=tag>></span>This paragraph will be red<span class="tag"><p></span><br><br>
output: <br>
<span style="color: red;">This paragraph will be red</span>
</p>
</div>
</div>
</section>
<footer>
<p>Copyright 2022 Samuel Sargent, Owner and Developer</p>
</footer>
</body>
</html>