Skip to content

Commit d2e03bb

Browse files
committed
HTML3: Explain 'pseudo', whitespace, semicolons
1 parent e19051e commit d2e03bb

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

html/lesson3/tutorial.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ In the previous two lessons, we spoke about **H**yper **T**ext **M**arkup **L**a
1212

1313
### Today we will be building a styled website from scratch
1414

15-
The page we will be building will look similar to this [example page]( http://codebar.github.io/tutorials/html/lesson3/example.html "Ada Lovelace")
15+
The page we will be building will look similar to this [example page](http://codebar.github.io/tutorials/html/lesson3/example.html "Ada Lovelace").
1616

1717
We will also be explaining in more detail elements that we mentioned in our previous lesson.
1818

@@ -198,9 +198,9 @@ header {
198198
Expand the styling of the header so that it has a border and tweak the height and padding
199199

200200
```css
201-
border-bottom: 1px solid #e7e6e6;
202-
padding-top: 14px;
203-
height: 70px;
201+
border-bottom: 1px solid #e7e6e6;
202+
padding-top: 14px;
203+
height: 70px;
204204
```
205205

206206
> Do you remember the border properties description from our previous lesson?
@@ -311,7 +311,7 @@ Add a bottom border, to give the effect of a line, to the individual list items
311311
312312
## Pseudo classes
313313

314-
A pseudo class is a keyword added to selectors that specifies a special state. Using pseudo classes we can specify different styling for different states of a link
314+
A pseudo class is a keyword added to selectors that specifies a special state. Using pseudo classes we can specify different styling for different states of a link:
315315

316316
```css
317317
a:link
@@ -323,6 +323,11 @@ a:active
323323
Order is **very** important. Always use the order described above if you want to apply different styling for all of the states.
324324
The most commonly used pseudo class for links is `a:hover`. That is what we will use today.
325325

326+
We talk about *pseudo* classes, because in contrast to the classes we address by
327+
putting a dot in front of them, the *pseudo* classes have no actual
328+
correspondent in the HTML. Instead, they refer to a certain state of the element
329+
that is not expressed through the markup.
330+
326331
## Styling links
327332

328333
We only want links that are within the list to be affected. So we will specifically style `.social-media li a`
@@ -414,9 +419,9 @@ Now that the content is there, we can see that again, we need to tweak the eleme
414419
Add a bit more space around the main container and set the vertical alignment.
415420

416421
```css
417-
margin-left: 70px;
418-
padding-top: 60px;
419-
vertical-align: top;
422+
margin-left: 70px;
423+
padding-top: 60px;
424+
vertical-align: top;
420425
```
421426

422427
> Try removing `vertical-align`. What happens?
@@ -533,7 +538,7 @@ a {
533538
}
534539

535540
a:hover {
536-
color: #a26cd2
541+
color: #a26cd2;
537542
}
538543
```
539544

0 commit comments

Comments
 (0)