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: html/lesson3/tutorial.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ Download the files required to begin working through the tutorial from [here](ht
24
24
25
25
### Development Tools - Inspectors
26
26
27
-
Inspectors are development tools that help you view, edit and debug CSS, HTML and Javascript.
27
+
Inspectors are development tools that help you view, edit and debug CSS, HTML and JavaScript.
28
28
29
29
A very popular inspector is [firebug](http://getfirebug.com/), it works nicely on Firefox. Chrome has a build in inspector, but we do suggest you use firebug as it is much easier to use and change different properties with it.
30
30
@@ -168,7 +168,7 @@ and make the picture a bit smaller
168
168
169
169
### What is the box model?
170
170
171
-
An element, can be visualised as a box. The box model tells browsers how the element and its attribtues relate to each other.
171
+
An element, can be visualised as a box. The box model tells browsers how the element and its attributes relate to each other.
172
172
173
173
Characteristics that define the box model are `padding`, `margin`, `border`, `height` and `width`.
174
174
@@ -323,7 +323,7 @@ a:hover
323
323
a:active
324
324
```
325
325
326
-
Order is **very** important. Always use the order descibed above if you want to apply differente styling for all of the states described above.
326
+
Order is **very** important. Always use the order described above if you want to apply different styling for all of the states described above.
327
327
The most commonly used pseudo class for links, that we will also be using today is `a:hover`
328
328
329
329
## Styling links
@@ -366,7 +366,7 @@ The sidebar is now almost perfect. Tweak a couple of other properties so that th
366
366
367
367
## Before we continue, some other nice to know box properties...
368
368
369
-
Add these to the `.sidebar`css
369
+
Add these to the `.sidebar`CSS
370
370
371
371
```css
372
372
border-radius: 6px;
@@ -402,7 +402,7 @@ Here, we will define the text we want to display about **Ada Lovelace**, using p
402
402
<p>My mother, Anne Isabella Byron, was a great help to me as she helped me by promoting my interest in mathematics and logic, but I also never forgot about my dad, who moved to Greece when I was just an infant to help out in the civil war.</p>
403
403
```
404
404
405
-
Now that the content is there, we can see that again, we need to tweak the element to display as an inline block and set its width to make sure it appears next to the siedbar.
405
+
Now that the content is there, we can see that again, we need to tweak the element to display as an inline block and set its width to make sure it appears next to the sidebar.
406
406
407
407
```css
408
408
.main {
@@ -453,7 +453,7 @@ Set the style for the highlight class
453
453
<p>Throughout my life, mathematics have been my primary interest. I always question even basic assumptions by integrating poetry, another great love of mine, and science. I also have a keen interest in scientific developments and trends of my era like phrenology and mesmerism.</p>
454
454
```
455
455
456
-
Being the first paragraph a quote, so we can use `<blockquote>`, as it's more appropiate than a p tag.
456
+
Being the first paragraph a quote, so we can use `<blockquote>`, as it's more appropriate than a p tag.
457
457
458
458
```html
459
459
<blockquote>“I do not believe....</blockquote>
@@ -491,7 +491,7 @@ A poem about Ada
491
491
492
492
> Why do we need a line break (`<br/>`) before the span? What happens when we remove the line break?
493
493
494
-
Make the poem look different than the rest of the text. Add a css class `poem` to the span element and add styling
494
+
Make the poem look different than the rest of the text. Add a CSS class `poem` to the span element and add styling
495
495
496
496
```css
497
497
.poem {
@@ -542,7 +542,7 @@ a:hover {
542
542
## Setting up the footer
543
543
To complete our page, we will be adding some content and styling the footer
544
544
545
-
Within the footer, add an attribution to yourself and link to your twitter, facebook or any other place you want to.
545
+
Within the footer, add an attribution to yourself and link to your twitter, Facebook or any other place you want to.
Copy file name to clipboardExpand all lines: html/lesson4/tutorial.md
+11-13Lines changed: 11 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,15 +94,15 @@ header {
94
94
}
95
95
```
96
96
97
-
Set a css class `portrait` to the `<div>` wrapping the image
97
+
Set a CSS class `portrait` to the `<div>` wrapping the image
98
98
99
99
```html
100
100
<divclass="portrait">
101
101
<imgsrc="gracehopper.jpg"/>
102
102
...
103
103
```
104
104
105
-
and a css class `title` to the `<div>` wrapping the heading
105
+
and a CSS class `title` to the `<div>` wrapping the heading
106
106
107
107
```html
108
108
<divclass="title">
@@ -118,7 +118,7 @@ Make the `portrait` and the `title` inline elements
118
118
}
119
119
```
120
120
121
-
> Did you know that you can define common styles for different css classes by comma separating them?
121
+
> Did you know that you can define common styles for different CSS classes by comma separating them?
122
122
123
123
124
124
Make the portrait image round, and restrict its height
@@ -292,7 +292,7 @@ To ensure an element `floats` you must always specify its width, or else its lik
292
292
293
293
Make the two images in the `#content` float
294
294
295
-
Add a css class to the first image's wrapper
295
+
Add a CSS class to the first image's wrapper
296
296
297
297
```html
298
298
<divclass="start-of-line">
@@ -309,7 +309,7 @@ And float the element to the left
309
309
}
310
310
```
311
311
312
-
Add a css class to the second image's wrapper
312
+
Add a CSS class to the second image's wrapper
313
313
314
314
```html
315
315
<divclass="end-of-line">
@@ -325,7 +325,7 @@ And float the element to the right
325
325
}
326
326
```
327
327
328
-
Add space around the images so there is some separatin between them and the text
328
+
Add space around the images so there is some separation between them and the text
329
329
330
330
```css
331
331
.start-of-line, .end-of-line {
@@ -353,7 +353,7 @@ Its position is determined by the offset values in the properties `top`, `bottom
353
353
354
354
### Using absolute and relative positioning
355
355
356
-
Add a css class `caption` to the description of each of the images
356
+
Add a CSS class `caption` to the description of each of the images
357
357
358
358
```html
359
359
<spanclass="caption">The Mark I</span>
@@ -437,7 +437,7 @@ footer a {
437
437
}
438
438
```
439
439
440
-
> Do you understand all the css properties we have just applied to the footer and containing elements? Is there something you don't quite remember? Ask your coach to explain.
440
+
> Do you understand all the CSS properties we have just applied to the footer and containing elements? Is there something you don't quite remember? Ask your coach to explain.
441
441
442
442
443
443
But we are not quite done yet. The page looks great, but we can do a bit more with it. First let's try and understand another positioning, 'fixed'
@@ -465,16 +465,16 @@ And reposition the '#content' so it doesn't hide underneath the header. Change t
465
465
padding: 150px 30px 40px;
466
466
```
467
467
468
-
> Do you remember the padding shortcuts we disussed in the previous lessson? What does the above describe? Can you explain that to your coach?
468
+
> Do you remember the padding shortcuts we discussed in the previous lesson? What does the above describe? Can you explain that to your coach?
469
469
470
470
There is still one small problem with our page. You can view this better if you resize your browser window to fit one third of your screen and scroll down. The images now appear on top of the header. This is due to removing the element from of the normal flow of the page.
471
471
472
472
### z-index
473
473
474
-
This can be fixed by changin the `z-index`, who defines the order of overlapping.
474
+
This can be fixed by changing the `z-index`, who defines the order of overlapping.
475
475
The element with the highest `z-index` appears on top.
476
476
477
-
Extend the css for the `header`
477
+
Extend the CSS for the `header`
478
478
479
479
```
480
480
z-index: 99;
@@ -499,5 +499,3 @@ line-height: 23px;
499
499
500
500
-----
501
501
This ends our fourth and last lesson in introducing HTML and CSS. 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.
The name of an `em` doesn't really stand for anything. It was originaly used to describe that it was equal to the **M** character as it was commonly casted as the full-width of the square "block which are used in printing presses.
329
+
The name of an `em` doesn't really stand for anything. It was originally used to describe that it was equal to the **M** character as it was commonly casted as the full-width of the square "block which are used in printing presses.
330
330
331
-
By using `em`insteaf of `px` to set the font-size, we are keeping it relative to the default font size. So 0.9em is 0.9 times the size that would have otherwise applied to that container.
331
+
By using `em`instead of `px` to set the font-size, we are keeping it relative to the default font size. So 0.9em is 0.9 times the size that would have otherwise applied to that container.
332
332
333
333
> Change the height using the inspector to 2em. Can you notice the change?
334
334
335
335
### Not selector
336
336
337
-
Increase the `line-height` of all other pargraphs. We can do this with another very smart selector, The **not** selector.
337
+
Increase the `line-height` of all other paragraphs. We can do this with another very smart selector, The **not** selector.
338
338
339
339
The **not** selector, finds all elements who don't match the specified description, in our case, all paragraphs that don't have a class `about`
340
340
@@ -388,7 +388,7 @@ So here is how we will be reseting the list styling. We don't want to only speci
Copy file name to clipboardExpand all lines: html/lesson6/tutorial.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ footer: true
8
8
9
9
### Recap
10
10
11
-
In the last lesson, we briefly introducted**HTML5** and **CSS3** with more focus on **CSS3**
11
+
In the last lesson, we briefly introduced**HTML5** and **CSS3** with more focus on **CSS3**
12
12
13
13
### Today we will be focusing more on HTML5
14
14
@@ -21,7 +21,7 @@ The page we will build will look similar to this [example page](http://codebar.g
21
21
Download the files required to begin working through the tutorial from [here](https://gist.github.com/despo/7680133/download)
22
22
23
23
24
-
## HTML5 stuctural semantics
24
+
## HTML5 structural semantics
25
25
26
26
### Sectioning
27
27
@@ -32,7 +32,7 @@ In the previous lessons, we used some HTML5 elements, like `<header>` and `<foot
32
32
The purpose of structural semantics is that the elements describe parts of a website.
33
33
34
34
### `<section>`
35
-
A section is usually a blob of content. When you are considering using it, try and ask yourself if what you are thinking of defining as section has a natural heading. If not, you should propably avoid it. It is also used for sectioning elements.
35
+
A section is usually a blob of content. When you are considering using it, try and ask yourself if what you are thinking of defining as section has a natural heading. If not, you should probably avoid it. It is also used for sectioning elements.
36
36
37
37
If you just want to use it to style a part of the page, `<div>` would be more appropriate.
38
38
@@ -42,7 +42,7 @@ The article element represents a component of a page that consists of a self-con
42
42
Besides content, an `<article>` could have a heading `<header>` and sometimes a `<footer>`. It's commonly used for blog posts, comments and stories.
43
43
44
44
### `<aside>`
45
-
aside can be used within different contexes. For example, if you are using it inside the page, the content needs to be related to the context of the page. Some example usage would be list of posts (if the page displays posts), advertising - if that is related to the page, or event additional navigation). If you use it within an article element, then the context should be specifically related to that article.
45
+
aside can be used within different contexts. For example, if you are using it inside the page, the content needs to be related to the context of the page. Some example usage would be list of posts (if the page displays posts), advertising - if that is related to the page, or event additional navigation). If you use it within an article element, then the context should be specifically related to that article.
46
46
47
47
### Other elements
48
48
@@ -76,9 +76,9 @@ This is **bad usage**, unless this information is directly relevant to the page.
76
76
</address>
77
77
```
78
78
79
-
#### `<figure>` and `<figcaption`
79
+
#### `<figure>` and `<figcaption>`
80
80
`<figure>` can be used in conjunction with the `<figcaption>` element to describe images, pictures, illustrations and diagrams (and even more).
81
-
`<figcaption>`respresents a caption or legend for a picture.
81
+
`<figcaption>`represents a caption or legend for a picture.
82
82
83
83
```html
84
84
<figure>
@@ -94,7 +94,7 @@ This is **bad usage**, unless this information is directly relevant to the page.
94
94
### `<video>` and `<audio>`
95
95
The `<video>` and `<audio>` tags were introduced to support build-in media and offer the ability to easy embed media into HTML documents.
96
96
97
-
When you include a video, if the browser used does not support it, it will fallback to the message you contain within the container
97
+
When you include a video, if the browser used does not support it, it will fall back to the message you contain within the container
98
98
99
99
```html
100
100
<videosrc="path/to/video">
@@ -125,7 +125,7 @@ Grace Hopper on Letterman - http://codebar.github.io/tutorials/html/lesson6/asse
125
125
126
126
```
127
127
128
-
Also, dont forget to refer to the [previous tutorials](http://codebar.github.io/tutorials)
128
+
Also, don't forget to refer to the [previous tutorials](http://codebar.github.io/tutorials)
In Javascript we can write conditions to control what we output
169
+
In JavaScript we can write conditions to control what we output
170
170
171
171
Let's try this out.
172
172
@@ -257,7 +257,7 @@ if (people > pizzas) {
257
257
258
258
## Functions
259
259
260
-
Functions are a major part of every programming language. They enable us to create meaningul snippets of code that we can rerun without having to define the same things again.
260
+
Functions are a major part of every programming language. They enable us to create meaningful snippets of code that we can rerun without having to define the same things again.
261
261
262
262
Let's write a small function that prompts someone accessing our page with a message.
263
263
@@ -312,7 +312,7 @@ Now that you fixed the problem, call the function from you browser's console!
312
312
313
313
### Multiple arguments
314
314
315
-
So far we've tried out functions with no and one argument. But noone limits how many we can use.
315
+
So far we've tried out functions with no and one argument. But no one limits how many we can use.
316
316
Let's try writing a function with multiple arguments.
317
317
318
318
```js
@@ -324,7 +324,7 @@ function whatIAmDoingToday(coach, place) {
324
324
325
325
### Returning values
326
326
327
-
Besides outputing, which is nice when learning as it makes it easier to see the result, we can also `return` values.
327
+
Besides outputting, which is nice when learning as it makes it easier to see the result, we can also `return` values.
0 commit comments