You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,5 +14,5 @@ We encourage you to contribute with your suggestions and corrections, head to ou
14
14
15
15
## License
16
16
17
-
Codebar Tutorials are released under the [Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)](http://creativecommons.org/licenses/by-nc-sa/4.0/).
17
+
codebar Tutorials are released under the [Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)](http://creativecommons.org/licenses/by-nc-sa/4.0/).
Copy file name to clipboardExpand all lines: html/lesson2/tutorial.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ In the head of the html page define a style tag
81
81
</head>
82
82
```
83
83
84
-
Include the styling described below, within the style tag we defined.
84
+
Include the styling in this tutorial, within the style tag we just created.
85
85
86
86
## Introductions to selectors
87
87
@@ -127,9 +127,11 @@ A useful resource for figuring out color codes is [http://0to255.com](http://0to
127
127
128
128
**1px** defines the thickness of the border
129
129
130
-
**dotted** the style of the line
130
+
**dotted**defines the style of the line
131
131
132
-
**#a369d5** the color of the border
132
+
**#a369d5** defines the color of the border
133
+
134
+
How about changing the border thickness to 5px to see what happens?
133
135
134
136
#### Selector: class
135
137
@@ -154,7 +156,7 @@ margin-left: auto;
154
156
What we defined above is
155
157
_margin: (top bottom) (left right)_
156
158
157
-
> You can see the margin of an element by inspecting it and having a look at the computed tab
159
+
> You can see the margin of an element by right clicking in your browser and selecting Inspect Element then having a look at the computed tab on the right hand site. (If you're using Safari this feature is not enabled by default like Chrome so go to your Safari preferences tab, then go to Advanced and check the box that says Show develop menu in menu bar).
158
160
159
161
#### Selector: id
160
162
@@ -369,7 +371,7 @@ ol li {
369
371
}
370
372
```
371
373
372
-
**font-weight** thickness of displayed text
374
+
**font-weight**is the thickness of displayed text
373
375
374
376
**text-align** horizontal alignment of a text element
375
377
@@ -425,7 +427,7 @@ ol li {
425
427
426
428
### Pseudo classes
427
429
428
-
A psedo class is a keyword added to a selector that specifies a special state of the element to be selected. [These](https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes) are the standard pseudo classes.
430
+
A pseudo class is a keyword added to a selector that specifies a special state of the element to be selected. [These](https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes) are the standard pseudo classes.
429
431
430
432
Let's add the code below to make sure we only apply a margin to the _first li element_ within the pictures class.
431
433
@@ -454,6 +456,8 @@ html, body, div, h1, h2, h3, h4, h5, h6, p, a, img, small, b, i, ol, ul, li {
454
456
}
455
457
```
456
458
459
+
If you have some time how about you go back through the tutorial making little amends to your CSS to see what things you can change.
460
+
457
461
-----
458
462
459
463
This ends our second lesson. Is there something you don't understand? Try and go through the provided resources with your coach. If you have any feedback, or can think of ways to improve this tutorial [send us an email](mailto:feedback@codebar.io) and let us know.
Copy file name to clipboardExpand all lines: html/lesson3/tutorial.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,7 @@ Add an image wrapped in a `<div>` element
93
93
94
94
```html
95
95
<div>
96
-
<imgsrc="ada_lovelace.jpg"/>
96
+
<imgsrc="ada_lovelace.jpg"alt="Ada Lovelace"/>
97
97
</div>
98
98
```
99
99
@@ -115,7 +115,7 @@ Before you can manipulate the `<div>` surrounding the image, you must be able to
115
115
116
116
```html
117
117
<divclass="my-picture">
118
-
<imgsrc="ada_lovelace.jpg"/>
118
+
<imgsrc="ada_lovelace.jpg"alt="Ada Lovelace"/>
119
119
</div>
120
120
```
121
121
@@ -184,7 +184,7 @@ Note: `padding`, `margin` and `border` can be applied to any combination of side
184
184
185
185
### Styling the header
186
186
187
-
The page is gradually starting to come together. Make `<header>` a bit more distinct by setting a background color and aligning its contents in its center.
187
+
Our page is gradually starting to come together. Make `<header>` a bit more distinct by setting a background color and aligning its contents in its center.
188
188
189
189
```css
190
190
header {
@@ -262,7 +262,7 @@ margin-top: 55px;
262
262
margin-left: 20px;
263
263
```
264
264
265
-
###padding and margin
265
+
###Padding and margin
266
266
Padding and margin can be set in a number of different ways
267
267
268
268
`padding: top right bottom left;` e.g. _padding: 10px 20px 30px 5px;_
@@ -275,9 +275,9 @@ Padding and margin can be set in a number of different ways
275
275
276
276
Alternatively, you can only set the side you want `padding-right: 20px`
277
277
278
-
_this also applies to the margin_
278
+
_this method also applies to the margin_
279
279
280
-
###more styling...
280
+
###More styling...
281
281
282
282
Specify a class `.social-media` in the `ul` element
283
283
@@ -306,7 +306,7 @@ Add a bottom border, to give the effect of a line, to the individual list items
306
306
}
307
307
```
308
308
309
-
> Tweak the properties using the inspector
309
+
> Tweak the properties using the inspector.
310
310
> What happens when you remove the width or increase the padding?
311
311
312
312
## Pseudo classes
@@ -346,7 +346,7 @@ We only want links that are within the list to be affected. So we will specifica
346
346
347
347
We only want to change the border color when hovering over the link. To avoid repeating ourselves an easy way to do that is by being more specific and using `border-left-color`. Since we have no other borders, we could also use `border-color`
348
348
349
-
**Remember to have a look [at the list of all CSS properties](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference?redirectlocale=en-US&redirectslug=CSS%2FCSS_Reference) (mentioned in the previous tutorial) when working on styling. The properties are too many to remember!**
349
+
**Remember to have a look [at the list of all CSS properties](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference?redirectlocale=en-US&redirectslug=CSS%2FCSS_Reference) (mentioned in the previous tutorial) when working on styling. There are too many properties to remember!**
Ada was the world's first programmer. We want that contentto stand out. Add aspan around and specify a class `highlight`, so the intention is obvious and other people working on the code of the page can easily understand it.
437
+
Ada was the world's first programmer therefore we want that to stand out. Add aspan around it and specify a class `highlight`, so the intention is obvious and other people working on the code of the page can easily understand it.
438
438
439
439
```html
440
440
<span class="highlight">I am the world's first programmer</span>
Copy file name to clipboardExpand all lines: html/lesson4/tutorial.md
+16-10Lines changed: 16 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ In the previous lessons, we spoke about **H**yper **T**ext **M**arkup **L**angua
12
12
**HTML** defines the _structure_ of a website and **CSS** the _presentation_. We also discussed the box model, inline and block elements and pseudo classes.
13
13
14
14
15
-
### Today we will be building a website and learn more about CSS layouts and formatting
15
+
### Today we will be building a website and learning more about CSS layouts and formatting
16
16
17
17
The page we will build will look similar to this [example page](http://codebar.github.io/tutorials/html/lesson4/example.html"Grace Hopper")
18
18
@@ -58,7 +58,7 @@ Add a header element in the `<body>` of the page
58
58
```html
59
59
<header>
60
60
<div>
61
-
<imgsrc="gracehopper.jpg"/>
61
+
<imgsrc="gracehopper.jpg"alt="Grace Hopper"/>
62
62
</div>
63
63
<div>
64
64
<h1>Grace Hopper</h1>
@@ -98,7 +98,7 @@ Set a CSS class `portrait` to the `<div>` wrapping the image
98
98
99
99
```html
100
100
<divclass="portrait">
101
-
<imgsrc="gracehopper.jpg"/>
101
+
<imgsrc="gracehopper.jpg"alt="Grace Hopper"/>
102
102
...
103
103
```
104
104
@@ -175,6 +175,12 @@ This should be placed before the header closing tag.
175
175
176
176
Add an id `toolbar` to the outer `<div>`
177
177
178
+
See what happens when you add a `target="_blank"` to your link
First let's remove the bullet from the list of links
@@ -230,7 +236,7 @@ Let's add the main content. Paste underneath the header. We will tweak things as
230
236
<divid="content">
231
237
<p>
232
238
<div>
233
-
<imgsrc="mark_i.jpg">
239
+
<imgsrc="mark_i.jpg"alt="Mark">
234
240
<span>Mark I</span>
235
241
</div>
236
242
Grace Hopper was born in 1906. Her parents, noticing her interest in math, made special arrangements for her to take classes reserved for boys in school. She received a Bachelors deegree in Mathematics and physics from Vassar college and then moved onto Yale, where she did her Masters deegree in Math. She continued her education and begun a teaching career at Vassar. When she received her PhD she joined the navy, where she was assigned to work in the Bureau of Ordinance computation project at Harvard university. There, she became part of the programming team, who works on the Mark I; the first computer ever made.
@@ -244,7 +250,7 @@ Let's add the main content. Paste underneath the header. We will tweak things as
244
250
</p>
245
251
<p>
246
252
<div>
247
-
<imgsrc="cobol.jpg"/>
253
+
<imgsrc="cobol.jpg"alt="Cobol"/>
248
254
<span>Working with COBOL</span>
249
255
</div>
250
256
Grace loved the Navy, and was reluctant to retire, even at the age of 79. At her retirement ceremony she was recognized for all she contributed, and received the Distinguished Service Medal of the Defense Department, the department's highest honor, and a citation which stated
@@ -272,7 +278,7 @@ Style the container
272
278
}
273
279
```
274
280
275
-
> Before moving forward, spend 5 minutes reading the content. **Grace Hopper** was an amazing woman and her contributions to Computer Science and our world, invaluable.
281
+
> Before moving forward, spend 5 minutes reading the content. **Grace Hopper** was an amazing woman and her contributions to Computer Science and our world are invaluable.
276
282
277
283
## Floating elements
278
284
@@ -302,7 +308,7 @@ Add a CSS class to the first image's wrapper
302
308
303
309
```html
304
310
<divclass="start-of-line">
305
-
<imgsrc="mark_i.jpg">
311
+
<imgsrc="mark_i.jpg"alt="Mark I">
306
312
<span>Mark I</span>
307
313
</div>
308
314
```
@@ -319,7 +325,7 @@ Add a CSS class to the second image's wrapper
319
325
320
326
```html
321
327
<divclass="end-of-line">
322
-
<imgsrc="cobol.jpg"/>
328
+
<imgsrc="cobol.jpg"alt="Working with Cobol"/>
323
329
<span>Working with COBOL</span>
324
330
</div>
325
331
```
@@ -467,7 +473,7 @@ Fix this by setting the width
467
473
width: 100%;
468
474
```
469
475
470
-
And reposition the '#content' so it doesn't hide underneath the header. Change the padding property to have apadding-top
476
+
And reposition the `#content` so it doesn't hide underneath the header. Change the padding property to have apadding-top
471
477
472
478
```css
473
479
padding: 150px 30px 40px;
@@ -493,7 +499,7 @@ z-index: 99;
493
499
494
500
## Ending this lesson
495
501
496
-
Before we finish the lesson, ensure that we have a minimum width set on the page. This way we can make sure that if the page collapses or is viewed ina much smaller screen, the content won't be hidden by the collapsing header.
502
+
Before we finish the lesson, ensure that we have a minimum width set on the page. This way we can make sure that if the page collapses or is viewed usinga much smaller screen, the content won't be hidden by the collapsing header.
@@ -154,7 +154,7 @@ Great! Now our images and links are on the left, and the main content on the rig
154
154
155
155
### Border-radius
156
156
157
-
[border radius](https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius) enables us to create rounded corners for our elements. In the past, multiple divs and the use of images was required to achieve that effect.
157
+
[Border radius](https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius) enables us to create rounded corners for our elements. In the past, multiple divs and the use of images was required to achieve that effect.
158
158
159
159
`border-radius: arc`
160
160
@@ -179,7 +179,7 @@ As we only want the bottom right and bottom left corners to be rounded, we can b
179
179
border-bottom-right-radius: 5px;
180
180
```
181
181
182
-
Let's also round the corners of the second picture. First, a class `rounded` to it.
182
+
Let's also round the corners of the second picture. First, let's add a class `rounded` to it.
183
183
184
184
```css
185
185
.rounded {
@@ -211,7 +211,7 @@ Also add a top border to our page, to make it a bit more polished. Add this to t
211
211
212
212
### Background
213
213
214
-
Background is not a new CSS property, but in CSS3 it had a lot more capabilities. You can set multiple images, specify their dimension, position and attachment.
214
+
Background is not a new CSS property, but in CSS3 it had a lot more capabilities. You can set multiple background images, specify their dimension, position and attachment.
215
215
216
216
To seta background you can use
217
217
@@ -228,7 +228,7 @@ You can also set different properties for your backgrounds, by defining them in
228
228
229
229
#### Let's try this out.
230
230
231
-
First letsset two background images, the first positioned on the right and the second on the left.
231
+
First let'sset two background images, the first positioned on the right and the second on the left.
232
232
233
233
```
234
234
background: url('assets/images/background-right.jpg') right top no-repeat,
@@ -259,7 +259,7 @@ Do you remember how we styled our links last time? Today we will try and make th
259
259
260
260
First, let's give their container elementa class called `references`
261
261
262
-
Add a top margin, so there is some space between them and the image above andcenter them.
262
+
Add a top margin so that there is some space between them and the image above. Let'scenter them too.
263
263
264
264
```css
265
265
.references {
@@ -268,7 +268,7 @@ Add a top margin, so there is some space between them and the image above and ce
268
268
}
269
269
```
270
270
271
-
Now, set a class `btn` to both of the links inside the `references` div and style that.
271
+
Now, set a class `btn` to both of the links inside the `references` div and style them.
272
272
273
273
```css
274
274
a.btn {
@@ -307,15 +307,15 @@ a.btn:hover {
307
307
308
308
## A little more about Anita
309
309
310
-
The text in our page, is one of Anita Borg's speeches. Lets add a brief biography, at the top of the page, just below the title `h1`
310
+
The text in our page, is one of Anita Borg's speeches. Let's add a brief biography about her at the top of the page, just below the title `h1`
311
311
312
312
```html
313
313
<p>
314
314
Anita Borg believed that technology affects all aspects of our economic, political, social and personal lives. A technology rebel with a cause, in her life she fought tirelessly to ensure that technology's impact would be a positive one. It was this vision that inspired Anita in 1997 to found the Institute for Women and Technology. Today this organization continues on her legacy and bears her name, The Anita Borg Institute for Women and Technology.
315
315
</p>
316
316
```
317
317
318
-
Lets style that. First, let's assign it a class `about`
318
+
Let's style that. First, give it a class `about`
319
319
320
320
```css
321
321
p.about {
@@ -355,7 +355,7 @@ Also, add its title using an `h2` heading
355
355
356
356
### Achievements
357
357
358
-
Anita was an amazing personality and a person who contributed greatly to women in technology.
358
+
Anita had an amazing personality and was a person who contributed greatly to women in technology.
359
359
Let's list some of her achievements, just after the `about` paragraph
360
360
361
361
```html
@@ -399,7 +399,7 @@ Making it prettier
399
399
400
400
### CSS - Even and Odd rules, applying styling to alternate elements
401
401
402
-
We will finish off, by styling every second child element of our list.
402
+
We will finish off by styling every second child element of our list.
403
403
Thanks to some great CSS selectors, this is quite easy to do.
This ends our sixth lesson. How did you find the introduction to HTML5? Is there something you don't understand? Try to use the provided resources with your coach. If you have any feedback, or can think of ways to improve this tutorial [send us an email](mailto:feedback@codebar.io) and let us know.
136
+
This ends our sixth lesson. How did you find learning HTML5 and CSS? Is there something you don't understand? Try to use the provided resources with your coach. If you have any feedback, or can think of ways to improve this tutorial [send us an email](mailto:feedback@codebar.io) and let us know.
137
137
138
138
## Extras
139
139
140
-
Now that you are familiar with HTML & CSS, how about you go away and create your own portfolio site. Think about the pages that you may include, such as home, about me and a portfolio or gallery page. You may even want to include a downloadable CV.
140
+
Now that you are familiar with HTML & CSS, how about you go away and create your own little portfolio site. Think about the pages that you may include, such as home, about me and a portfolio or gallery page. You may even want to include a downloadable CV.
0 commit comments