Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,910 --> 00:00:05,030
[Music]
2
00:00:05,040 --> 00:00:07,670
hello and welcome hi i'm dave this
3
00:00:07,680 --> 00:00:09,589
tutorial series is for you if you're
4
00:00:09,599 --> 00:00:10,950
just beginning your journey towards
5
00:00:10,960 --> 00:00:13,110
learning web development the only
6
00:00:13,120 --> 00:00:15,430
prerequisite is that you learn html
7
00:00:15,440 --> 00:00:18,710
first because css is applied to html
8
00:00:18,720 --> 00:00:20,470
this course is also for you if you're
9
00:00:20,480 --> 00:00:22,150
looking for a resource to share with a
10
00:00:22,160 --> 00:00:23,750
friend that's just beginning their
11
00:00:23,760 --> 00:00:25,990
journey towards learning web development
12
00:00:26,000 --> 00:00:28,070
or you may be looking for a refresher
13
00:00:28,080 --> 00:00:29,669
course because you previously learned
14
00:00:29,679 --> 00:00:32,229
some css but it's been a few semesters
15
00:00:32,239 --> 00:00:34,630
or even years since you worked with it
16
00:00:34,640 --> 00:00:36,549
or maybe you have another reason that i
17
00:00:36,559 --> 00:00:38,950
haven't even thought of no matter you're
18
00:00:38,960 --> 00:00:40,630
welcome and i hope i help you on your
19
00:00:40,640 --> 00:00:42,950
journey throughout the tutorial i will
20
00:00:42,960 --> 00:00:44,790
mention references and tools and i'll
21
00:00:44,800 --> 00:00:46,790
provide links to everything i mention in
22
00:00:46,800 --> 00:00:48,790
the description below so let's get
23
00:00:48,800 --> 00:00:51,830
started learning css
24
00:00:51,840 --> 00:00:54,869
what is css
25
00:00:54,879 --> 00:00:57,350
css is an acronym that stands for
26
00:00:57,360 --> 00:01:01,110
cascading style sheets so css is a
27
00:01:01,120 --> 00:01:02,869
stylesheet language that's used to
28
00:01:02,879 --> 00:01:05,270
describe the presentation of a document
29
00:01:05,280 --> 00:01:08,310
it's most known for being used with html
30
00:01:08,320 --> 00:01:10,390
although it can be applied to other
31
00:01:10,400 --> 00:01:14,710
media like you see here i've got xml svg
32
00:01:14,720 --> 00:01:18,070
mathml xhtml and other things listed
33
00:01:18,080 --> 00:01:20,870
here for on paper in speech other media
34
00:01:20,880 --> 00:01:24,149
but we will be working with html now
35
00:01:24,159 --> 00:01:25,429
when we think about the difference
36
00:01:25,439 --> 00:01:27,830
between html and css
37
00:01:27,840 --> 00:01:30,870
consider html as the foundation and
38
00:01:30,880 --> 00:01:32,950
structure so if you think about a new
39
00:01:32,960 --> 00:01:35,350
building or a house that is being built
40
00:01:35,360 --> 00:01:37,910
and you see that structure go up
41
00:01:37,920 --> 00:01:40,069
that is the foundation that's everything
42
00:01:40,079 --> 00:01:44,149
that holds it together however the css
43
00:01:44,159 --> 00:01:45,590
is the
44
00:01:45,600 --> 00:01:48,789
paint and the carpet and the wallpaper
45
00:01:48,799 --> 00:01:51,270
or anything any decorations anything
46
00:01:51,280 --> 00:01:54,149
that makes it look good so the structure
47
00:01:54,159 --> 00:01:55,590
holds it all together it's the
48
00:01:55,600 --> 00:01:58,950
foundation the css is really what makes
49
00:01:58,960 --> 00:02:02,149
the appearance that actual presentation
50
00:02:02,159 --> 00:02:04,469
of the building or in our case we're
51
00:02:04,479 --> 00:02:06,950
working with documents okay now before
52
00:02:06,960 --> 00:02:09,830
we start writing css let's get the tools
53
00:02:09,840 --> 00:02:12,949
we need and first of all i will be using
54
00:02:12,959 --> 00:02:15,430
the chrome browser in this course so you
55
00:02:15,440 --> 00:02:18,070
can download chrome if you don't have it
56
00:02:18,080 --> 00:02:20,150
from google.com
57
00:02:20,160 --> 00:02:22,470
chrome and it should be available for
58
00:02:22,480 --> 00:02:24,869
every platform and it will probably
59
00:02:24,879 --> 00:02:27,270
identify what platform you have here as
60
00:02:27,280 --> 00:02:28,150
well
61
00:02:28,160 --> 00:02:30,309
after that we're going to use an
62
00:02:30,319 --> 00:02:32,630
integrated development environment
63
00:02:32,640 --> 00:02:34,550
really a code editor
64
00:02:34,560 --> 00:02:37,110
and what we will use is visual studio
65
00:02:37,120 --> 00:02:41,430
code so that is at code.visualstudio.com
66
00:02:41,440 --> 00:02:43,589
it should also recognize what platform
67
00:02:43,599 --> 00:02:45,509
you're on already but if it doesn't you
68
00:02:45,519 --> 00:02:47,990
can click other platforms and you can
69
00:02:48,000 --> 00:02:50,550
find it for all the different platforms
70
00:02:50,560 --> 00:02:53,030
that we're probably using okay go ahead
71
00:02:53,040 --> 00:02:55,030
and download the version you need and if
72
00:02:55,040 --> 00:02:56,869
you need chrome download that as well
73
00:02:56,879 --> 00:02:59,270
install the software and then come back
74
00:02:59,280 --> 00:03:01,190
to the video okay at this point i'm
75
00:03:01,200 --> 00:03:03,270
going to assume you've got everything
76
00:03:03,280 --> 00:03:05,270
downloaded and installed and now i've
77
00:03:05,280 --> 00:03:07,350
got visual studio code open right here
78
00:03:07,360 --> 00:03:09,589
you may have a welcome screen i closed
79
00:03:09,599 --> 00:03:12,229
that out already but what you need to do
80
00:03:12,239 --> 00:03:14,630
if you haven't already is create a
81
00:03:14,640 --> 00:03:17,509
folder on your computer for your project
82
00:03:17,519 --> 00:03:19,190
for this lesson you'll probably want to
83
00:03:19,200 --> 00:03:21,430
create a new folder for each lesson or
84
00:03:21,440 --> 00:03:23,750
at least build upon the lesson in the
85
00:03:23,760 --> 00:03:26,149
same folder either way you need a folder
86
00:03:26,159 --> 00:03:27,830
and the first thing we want to do is
87
00:03:27,840 --> 00:03:31,190
create an index.html file because once
88
00:03:31,200 --> 00:03:33,990
again we will apply
89
00:03:34,000 --> 00:03:36,630
our css to html
90
00:03:36,640 --> 00:03:38,550
now if you're not familiar with image
91
00:03:38,560 --> 00:03:40,869
shortcuts we can take an image shortcut
92
00:03:40,879 --> 00:03:43,589
here to quickly create an html document
93
00:03:43,599 --> 00:03:44,789
just type the
94
00:03:44,799 --> 00:03:47,350
exclamation mark and press
95
00:03:47,360 --> 00:03:48,390
enter
96
00:03:48,400 --> 00:03:50,309
and now this gives us
97
00:03:50,319 --> 00:03:53,670
a very basic html document and of course
98
00:03:53,680 --> 00:03:56,149
it has a title just of document it has a
99
00:03:56,159 --> 00:03:58,149
couple of meta tags up here you might
100
00:03:58,159 --> 00:03:59,429
not have seen
101
00:03:59,439 --> 00:04:01,509
but they're handy to go ahead and leave
102
00:04:01,519 --> 00:04:03,830
in the page for now what we want to do
103
00:04:03,840 --> 00:04:05,990
is just put some content so let's put a
104
00:04:06,000 --> 00:04:09,030
paragraph here and let's say
105
00:04:09,040 --> 00:04:10,710
i'm learning
106
00:04:10,720 --> 00:04:14,070
css with an exclamation mark and save
107
00:04:14,080 --> 00:04:16,150
and really that's all we need in our
108
00:04:16,160 --> 00:04:18,469
html document right now now there are
109
00:04:18,479 --> 00:04:21,430
three different ways to apply css to our
110
00:04:21,440 --> 00:04:23,350
document there is an external style
111
00:04:23,360 --> 00:04:25,670
sheet we could have an internal style
112
00:04:25,680 --> 00:04:29,030
sheet or we could apply css inline with
113
00:04:29,040 --> 00:04:31,830
an element let's look at each option and
114
00:04:31,840 --> 00:04:34,230
i'll start out with the external style
115
00:04:34,240 --> 00:04:37,110
sheet so i want to create a link element
116
00:04:37,120 --> 00:04:40,070
here and i'll press tab and visual
117
00:04:40,080 --> 00:04:41,749
studio code helps us out it already
118
00:04:41,759 --> 00:04:43,430
gives us the rel attribute that says
119
00:04:43,440 --> 00:04:45,430
it's a style sheet and we need to link
120
00:04:45,440 --> 00:04:47,430
to a style sheet but we haven't created
121
00:04:47,440 --> 00:04:49,670
one yet so over here in the file tree
122
00:04:49,680 --> 00:04:52,230
let's create a new directory and name it
123
00:04:52,240 --> 00:04:53,670
css
124
00:04:53,680 --> 00:04:56,390
now inside the css directory
125
00:04:56,400 --> 00:04:58,230
let's go ahead and create a new file
126
00:04:58,240 --> 00:05:01,909
named style.css
127
00:05:01,919 --> 00:05:04,710
and now we have our stylesheet file and
128
00:05:04,720 --> 00:05:07,749
inside of this let's put a p for our
129
00:05:07,759 --> 00:05:09,350
paragraph element
130
00:05:09,360 --> 00:05:11,029
a curly brace
131
00:05:11,039 --> 00:05:13,990
now one return and we'll go ahead and
132
00:05:14,000 --> 00:05:16,710
put a style here this will be a rule
133
00:05:16,720 --> 00:05:19,350
actually or a declaration if you will
134
00:05:19,360 --> 00:05:22,070
and let's just change the color of our
135
00:05:22,080 --> 00:05:24,950
paragraph and let's make it purple and
136
00:05:24,960 --> 00:05:28,070
end with a semicolon and save this is a
137
00:05:28,080 --> 00:05:31,029
very very simple style sheet right now
138
00:05:31,039 --> 00:05:33,830
and now back in our html we can go ahead
139
00:05:33,840 --> 00:05:36,230
and link to that style sheet by putting
140
00:05:36,240 --> 00:05:38,550
in the css directory and you can see
141
00:05:38,560 --> 00:05:40,469
visual studio code wants to help us out
142
00:05:40,479 --> 00:05:42,710
so we'll click on that and then it knows
143
00:05:42,720 --> 00:05:45,110
the style.css is in there so we can
144
00:05:45,120 --> 00:05:46,390
click on that
145
00:05:46,400 --> 00:05:48,310
and now that should link
146
00:05:48,320 --> 00:05:49,830
you may see
147
00:05:49,840 --> 00:05:52,870
some older code that has a type
148
00:05:52,880 --> 00:05:54,390
attribute here
149
00:05:54,400 --> 00:05:55,189
but
150
00:05:55,199 --> 00:05:57,909
mozilla now points out that this is no
151
00:05:57,919 --> 00:06:00,309
longer required and is actually kind of
152
00:06:00,319 --> 00:06:02,629
frowned upon so we do not want to
153
00:06:02,639 --> 00:06:04,870
include that but you may see older code
154
00:06:04,880 --> 00:06:06,710
with it it doesn't break the code if
155
00:06:06,720 --> 00:06:08,309
it's there it's just
156
00:06:08,319 --> 00:06:10,710
not the modern way of doing that so
157
00:06:10,720 --> 00:06:13,270
there is our link to the style sheet and
158
00:06:13,280 --> 00:06:15,990
now one thing we haven't done yet is add
159
00:06:16,000 --> 00:06:18,550
the live server extension so if you
160
00:06:18,560 --> 00:06:20,710
don't have that click on the extension
161
00:06:20,720 --> 00:06:22,710
icon over here on the left
162
00:06:22,720 --> 00:06:24,870
and then in the search extensions type
163
00:06:24,880 --> 00:06:25,830
live
164
00:06:25,840 --> 00:06:27,189
server
165
00:06:27,199 --> 00:06:29,430
and when those options come up we should
166
00:06:29,440 --> 00:06:32,230
see one from ritwik day and you want to
167
00:06:32,240 --> 00:06:34,950
select that and then you want to go
168
00:06:34,960 --> 00:06:37,189
ahead and install
169
00:06:37,199 --> 00:06:39,029
and i already have it installed so i
170
00:06:39,039 --> 00:06:40,950
don't need to do that but this will let
171
00:06:40,960 --> 00:06:44,629
us not only launch our html and css but
172
00:06:44,639 --> 00:06:47,029
anytime we make a change and save it
173
00:06:47,039 --> 00:06:49,270
will immediately reload just as if it's
174
00:06:49,280 --> 00:06:51,189
on a web server you don't want to load
175
00:06:51,199 --> 00:06:53,430
these files into your browser directly
176
00:06:53,440 --> 00:06:55,589
from your hard drive you want to
177
00:06:55,599 --> 00:06:57,430
really kind of have a development
178
00:06:57,440 --> 00:06:59,749
environment that simulates a web server
179
00:06:59,759 --> 00:07:01,430
and that's what live server does for you
180
00:07:01,440 --> 00:07:03,670
so go ahead and install that
181
00:07:03,680 --> 00:07:05,749
once you have that installed and i'll
182
00:07:05,759 --> 00:07:08,230
click on the explore icon over here to
183
00:07:08,240 --> 00:07:10,230
look at our files again but now you'll
184
00:07:10,240 --> 00:07:12,150
have some options in visual studio code
185
00:07:12,160 --> 00:07:13,990
you could click go live down here at the
186
00:07:14,000 --> 00:07:15,270
bottom right
187
00:07:15,280 --> 00:07:16,629
and it says
188
00:07:16,639 --> 00:07:18,469
click to run live server when we mouse
189
00:07:18,479 --> 00:07:20,950
over or you can right click just in the
190
00:07:20,960 --> 00:07:23,430
file and you can choose open with live
191
00:07:23,440 --> 00:07:25,589
server and i'll go ahead and do that now
192
00:07:25,599 --> 00:07:28,790
and there we have our very very basic
193
00:07:28,800 --> 00:07:30,950
web page but we can see it is super
194
00:07:30,960 --> 00:07:32,710
small i don't know if you can even see
195
00:07:32,720 --> 00:07:34,710
that i would have to zoom in and enlarge
196
00:07:34,720 --> 00:07:37,670
that but it says i'm learning css so we
197
00:07:37,680 --> 00:07:40,629
could add another style in our style
198
00:07:40,639 --> 00:07:41,510
sheet
199
00:07:41,520 --> 00:07:43,589
and let's just go ahead and put it above
200
00:07:43,599 --> 00:07:45,110
the color style
201
00:07:45,120 --> 00:07:47,990
and i will put font dash size and i'm
202
00:07:48,000 --> 00:07:50,869
going to change this to 64 pixels it
203
00:07:50,879 --> 00:07:53,749
should be pretty big now so i'll save
204
00:07:53,759 --> 00:07:56,230
resize visual studio code
205
00:07:56,240 --> 00:07:58,629
much better so we've got a purple i'm
206
00:07:58,639 --> 00:08:01,670
learning css with large font now let's
207
00:08:01,680 --> 00:08:04,309
go back to the html file
208
00:08:04,319 --> 00:08:06,710
and i'm going to expand visual studio
209
00:08:06,720 --> 00:08:08,469
code again so we have a little more room
210
00:08:08,479 --> 00:08:10,550
now in this head section
211
00:08:10,560 --> 00:08:13,670
directly underneath our link element i'm
212
00:08:13,680 --> 00:08:16,309
going to type style and press tab and
213
00:08:16,319 --> 00:08:19,110
there is such a thing as a style element
214
00:08:19,120 --> 00:08:22,070
now inside of the style element here
215
00:08:22,080 --> 00:08:23,990
between the opening and closing tags
216
00:08:24,000 --> 00:08:27,589
that is we can write css so i'm also
217
00:08:27,599 --> 00:08:29,990
going to style a paragraph
218
00:08:30,000 --> 00:08:32,870
and here i'm going to put the color
219
00:08:32,880 --> 00:08:35,029
as lime green
220
00:08:35,039 --> 00:08:37,350
now i'll save this and let's go back and
221
00:08:37,360 --> 00:08:40,149
look at our page and see what we've got
222
00:08:40,159 --> 00:08:43,430
now we have i'm learning css and it is
223
00:08:43,440 --> 00:08:46,150
lime green notice it's still large font
224
00:08:46,160 --> 00:08:48,630
though so the other style sheet i'll
225
00:08:48,640 --> 00:08:50,630
press ctrl b to hide the file tree for a
226
00:08:50,640 --> 00:08:52,630
second so we can see this better the
227
00:08:52,640 --> 00:08:55,750
other style sheet is still being applied
228
00:08:55,760 --> 00:08:58,550
but we have overwritten the purple rule
229
00:08:58,560 --> 00:09:01,350
for the color with green
230
00:09:01,360 --> 00:09:03,590
now does one take precedent over the
231
00:09:03,600 --> 00:09:05,110
other does the
232
00:09:05,120 --> 00:09:07,430
internal style sheet which is what we
233
00:09:07,440 --> 00:09:09,269
just built right here with the style
234
00:09:09,279 --> 00:09:11,350
elements that's the internal does it
235
00:09:11,360 --> 00:09:14,070
take precedence over the external not
236
00:09:14,080 --> 00:09:15,110
really
237
00:09:15,120 --> 00:09:17,670
just it's interpreted as another style
238
00:09:17,680 --> 00:09:20,310
sheet either way now normally i use
239
00:09:20,320 --> 00:09:22,790
external style sheets but there is no
240
00:09:22,800 --> 00:09:25,190
difference as far as the browser is
241
00:09:25,200 --> 00:09:27,269
concerned what is the different is the
242
00:09:27,279 --> 00:09:29,990
cascade or the order in which they're
243
00:09:30,000 --> 00:09:32,949
read so it read this style sheet
244
00:09:32,959 --> 00:09:34,150
first
245
00:09:34,160 --> 00:09:36,630
and then it read this one last so the
246
00:09:36,640 --> 00:09:38,949
last color that it saw for our paragraph
247
00:09:38,959 --> 00:09:41,590
was lime green we can further highlight
248
00:09:41,600 --> 00:09:42,470
that
249
00:09:42,480 --> 00:09:45,110
by highlighting our link element and
250
00:09:45,120 --> 00:09:47,590
cutting it with ctrl x
251
00:09:47,600 --> 00:09:49,910
and then pasting it with control v
252
00:09:49,920 --> 00:09:51,269
underneath
253
00:09:51,279 --> 00:09:53,670
our internal style sheet
254
00:09:53,680 --> 00:09:56,310
and so now our external style sheet is
255
00:09:56,320 --> 00:09:59,430
read last and i will save
256
00:09:59,440 --> 00:10:01,430
and now we've got a purple i'm learning
257
00:10:01,440 --> 00:10:05,350
css again and the final way to apply css
258
00:10:05,360 --> 00:10:08,150
inside an html document is with inline
259
00:10:08,160 --> 00:10:11,430
css this is really not the way to do it
260
00:10:11,440 --> 00:10:13,590
though you really want to avoid inline
261
00:10:13,600 --> 00:10:15,750
css if you can i just want to
262
00:10:15,760 --> 00:10:17,509
demonstrate what it is
263
00:10:17,519 --> 00:10:19,269
because you can use style as an
264
00:10:19,279 --> 00:10:21,829
attribute and now we don't need a
265
00:10:21,839 --> 00:10:24,550
selector which is what the p is up here
266
00:10:24,560 --> 00:10:26,790
this is selecting the paragraph we
267
00:10:26,800 --> 00:10:27,990
already know it's being applied to a
268
00:10:28,000 --> 00:10:30,710
paragraph so here i'll just say color
269
00:10:30,720 --> 00:10:32,949
and i'm going to say blue i really don't
270
00:10:32,959 --> 00:10:34,870
need a semicolon because i don't have
271
00:10:34,880 --> 00:10:37,030
any other declaration here if i had more
272
00:10:37,040 --> 00:10:39,430
than one i'd have a semicolon in between
273
00:10:39,440 --> 00:10:41,590
now if i save this
274
00:10:41,600 --> 00:10:44,069
notice it's now blue over here
275
00:10:44,079 --> 00:10:46,790
this does take precedent over either
276
00:10:46,800 --> 00:10:49,030
type of style sheet internal or external
277
00:10:49,040 --> 00:10:51,430
because it's applied directly to the
278
00:10:51,440 --> 00:10:54,389
element itself but what we want is a
279
00:10:54,399 --> 00:10:57,590
separation of concerns so the best way
280
00:10:57,600 --> 00:11:01,190
the way that is commonly used is the
281
00:11:01,200 --> 00:11:04,630
external style sheet it keeps your css
282
00:11:04,640 --> 00:11:08,150
code completely separate from your html
283
00:11:08,160 --> 00:11:10,630
okay let's remove our inline styling
284
00:11:10,640 --> 00:11:12,550
from the paragraph
285
00:11:12,560 --> 00:11:14,790
and let's also remove the style element
286
00:11:14,800 --> 00:11:17,190
because we will be focusing on using
287
00:11:17,200 --> 00:11:19,430
external style sheets for the rest of
288
00:11:19,440 --> 00:11:21,990
the course so we can save that
289
00:11:22,000 --> 00:11:23,670
and let's go ahead and scroll up to the
290
00:11:23,680 --> 00:11:26,230
top of the html document and now let's
291
00:11:26,240 --> 00:11:29,269
move over to the external style sheet
292
00:11:29,279 --> 00:11:31,670
and then in the browser notice of course
293
00:11:31,680 --> 00:11:34,310
this is already back to purple now let's
294
00:11:34,320 --> 00:11:36,389
go to another mdn page that's the
295
00:11:36,399 --> 00:11:39,030
mozilla developer network and we get an
296
00:11:39,040 --> 00:11:41,990
anatomy of a css rule set so let's break
297
00:11:42,000 --> 00:11:43,750
this down and we can look at our own
298
00:11:43,760 --> 00:11:46,150
example to the left as well but we have
299
00:11:46,160 --> 00:11:48,630
our selector that means we're selecting
300
00:11:48,640 --> 00:11:51,350
the paragraph or paragraphs if we had
301
00:11:51,360 --> 00:11:52,710
more than one
302
00:11:52,720 --> 00:11:55,269
now we have a property and a property
303
00:11:55,279 --> 00:11:57,430
value so the property being the color
304
00:11:57,440 --> 00:11:59,750
the value being read and then the
305
00:11:59,760 --> 00:12:01,350
declaration
306
00:12:01,360 --> 00:12:03,190
is the property and the property value
307
00:12:03,200 --> 00:12:04,790
together so we have the same thing over
308
00:12:04,800 --> 00:12:06,310
here just color
309
00:12:06,320 --> 00:12:08,790
and purple and the full declaration is
310
00:12:08,800 --> 00:12:11,350
both now it says the whole structure is
311
00:12:11,360 --> 00:12:13,670
called a rule set but also notice it
312
00:12:13,680 --> 00:12:16,310
says the term rule set is often referred
313
00:12:16,320 --> 00:12:19,190
to just as rule so you could consider
314
00:12:19,200 --> 00:12:21,110
this a css
315
00:12:21,120 --> 00:12:23,990
rule if you will okay let's go back to
316
00:12:24,000 --> 00:12:26,629
our html document in the browser and
317
00:12:26,639 --> 00:12:30,150
something i need to note here about css
318
00:12:30,160 --> 00:12:32,870
is it's using the american spelling of
319
00:12:32,880 --> 00:12:34,790
color there could be other english words
320
00:12:34,800 --> 00:12:36,389
that are different but notice how visual
321
00:12:36,399 --> 00:12:38,150
studio code knows there's already a
322
00:12:38,160 --> 00:12:40,870
problem here and if i save this
323
00:12:40,880 --> 00:12:43,269
purple is not applied to our document
324
00:12:43,279 --> 00:12:46,550
it's back to the default black text so
325
00:12:46,560 --> 00:12:49,350
we need to spell things with american
326
00:12:49,360 --> 00:12:51,190
english i guess is the best way to put
327
00:12:51,200 --> 00:12:54,310
it our dialect without the u in color
328
00:12:54,320 --> 00:12:55,750
and there could be some other words as
329
00:12:55,760 --> 00:12:58,470
well but notice we didn't get an error
330
00:12:58,480 --> 00:13:00,790
or anything if we do put in color the
331
00:13:00,800 --> 00:13:02,069
wrong way
332
00:13:02,079 --> 00:13:04,790
it's just ignored and that is something
333
00:13:04,800 --> 00:13:07,509
about css and sometimes it's hard to
334
00:13:07,519 --> 00:13:09,269
detect when you've done something wrong
335
00:13:09,279 --> 00:13:11,350
because you're not getting an error
336
00:13:11,360 --> 00:13:13,670
thrown like programming languages the
337
00:13:13,680 --> 00:13:16,150
rule or the declaration i should say not
338
00:13:16,160 --> 00:13:18,470
the entire rule but this declaration is
339
00:13:18,480 --> 00:13:20,790
just being ignored because we didn't
340
00:13:20,800 --> 00:13:24,310
spell color in the way css expects so if
341
00:13:24,320 --> 00:13:26,150
i change that back once again we have
342
00:13:26,160 --> 00:13:29,590
purple text now one way we can detect
343
00:13:29,600 --> 00:13:33,030
problems in our css is to validate our
344
00:13:33,040 --> 00:13:35,990
css files so let's pull up a page that
345
00:13:36,000 --> 00:13:37,269
will do that
346
00:13:37,279 --> 00:13:38,629
and we go to
347
00:13:38,639 --> 00:13:42,550
css validation service from w3c that's
348
00:13:42,560 --> 00:13:45,110
the world wide web consortium and we
349
00:13:45,120 --> 00:13:46,389
want to choose
350
00:13:46,399 --> 00:13:49,590
file by upload where we can select the
351
00:13:49,600 --> 00:13:53,269
css style.css from our folder and you
352
00:13:53,279 --> 00:13:55,990
need to choose file and then browse to
353
00:13:56,000 --> 00:13:58,470
the folder where your css is which
354
00:13:58,480 --> 00:14:00,230
should be in the folder you created and
355
00:14:00,240 --> 00:14:02,389
then if you created a css folder it
356
00:14:02,399 --> 00:14:05,350
would be in there here's my style.css so
357
00:14:05,360 --> 00:14:06,710
i'll select it
358
00:14:06,720 --> 00:14:08,230
and choose open
359
00:14:08,240 --> 00:14:10,310
and now we'll just click the check
360
00:14:10,320 --> 00:14:12,389
button and this page will show us if
361
00:14:12,399 --> 00:14:14,069
there are any errors but if there's not
362
00:14:14,079 --> 00:14:16,470
you should get this congratulations no
363
00:14:16,480 --> 00:14:19,269
error found message just like i did so i
364
00:14:19,279 --> 00:14:22,150
will put a link to this css validator in
365
00:14:22,160 --> 00:14:24,150
the description of the video or with the
366
00:14:24,160 --> 00:14:26,870
resources and then in the next video
367
00:14:26,880 --> 00:14:29,110
we're going to learn all about css
368
00:14:29,120 --> 00:14:31,590
selectors remember to keep striving for
369
00:14:31,600 --> 00:14:33,990
progress over perfection and a little
370
00:14:34,000 --> 00:14:36,230
progress every day will go a very long
371
00:14:36,240 --> 00:14:37,110
way
372
00:14:37,120 --> 00:14:38,710
please give this video a like if it's
373
00:14:38,720 --> 00:14:40,949
helped you and thank you for watching
374
00:14:40,959 --> 00:14:42,629
and subscribing you're helping my
375
00:14:42,639 --> 00:14:45,430
channel grow have a great day and let's
376
00:14:45,440 --> 00:14:49,519
write more code together very soon
26014
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.