@@ -48,6 +48,14 @@ <h2 class="visually-hidden">Оглавление</h2>
48
48
< a href ="#html "> HTML</ a >
49
49
< ul class ="sidebar-menu ">
50
50
< li > < a href ="#html-syntax-tag "> Регистр тегов и атрибутов</ a > </ li >
51
+ < li > < a href ="#html-closed-tag "> Двойные теги</ a > </ li >
52
+ < li > < a href ="#html-single-tag "> Одиночные теги</ a > </ li >
53
+ < li > < a href ="#html-attr-order "> Порядок атрибутов</ a > </ li >
54
+ < li > < a href ="#html-single-attr-no-value "> Одиночные атрибуты</ a > </ li >
55
+ < li > < a href ="#html-attr-no-space "> Форматирование атрибутов</ a > </ li >
56
+ < li > < a href ="#html-attr-double-quotes "> Кавычки в атрибутах</ a > </ li >
57
+ < li > < a href ="#html-attr-single-quotes "> Кавычки в значениях атрибутов</ a > </ li >
58
+ < li > < a href ="#html-attr-no-units "> Единицы измерения в атрибутах</ a > </ li >
51
59
52
60
53
61
< li > < a href ="#html-syntax "> Синтаксис</ a > </ li >
@@ -184,7 +192,172 @@ <h3 id="html-syntax-tag">Регистр тегов и атрибутов</h3>
184
192
<LI>Третий
185
193
</UL>
186
194
187
- <IMG src="images/picture.png" width="400" height="400" alt="Кот смотрит на солнышко.">
195
+ <IMG SRC="images/picture.png" WIDTH="400" HEIGHT="400" ALT="Кот смотрит на солнышко.">
196
+ </ code > </ pre >
197
+ </ figure >
198
+ </ div >
199
+ </ article >
200
+
201
+ < article class ="chapter-part ">
202
+ < div class ="chapter-part-col ">
203
+ < h3 id ="html-closed-tag "> Двойные теги</ h3 >
204
+ < p > Двойные теги < strong > должны</ strong > иметь открывающий и закрывающий теги.</ p >
205
+ </ div >
206
+ < div class ="chapter-part-col gray-bgcolor ">
207
+ < figure >
208
+ < pre > < code class ="language-markup "> <!-- Правильно -->
209
+ <ul>
210
+ <li>Первый</li>
211
+ <li>Второй</li>
212
+ <li>Третий</li>
213
+ </ul>
214
+
215
+ <!-- Неправильно -->
216
+ <ul>
217
+ <li>Первый
218
+ <li>Второй
219
+ <li>Третий
220
+ </ul>
221
+ </ code > </ pre >
222
+ </ figure >
223
+ </ div >
224
+ </ article >
225
+
226
+ < article class ="chapter-part ">
227
+ < div class ="chapter-part-col ">
228
+ < h3 id ="html-single-tag "> Одиночные теги</ h3 >
229
+ < p > Одиночные теги < strong > не должны</ strong > иметь закрывающий тег или слэш.</ p >
230
+ </ div >
231
+ < div class ="chapter-part-col gray-bgcolor ">
232
+ < figure >
233
+ < pre > < code class ="language-markup "> <!-- Правильно -->
234
+ <img src="images/picture.png" width="400" height="400" alt="Кот смотрит на солнышко.">
235
+
236
+ <input type="text" name="name">
237
+
238
+ <!-- Неправильно -->
239
+ <img src="images/picture.png" width="400" height="400" alt="Кот смотрит на солнышко." />
240
+
241
+ <input type="text"></input>
242
+ </ code > </ pre >
243
+ </ figure >
244
+ </ div >
245
+ </ article >
246
+
247
+ < article class ="chapter-part ">
248
+ < div class ="chapter-part-col ">
249
+ < h3 id ="html-attr-order "> Порядок атрибутов</ h3 >
250
+ < ul >
251
+ < li > Атрибуты < strong > должны</ strong > идти в одном порядке, чтобы упростить их чтение.</ li >
252
+ < li > Атрибут < code > class</ code > < strong > должен</ strong > идти сразу после имени тега.</ li >
253
+ </ ul >
254
+ </ div >
255
+ < div class ="chapter-part-col gray-bgcolor ">
256
+ < figure >
257
+ < pre > < code class ="language-markup "> <!-- Правильно -->
258
+ <label class="field-group-label" for="appointment-phone">
259
+ <input class="field-group-input field" type="text" id="appointment-phone" placeholder="+7 000-00-00">
260
+
261
+ <label class="field-group-label" for="appointment-date">
262
+ <input class="field-group-input field" type="text" id="appointment-date" placeholder="01.01.2020">
263
+
264
+ <!-- Неправильно -->
265
+ <label for="appointment-phone" class="field-group-label">
266
+ <input class="field-group-input field" type="text" placeholder="+7 000-00-00" id="appointment-phone" >
267
+
268
+ <label for="appointment-date" class="field-group-label">
269
+ <input id="appointment-date" class="field-group-input field" type="text" placeholder="01.01.2020">
270
+ </ code > </ pre >
271
+ </ figure >
272
+ </ div >
273
+ </ article >
274
+
275
+ < article class ="chapter-part ">
276
+ < div class ="chapter-part-col ">
277
+ < h3 id ="html-single-attr-no-value "> Одиночные атрибуты</ h3 >
278
+ < p > Одиночные атрибуты < strong > должны</ strong > быть записаны без значения.</ p >
279
+ </ div >
280
+ < div class ="chapter-part-col gray-bgcolor ">
281
+ < figure >
282
+ < pre > < code class ="language-markup "> <!-- Правильно -->
283
+ <input type="text" disabled required>
284
+
285
+ <!-- Неправильно -->
286
+ <input type="text" disabled="disabled" required="required">
287
+ </ code > </ pre >
288
+ </ figure >
289
+ </ div >
290
+ </ article >
291
+
292
+ < article class ="chapter-part ">
293
+ < div class ="chapter-part-col ">
294
+ < h3 id ="html-attr-no-space "> Форматирование атрибутов</ h3 >
295
+ < p > В записи атрибутов < strong > не должно</ strong > быть пробелов вокруг знака «равно» < code > =</ code > </ p >
296
+ </ div >
297
+ < div class ="chapter-part-col gray-bgcolor ">
298
+ < figure >
299
+ < pre > < code class ="language-markup "> <!-- Правильно -->
300
+ <input class="field-group-input field" type="text" id="appointment-date" placeholder="01.01.2020">
301
+
302
+ <!-- Неправильно -->
303
+ <input class = "field-group-input field" type = "text" id = "appointment-date" placeholder = "01.01.2020">
304
+ </ code > </ pre >
305
+ </ figure >
306
+ </ div >
307
+ </ article >
308
+
309
+ < article class ="chapter-part ">
310
+ < div class ="chapter-part-col ">
311
+ < h3 id ="html-attr-double-quotes "> Кавычки в атрибутах</ h3 >
312
+ < p > Значения атрибутов < strong > должны</ strong > быть в двойных кавычках.</ p >
313
+ </ div >
314
+ < div class ="chapter-part-col gray-bgcolor ">
315
+ < figure >
316
+ < pre > < code class ="language-markup "> <!-- Правильно -->
317
+ <input class="field-group-input field" type="text" id="appointment-date" placeholder="01.01.2020">
318
+
319
+ <!-- Неправильно -->
320
+ <input class='field-group-input field' type='text' id='appointment-date' placeholder='01.01.2020'>
321
+
322
+ <input class=field-group-input type=text id=appointment-date placeholder=01.01.2020>
323
+ </ code > </ pre >
324
+ </ figure >
325
+ </ div >
326
+ </ article >
327
+
328
+ < article class ="chapter-part ">
329
+ < div class ="chapter-part-col ">
330
+ < h3 id ="html-attr-single-quotes "> Кавычки в значениях атрибутов</ h3 >
331
+ < p > Вложенные кавычки в значениях < strong > должны</ strong > быть одиночными.</ p >
332
+ </ div >
333
+ < div class ="chapter-part-col gray-bgcolor ">
334
+ < figure >
335
+ < pre > < code class ="language-markup "> <!-- Правильно -->
336
+ <button class="button" type="button" onclick="show('menu')">
337
+ Меню
338
+ </button>
339
+
340
+ <!-- Неправильно -->
341
+ <button class="button" type="button" onclick="show("menu")">
342
+ Меню
343
+ </button>
344
+ </ code > </ pre >
345
+ </ figure >
346
+ </ div >
347
+ </ article >
348
+
349
+ < article class ="chapter-part ">
350
+ < div class ="chapter-part-col ">
351
+ < h3 id ="html-attr-no-units "> Единицы измерения в атрибутах</ h3 >
352
+ < p > В атрибутах < strong > не должно</ strong > быть единиц измерения.</ p >
353
+ </ div >
354
+ < div class ="chapter-part-col gray-bgcolor ">
355
+ < figure >
356
+ < pre > < code class ="language-markup "> <!-- Правильно -->
357
+ <img src="images/picture.png" width="400" height="400" alt="Кот смотрит на солнышко.">
358
+
359
+ <!-- Неправильно -->
360
+ <img src="images/picture.png" width="400px" height="400px" alt="Кот смотрит на солнышко.">
188
361
</ code > </ pre >
189
362
</ figure >
190
363
</ div >
0 commit comments