@@ -121,17 +121,17 @@ In this example, each line is an HTML element: |
121 | 121 | ```html |
122 | 122 | <h2>Overview of HTML</h2> |
123 | 123 | <div>HTML is a …</div> |
124 | | -<link rel=“stylesheet” type=“text/css” href=“style.css” /> |
| 124 | +<link rel="stylesheet" type="text/css" href="style.css" /> |
125 | 125 | ``` |
126 | 126 |
|
127 | 127 | An HTML document itself is an element of the <html> tag, and all |
128 | 128 | other elements are children of that <html> tag: |
129 | 129 |
|
130 | 130 | ```html |
131 | 131 | <!DOCTYPE html> |
132 | | -<html lang=“en”> |
| 132 | +<html lang="en"> |
133 | 133 | <head> |
134 | | - <link rel=“stylesheet” type=“text/css” href=“style.css”/> |
| 134 | + <link rel="stylesheet" type="text/css" href="style.css"/> |
135 | 135 | </head> |
136 | 136 | <body> |
137 | 137 | <h2>Overview of HTML</h2> |
@@ -157,7 +157,7 @@ The class attribute defines a class that is used for styling in CSS or |
157 | 157 | Domain Object Model (DOM) manipulation; for example: |
158 | 158 |
|
159 | 159 | ```html |
160 | | -<p class=“normal”>…</p> |
| 160 | +<p class="normal">…</p> |
161 | 161 | ``` |
162 | 162 |
|
163 | 163 | ### `id` |
@@ -174,7 +174,7 @@ class, but it has to be unique; for example: |
174 | 174 | The style attribute defines inline CSS to style an element; for example: |
175 | 175 |
|
176 | 176 | ```html |
177 | | -<font style=“font-size:20px”>…</font> |
| 177 | +<font style="font-size:20px">…</font> |
178 | 178 | ``` |
179 | 179 |
|
180 | 180 | ### `title` |
@@ -183,7 +183,7 @@ The title attribute specifies additional information that is usually |
183 | 183 | presented in tooltips by most browsers; for example: |
184 | 184 |
|
185 | 185 | ```html |
186 | | -<a title=“Up-vote the answer”>…</a> |
| 186 | +<a title="Up-vote the answer">…</a> |
187 | 187 | ``` |
188 | 188 |
|
189 | 189 | ### `data-name` |
@@ -192,7 +192,7 @@ The data-name attribute allows for metadata to be stored in the DOM; for |
192 | 192 | example: |
193 | 193 |
|
194 | 194 | ```html |
195 | | -<tr data-token=“fa10a70c–21ca–4e73-aaf5-d889c7263a0e”>…</tr> |
| 195 | +<tr data-token="fa10a70c–21ca–4e73-aaf5-d889c7263a0e">…</tr> |
196 | 196 | ``` |
197 | 197 |
|
198 | 198 | ### `onclick` |
@@ -201,8 +201,8 @@ The onclick attribute calls inline JavaScript code when a click event |
201 | 201 | happens; for example: |
202 | 202 |
|
203 | 203 | ```html |
204 | | -<input type=“button” |
205 | | - onclick=“validateForm();”>…</a> |
| 204 | +<input type="button" |
| 205 | + onclick="validateForm();">…</a> |
206 | 206 | ``` |
207 | 207 |
|
208 | 208 | ### `onmouseover` |
@@ -211,8 +211,8 @@ The onmouseover attribute is similar to onclick but for mouse hover |
211 | 211 | events; for example: |
212 | 212 |
|
213 | 213 | ```html |
214 | | -<a onmouseover=“javascript: |
215 | | - this.setAttribute(‘css’,‘color:red’)”> |
| 214 | +<a onmouseover="javascript: |
| 215 | + this.setAttribute(‘css’,‘color:red’)"> |
216 | 216 | … |
217 | 217 | </a> |
218 | 218 | ``` |
@@ -271,7 +271,7 @@ it can have CSS code directly inside of a `<style>` tag: |
271 | 271 | Each HTML element can have id attributes, class attributes, or both: |
272 | 272 |
|
273 | 273 | ```html |
274 | | -<div id=“main” class=“large”> |
| 274 | +<div id="main" class="large"> |
275 | 275 | Lorem ipsum dolor sit amet, |
276 | 276 | Duis sit amet neque eu. |
277 | 277 | </div> |
@@ -321,7 +321,7 @@ This sets the width to 150 pixels for input which the name attribute is |
321 | 321 | email: |
322 | 322 |
|
323 | 323 | ```css |
324 | | -input[name=“email”] { |
| 324 | +input[name="email"] { |
325 | 325 | width: 150px; |
326 | 326 | } |
327 | 327 | ``` |
@@ -359,8 +359,8 @@ Let's start with JavaScript in HTML. Putting JS code into a |
359 | 359 | document: |
360 | 360 |
|
361 | 361 | ```html |
362 | | -<script type=“text/javascript” language=“javascript”> |
363 | | - alert(“Hello world!”) //simple alert dialog window |
| 362 | +<script type="text/javascript" language="javascript"> |
| 363 | + alert("Hello world!") //simple alert dialog window |
364 | 364 | </script> |
365 | 365 | ``` |
366 | 366 |
|
@@ -370,8 +370,8 @@ by setting source attribute `src="filename.js"` on a `<script/>` tag, for |
370 | 370 | example, for the app.js resource: |
371 | 371 |
|
372 | 372 | ```html |
373 | | -<script src=“js/app.js” type=“text/javascript” |
374 | | - language=“javascript”> |
| 373 | +<script src="js/app.js" type="text/javascript" |
| 374 | + language="javascript"> |
375 | 375 | </script> |
376 | 376 | ``` |
377 | 377 |
|
|