-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIndexDocumentacaoTecnica.html
180 lines (154 loc) · 8.45 KB
/
IndexDocumentacaoTecnica.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="styles.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<nav id="navbar">
<header>CSS Documentation</header>
<a href="#Introduction" class="nav-link">Introduction</a>
<a href="#Learning_pathway" class="nav-link">Learning pathway</a>
<a href="#Use_CSS" class="nav-link">Use CSS</a>
<a href="#Modules" class="nav-link">Modules</a>
<a href="#Solving_common_CSS_problems" class="nav-link">Solving common CSS problems</a>
<a href="#See_also" class="nav-link">See also</a>
</nav>
<main id="main-doc">
<section class="main-section" id="Introduction">
<header>Introduction</header>
<p>Cascading Stylesheets — or CSS — is the first technology you should start learning after HTML. While HTML
is
used to define the structure and semantics of your content, CSS is used to style it and lay it out. For
example, you can use CSS to alter the font, color, size, and spacing of your content, split it into
multiple
columns, or add animations and other decorative features.</p>
</section>
<section class="main-section" id="Learning_pathway">
<header>Learning pathway</header>
<p>You should learn the basics of HTML before attempting any CSS. We recommend that you work through our
Introduction to HTML module first. In that module, you will learn about:</p>
<ul>
<li>CSS, starting with the Introduction to CSS module</li>
<li>More advanced HTML modules</li>
<li>JavaScript, and how to use it to add dynamic functionality to web pages</li>
</ul>
<p>Once you understand the fundamentals of HTML, we recommend that you learn HTML and CSS at the same time,
moving back and forth between the two topics. This is because HTML is far more interesting and much more
fun
to learn when you apply CSS, and you can't really learn CSS without knowing HTML.</p>
<p>Before starting this topic, you should also be familiar with using computers and using the web passively
(i.e., just looking at it, consuming the content). You should have a basic work environment set up as
detailed in Installing basic software and understand how to create and manage files, as detailed in
Dealing
with files — both of which are parts of our Getting started with the web complete beginner's module.</p>
<p>It is recommended that you work through Getting started with the web before proceeding with this topic.
However, doing so isn't absolutely necessary as much of what is covered in the CSS basics article is
also
covered in our Introduction to CSS module, albeit in a lot more detail.</p>
</section>
<section class="main-section" id="Use_CSS">
<header>Use CSS</header>
<p>There are 3 ways to use CSS</p>
<ul>
<li>Inline CSS</li>
<li>Internal CSS</li>
<li>External CSS</li>
</ul>
<h3>Inline CSS</h3>
<pre>
<code><button style="color: purple">Click Me</button></code>
</pre>
<h3>Internal CSS</h3>
<p>In your HTML file inside the head tag you should put the style tag:</p>
<pre>
<code><style>
button {
color: purple;
}
</style></code>
</pre>
<p>And then you can have a button on your page:</p>
<pre>
<code><button>Click Me</button></code>
</pre>
<h3>External CSS</h3>
<p>In another CSS file we can have:</p>
<pre>
<code>button {
color: purple;
}</code>
</pre>
<p>And then import it into the HTML using the link tag</p>
<pre>
<code><link rel="stylesheet" href="styles.css"/></code>
</pre>
</section>
<section class="main-section" id="Modules">
<header>Modules</header>
This topic contains the following modules, in a suggested order for working through them. You should
definitely
start with the first one.
<h3>CSS first steps</h3>
<p>CSS (Cascading Style Sheets) is used to style and lay out web pages — for example, to alter the font,
color,
size, and spacing of your content, split it into multiple columns, or add animations and other
decorative
features. This module provides a gentle beginning to your path towards CSS mastery with the basics of
how it
works, what the syntax looks like, and how you can start using it to add styling to HTML.</p>
<h3>CSS building blocks</h3>
<p>This module carries on where CSS first steps left off — now you've gained familiarity with the language
and
its syntax, and got some basic experience with using it, its time to dive a bit deeper. This module
looks at
the cascade and inheritance, all the selector types we have available, units, sizing, styling
backgrounds
and borders, debugging, and lots more.</p>
<p>The aim here is to provide you with a toolkit for writing competent CSS and help you understand all the
essential theory, before moving on to more specific disciplines like text styling and CSS layout.</p>
<h3>Styling text</h3>
<p>With the basics of the CSS language covered, the next CSS topic for you to concentrate on is styling text
—
one of the most common things you'll do with CSS. Here we look at text styling fundamentals, including
setting font, boldness, italics, line and letter spacing, drop shadows and other text features. We round
off
the module by looking at applying custom fonts to your page, and styling lists and links.</p>
<h3>CSS layout</h3>
<p>At this point we've already looked at CSS fundamentals, how to style text, and how to style and
manipulate
the boxes that your content sits inside. Now it's time to look at how to place your boxes in the right
place
in relation to the viewport, and one another. We have covered the necessary prerequisites so we can now
dive
deep into CSS layout, looking at different display settings, modern layout tools like flexbox, CSS grid,
and
positioning, and some of the legacy techniques you might still want to know about.</p>
</section>
<section class="main-section" id="Solving_common_CSS_problems">
<header>Solving common CSS problems</header>
<p>Use CSS to solve common problems provides links to sections of content explaining how to use CSS to solve
very common problems when creating a web page.</p>
<p>From the beginning, you'll primarily apply colors to HTML elements and their backgrounds; change the
size,
shape, and position of elements; and add and define borders on elements. But there's not much you can't
do
once you have a solid understanding of even the basics of CSS. One of the best things about learning CSS
is
that once you know the fundamentals, usually you have a pretty good feel for what can and can't be done,
even if you don't actually know how to do it yet!</p>
</section>
<section class="main-section" id="See_also">
<header>See also</header>
<h3>CSS on MDN</h3>
<p>The main entry point for CSS documentation on MDN, where you'll find detailed reference documentation for
all
features of the CSS language. Want to know all the values a property can take? This is a good place to
go.
</p>
</section>
</main>
</body>
</html>