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
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,11 +97,11 @@ Add an image wrapped in a `<div>` element
97
97
</div>
98
98
```
99
99
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
101
101
102
102
```html
103
103
<div>
104
-
<h2>Hi, I'm Ada Lovelace</h2>
104
+
<h1>Hi, I'm Ada Lovelace</h1>
105
105
</div>
106
106
```
107
107
@@ -135,7 +135,7 @@ Make the `div` element surrounding the heading inline. Start by adding a class `
135
135
136
136
```html
137
137
<divclass="title">
138
-
<h2>Hi, I'm Ada Lovelace</h2>
138
+
<h1>Hi, I'm Ada Lovelace</h1>
139
139
</div>
140
140
```
141
141
and then the relevant CSS
@@ -146,7 +146,7 @@ and then the relevant CSS
146
146
}
147
147
```
148
148
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.
150
150
151
151
> Using firebug, change `inline-block` to `inline` and notice how they render
152
152
@@ -218,7 +218,7 @@ Let's add some content! Add the following inside the `div` in the html file
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.
576
576
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.
0 commit comments