Skip to content

Commit fe1d33e

Browse files
committed
Minor fixes to lesson 3
-h2 → h1 -b → strong
1 parent 19eabd8 commit fe1d33e

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

html/lesson3/example.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
<img src="assets/images/ada_lovelace.jpg" height="60px"/>
1111
</div>
1212
<div class="title">
13-
<h2>Hi, I'm Ada Lovelace</h2>
13+
<h1>Hi, I'm Ada Lovelace</h1>
1414
</div>
1515
</header>
1616

1717
<div id="container">
1818
<div class="sidebar">
19-
<b> Me on the internet</b>
19+
<strong> Me on the internet</strong>
2020
<ul class="social-media">
2121
<li><a href="https://www.facebook.com/augusta.ada.lovelace">facebook</a> </li>
2222
<li><a href="http://en.wikipedia.org/wiki/Ada_Lovelace">wikipedia</a> </li>

html/lesson3/styles.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
body {
22
font-family: Helvetica, Arial, sans-serif;
3-
padding: 0;
4-
margin: 0;
3+
padding: 0px;
4+
margin: 0px;
55
line-height: 23px;
66
}
77

@@ -67,7 +67,7 @@ header {
6767
border-left-color: #a26cd2;
6868
}
6969

70-
.sidebar b {
70+
.sidebar strong {
7171
margin-left: 36px;
7272
color: #4c4066;
7373
font-size: 19px;

html/lesson3/tutorial.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ Add an image wrapped in a `<div>` element
9797
</div>
9898
```
9999

100-
Add the heading `<h2>`, underneath the `<div>` wrapping the image, within the `<header>` element
100+
Add the heading `<h1>`, underneath the `<div>` wrapping the image, within the `<header>` element
101101

102102
```html
103103
<div>
104-
<h2>Hi, I'm Ada Lovelace</h2>
104+
<h1>Hi, I'm Ada Lovelace</h1>
105105
</div>
106106
```
107107

@@ -135,7 +135,7 @@ Make the `div` element surrounding the heading inline. Start by adding a class `
135135

136136
```html
137137
<div class="title">
138-
<h2>Hi, I'm Ada Lovelace</h2>
138+
<h1>Hi, I'm Ada Lovelace</h1>
139139
</div>
140140
```
141141
and then the relevant CSS
@@ -146,7 +146,7 @@ and then the relevant CSS
146146
}
147147
```
148148

149-
`inline-block` is another display attribute. You must use `inline-block` rather than `inline` to make the element appear inline because the `div` with the class `title` contains a block element, `<h2>`, that takes over and expands across the end of the line.
149+
`inline-block` is another display attribute. You must use `inline-block` rather than `inline` to make the element appear inline because the `div` with the class `title` contains a block element, `<h1>`, that takes over and expands across the end of the line.
150150

151151
> Using firebug, change `inline-block` to `inline` and notice how they render
152152
@@ -218,7 +218,7 @@ Let's add some content! Add the following inside the `div` in the html file
218218

219219
```html
220220
<div>
221-
<b>Me on the internet</b>
221+
<strong>Me on the internet</strong>
222222
<ul>
223223
<li><a href="https://www.facebook.com/augusta.ada.lovelace">facebook</a> </li>
224224
<li><a href="http://en.wikipedia.org/wiki/Ada_Lovelace">wikipedia</a> </li>
@@ -574,7 +574,7 @@ footer a {
574574

575575
Have a look at the [example page](http://codebar.github.io/tutorials/html/lesson3/example.html "Ada Lovelace"). The heading and body of the page have some differences from the page we just created.
576576

577-
Use the inspector to have a look at `<body>` and `<h2>` and apply these changes to your page.
577+
Use the inspector to have a look at `<body>` and `<h1>` and apply these changes to your page.
578578

579579
-----
580580

0 commit comments

Comments
 (0)