Skip to content

Commit c92b018

Browse files
committed
Merge pull request #221 from codebar/kims-tweaks
made some little tweaks to the HTML tutorials
2 parents b756c77 + 67fcbc5 commit c92b018

File tree

8 files changed

+57
-47
lines changed

8 files changed

+57
-47
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ We encourage you to contribute with your suggestions and corrections, head to ou
1414

1515
## License
1616

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/).
1818

_layouts/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h1 class="entry-title">{{ page.title }}</h1>
1212
{{ content }}
1313
<footer>
1414
<a href='http://tutorials.codebar.io/'>Back to tutorials</a>
15-
<a href='http://codebar.io/'>Codebar mainpage</a>
15+
<a href='http://codebar.io/'>codebar mainpage</a>
1616
</footer>
1717
</article>
1818
</div>

html/lesson2/tutorial.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ In the head of the html page define a style tag
8181
</head>
8282
```
8383

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.
8585

8686
## Introductions to selectors
8787

@@ -127,9 +127,11 @@ A useful resource for figuring out color codes is [http://0to255.com](http://0to
127127

128128
**1px** defines the thickness of the border
129129

130-
**dotted** the style of the line
130+
**dotted** defines the style of the line
131131

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?
133135

134136
#### Selector: class
135137

@@ -154,7 +156,7 @@ margin-left: auto;
154156
What we defined above is
155157
_margin: (top bottom) (left right)_
156158

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).
158160

159161
#### Selector: id
160162

@@ -369,7 +371,7 @@ ol li {
369371
}
370372
```
371373

372-
**font-weight** thickness of displayed text
374+
**font-weight** is the thickness of displayed text
373375

374376
**text-align** horizontal alignment of a text element
375377

@@ -425,7 +427,7 @@ ol li {
425427

426428
### Pseudo classes
427429

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.
429431

430432
Let's add the code below to make sure we only apply a margin to the _first li element_ within the pictures class.
431433

@@ -454,6 +456,8 @@ html, body, div, h1, h2, h3, h4, h5, h6, p, a, img, small, b, i, ol, ul, li {
454456
}
455457
```
456458

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+
457461
-----
458462

459463
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:[email protected]) and let us know.

html/lesson3/tutorial.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Add an image wrapped in a `<div>` element
9393

9494
```html
9595
<div>
96-
<img src="ada_lovelace.jpg"/>
96+
<img src="ada_lovelace.jpg" alt="Ada Lovelace"/>
9797
</div>
9898
```
9999

@@ -115,7 +115,7 @@ Before you can manipulate the `<div>` surrounding the image, you must be able to
115115

116116
```html
117117
<div class="my-picture">
118-
<img src="ada_lovelace.jpg"/>
118+
<img src="ada_lovelace.jpg" alt="Ada Lovelace"/>
119119
</div>
120120
```
121121

@@ -184,7 +184,7 @@ Note: `padding`, `margin` and `border` can be applied to any combination of side
184184

185185
### Styling the header
186186

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.
188188

189189
```css
190190
header {
@@ -262,7 +262,7 @@ margin-top: 55px;
262262
margin-left: 20px;
263263
```
264264

265-
###padding and margin
265+
###Padding and margin
266266
Padding and margin can be set in a number of different ways
267267

268268
`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
275275

276276
Alternatively, you can only set the side you want `padding-right: 20px`
277277

278-
_this also applies to the margin_
278+
_this method also applies to the margin_
279279

280-
###more styling...
280+
###More styling...
281281

282282
Specify a class `.social-media` in the `ul` element
283283

@@ -306,7 +306,7 @@ Add a bottom border, to give the effect of a line, to the individual list items
306306
}
307307
```
308308

309-
> Tweak the properties using the inspector
309+
> Tweak the properties using the inspector.
310310
> What happens when you remove the width or increase the padding?
311311
312312
## Pseudo classes
@@ -346,7 +346,7 @@ We only want links that are within the list to be affected. So we will specifica
346346

347347
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`
348348

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!**
350350

351351
```css
352352
.social-media li a:hover {
@@ -381,7 +381,7 @@ box-shadow: 0 1px 1px 1px rgba(237, 235, 232, 0.4);
381381

382382
## Setting up the main container
383383

384-
You've done a great job so far! The sidebar is done and you know about box properties.
384+
You've done a great job so far! The sidebar is done and you are familiar with box properties.
385385
Time to add some content to the page.
386386

387387
Add a div, with the class main after `.sidebar`
@@ -434,7 +434,7 @@ Add a link so that anyone coming to the page can easily find out more about Char
434434
<a href="http://en.wikipedia.org/wiki/Charles_Babbage">Charles Babbage's </a>
435435
```
436436

437-
Ada was the world's first programmer. We want that content to stand out. Add a span 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 a span 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.
438438

439439
```html
440440
<span class="highlight">I am the world's first programmer</span>

html/lesson4/tutorial.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ In the previous lessons, we spoke about **H**yper **T**ext **M**arkup **L**angua
1212
**HTML** defines the _structure_ of a website and **CSS** the _presentation_. We also discussed the box model, inline and block elements and pseudo classes.
1313

1414

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
1616

1717
The page we will build will look similar to this [example page]( http://codebar.github.io/tutorials/html/lesson4/example.html "Grace Hopper")
1818

@@ -58,7 +58,7 @@ Add a header element in the `<body>` of the page
5858
```html
5959
<header>
6060
<div>
61-
<img src="gracehopper.jpg"/>
61+
<img src="gracehopper.jpg" alt="Grace Hopper"/>
6262
</div>
6363
<div>
6464
<h1>Grace Hopper</h1>
@@ -98,7 +98,7 @@ Set a CSS class `portrait` to the `<div>` wrapping the image
9898

9999
```html
100100
<div class="portrait">
101-
<img src="gracehopper.jpg"/>
101+
<img src="gracehopper.jpg" alt="Grace Hopper"/>
102102
...
103103
```
104104

@@ -175,6 +175,12 @@ This should be placed before the header closing tag.
175175

176176
Add an id `toolbar` to the outer `<div>`
177177

178+
See what happens when you add a `target="_blank"` to your link
179+
180+
```html
181+
<li> <a href="http://www.personal.psu.edu/djd5202/ass6.html" target="_blank">Computer Scientist</a></li>
182+
```
183+
178184
### Styling the toolbar
179185

180186
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
230236
<div id="content">
231237
<p>
232238
<div>
233-
<img src="mark_i.jpg">
239+
<img src="mark_i.jpg" alt="Mark">
234240
<span>Mark I</span>
235241
</div>
236242
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
244250
</p>
245251
<p>
246252
<div>
247-
<img src="cobol.jpg"/>
253+
<img src="cobol.jpg" alt="Cobol"/>
248254
<span>Working with COBOL</span>
249255
</div>
250256
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
272278
}
273279
```
274280

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.
276282
277283
## Floating elements
278284

@@ -302,7 +308,7 @@ Add a CSS class to the first image's wrapper
302308

303309
```html
304310
<div class="start-of-line">
305-
<img src="mark_i.jpg">
311+
<img src="mark_i.jpg" alt="Mark I">
306312
<span>Mark I</span>
307313
</div>
308314
```
@@ -319,7 +325,7 @@ Add a CSS class to the second image's wrapper
319325

320326
```html
321327
<div class="end-of-line">
322-
<img src="cobol.jpg"/>
328+
<img src="cobol.jpg" alt="Working with Cobol"/>
323329
<span>Working with COBOL</span>
324330
</div>
325331
```
@@ -467,7 +473,7 @@ Fix this by setting the width
467473
width: 100%;
468474
```
469475

470-
And reposition the '#content' so it doesn't hide underneath the header. Change the padding property to have a padding-top
476+
And reposition the `#content` so it doesn't hide underneath the header. Change the padding property to have a padding-top
471477

472478
```css
473479
padding: 150px 30px 40px;
@@ -493,7 +499,7 @@ z-index: 99;
493499

494500
## Ending this lesson
495501

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 in a 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 using a much smaller screen, the content won't be hidden by the collapsing header.
497503

498504
```css
499505
min-width: 570px;

html/lesson5/tutorial.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ Add this right after the beginning of the element with the id `wrapper`
112112

113113
```html
114114
<div>
115-
<img src="anita-top.jpg"/>
116-
<img src="anita-bottom.jpg"/>
115+
<img src="anita-top.jpg" alt="Anita Borg image 1"/>
116+
<img src="anita-bottom.jpg" alt="Anita Borg image 2"/>
117117
<div>
118118
<a href="http://gos.sbc.edu/b/borg.html">reference</a>
119119
<a href="http://en.wikipedia.org/wiki/Anita_Borg">wikipedia</a>
@@ -154,7 +154,7 @@ Great! Now our images and links are on the left, and the main content on the rig
154154

155155
### Border-radius
156156

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.
158158

159159
`border-radius: arc`
160160

@@ -179,7 +179,7 @@ As we only want the bottom right and bottom left corners to be rounded, we can b
179179
border-bottom-right-radius: 5px;
180180
```
181181

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.
183183

184184
```css
185185
.rounded {
@@ -211,7 +211,7 @@ Also add a top border to our page, to make it a bit more polished. Add this to t
211211

212212
### Background
213213

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.
215215

216216
To set a background you can use
217217

@@ -228,7 +228,7 @@ You can also set different properties for your backgrounds, by defining them in
228228

229229
#### Let's try this out.
230230

231-
First lets set two background images, the first positioned on the right and the second on the left.
231+
First let's set two background images, the first positioned on the right and the second on the left.
232232

233233
```
234234
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
259259

260260
First, let's give their container element a class called `references`
261261

262-
Add a top margin, so there is some space between them and the image above and center them.
262+
Add a top margin so that there is some space between them and the image above. Let's center them too.
263263

264264
```css
265265
.references {
@@ -268,7 +268,7 @@ Add a top margin, so there is some space between them and the image above and ce
268268
}
269269
```
270270

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.
272272

273273
```css
274274
a.btn {
@@ -307,15 +307,15 @@ a.btn:hover {
307307
308308
## A little more about Anita
309309

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`
311311

312312
```html
313313
<p>
314314
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.
315315
</p>
316316
```
317317

318-
Lets style that. First, let's assign it a class `about`
318+
Let's style that. First, give it a class `about`
319319

320320
```css
321321
p.about {
@@ -355,7 +355,7 @@ Also, add its title using an `h2` heading
355355
356356
### Achievements
357357

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.
359359
Let's list some of her achievements, just after the `about` paragraph
360360

361361
```html
@@ -399,7 +399,7 @@ Making it prettier
399399

400400
### CSS - Even and Odd rules, applying styling to alternate elements
401401

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.
403403
Thanks to some great CSS selectors, this is quite easy to do.
404404

405405
We can use

html/lesson6/tutorial.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ footer: true
88

99
### Recap
1010

11-
In the last lesson, we briefly introduced **HTML5** and **CSS3**. We focused on **CSS3**.
11+
In the last lesson, we introduced you to even more **HTML5** and **CSS3**.
1212

1313
### Today we will be focusing more on HTML5!
1414

@@ -60,7 +60,7 @@ We've already seen that we can put images in our page using the `<img>` tag, but
6060

6161
```html
6262
<figure>
63-
<img src="assets/images/concerned-pug.png">
63+
<img src="assets/images/concerned-pug.png" alt="Concerned pug">
6464
<figcaption>
6565
Concerned pug
6666
</figcaption>
@@ -133,8 +133,8 @@ img {
133133

134134

135135
-----
136-
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:[email protected]) 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:[email protected]) and let us know.
137137

138138
## Extras
139139

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

Comments
 (0)