<!-- ->
<p>
</label>
<input type="submit" value="">
</form>
</body>
</html>
[13/18]
. <input> , value.
.
- , <input> checked, -.
, , .
form/form13.html
<html>
<head>
<meta charset="utf-8">
<title> </title>
<style>
input[type="submit"] {
display: block;
margin-top: 10px;
}
</style>
</head>
<body>
<h1></h1>
<form action="https://echo.htmlacademy.ru" method="post">
<p> .</p>
<p><i> ?</i></p>
<label>
<input type="radio" name="question-one" value="p">
<p>
</label>
<br>
<label>
<input type="radio" name="question-one" value="b" checked>
<!-- ->
<b>
</label>
<input type="submit" value="">
</form>
</body>
</html>
[14/18]
, , .
<select>, name id.
<option>, <select>. :
<select name="theme">
<option value="light"> </option>
<option value="dark">Ҹ </option>
...
</select>
value <option> , .
value, . .
[15/18]
, , , .
|
|
, <select> multiple.
, Ctrl Windows Command OS X.
size <select>.
, <option> selected.
[16/18]
<input> file. .
, enctype multipart/form-data. , .
, .
[17/18]
. . , - , .
, .
<input> hidden.
CSS
CSS [1/15]
CSS. .
, CSS . HTML-. : .
. . , , , .
css / css 1. html
CSS- [2/15]
CSS- :
{
1: ;
2: ;
}
CSS-. CSS- .
. , , . < >. :
p {
/* */
}
h1 {
/* */
}
css / css 2. html
[3/15]
.
. , . HTML-: , , .
class, ( ). :
<p class="help"></p><p class="help error"></p>help, help error.
:._. :
.help {... }.error {... }, . :nth-child.
|
|
css / css 3. html
[4/15]
CSS . :
;
;
;
;
: , , ;
.
, CSS.
css / css 4. html
[5/15]
CSS , , , .
, , . display, (, ).
, .
css / css 5. html
[6/15]
. , , .
position, . : top, right, bottom, left, . z-index .
.
.
css / css 6. html
[7/15]
- , , , , . , . .
, . , .
. .
css / css 7. html
[8/15]
: , , , , .
, , CSS.
Progressive Enhancement .
.
css / css 8. html
[9/15]
, CSS . ?
, : .
CSS-, , . , .
- CSS-.
.
|
|
css / css 9. html
. [10/15]
. CSS- CSS- . , . :
p {
padding: 10px;
}
+
.truth {
background-color: #dff0d8;
}
=
{
padding: 10px;
background-color: #dff0d8;
}
CSS- . , CSS- ? .
css / css 10. html
[11/15]
truth, :
p { padding: 10px; background-color: #dff0d8;} +.truth { background-color: #aaddff;} = { padding: 10px; background-color: #dff0d8; background-color: #aaddff;}CSS- , , . , :
1. CSS- style ,
2. id,
3. ,
4. .
, . .
css / css 11. html
. [12/15]
, ! !
CSS- green CSS- blue. CSS-, . , , CSS-, .
. . , CSS- , .
-. CSS-.
, , . , CSS- , HTML-. , CSS.
css / css 12. html
[13/15]
CSS . , ( ).
, body . body , .
: ul li. ul , li .
css / css 13. html
: - [15/15]
. HTML- , .
, , . , , :
,
,
,
|
|
.
:
: #ffffff #333333.
, font-size.
, , 10,
position, top, left .
[3/18]
. :
<li class="first"></li>
, CSS . :. _. :
.first {
/* first */
}
, _. .
[4/18]
, .
, :
1. background-color: white;
2. background-color: red;
3. ( , ) background-color: yellow;
.
css / css 4-16. html
[5/18]
, , :
p strong {... }
ul.hit {... }
.footer.menu a {... }
. , , .
, .menu a a , .menu.
:
/* strong p */
p strong {... }
/* .hit ul */
ul.hit {... }
/* .menu,
.footer */
.footer.menu a {... }
, . , , , .
.
css /css4-17.html
[6/18]
, .
, <li> <ul>.
+, , 1 + 2. , 2, , 1.
. :
<li class="hit"></li>
<li class="miss"></li>
.hit +.miss miss, hit.
.hit + li miss, .miss +.hit .
<style>
.hit {
background-color: white;
}
.hit +.mis {
background-color: red;
}
Css/css4-18.html
[7/18]
CSS . , .
, .player-1.hit +.miss miss, hit player-1.
. , .
css/css4-19.html
[7/19]
, . . :
<ul> <li><span>...</span></li> <li><span>...</span></li></ul><ul> <li> , <span> , .
, . . .
, >. : ul > li ul > li > span.
, .
css/ css4-20.html
|
|
[9/18]
, . , .
c :, :. :
a:visited {... }
li:last-child {... }
.alert:hover {... }
first-child last-child.
first-child , last-child . :
li:last-child {... }
.
css/ css4-21.html
:nth-child [10/18]
, .
4. <li> . , . , .
nth-child , . : :nth-child(). . :
1. li:nth-child(2) {... }2. li:nth-child(4) {... }3. li:nth-child(2n) {... }, , .
:nth-child - :nth-child.
css /css4-22.html
, 1
:nth-child [11/18]
.
, :
.shooter-2 li:nth-child(3) {... }<li> shooter-2.
, 5, .
css / css 4-23. html
:hover [12/18]
, . :hover.
, . :
1. a:hover {... }
2. tr:hover {... }
3.menu-item:hover {... }
, , menu-item, , .
, , .
css/css4-24.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>:hover</title>
<link rel="stylesheet" href="https://htmlacademy.ru/assets/course7/course-4.css">
<style>
table {
background: rgba(255, 255, 255, 0.95);
}
tr:hover {
background-color: #fcf8e3;
}
strong:hover {
color: #0088cc;
}
</style>
</head>
<body>
<div class="cup-standings">
<h1> </h1>
<table>
<tr>
<th></th>
<th></th>
<th></th>
</tr>
<tr>
<td>1.</td>
<td> <em></em></td>
<td><strong>151</strong></td>
</tr>
<tr>
<td>2.</td>
<td>- <em></em></td>
<td><strong>121</strong></td>
</tr>
<tr>
<td>3.</td>
<td> <em></em></td>
<td><strong>110</strong></td>
</tr>
<tr>
<td>4.</td>
<td> <em></em></td>
<td><strong>105</strong></td>
</tr>
<tr>
<td>5.</td>
<td> <em></em></td>
<td><strong>104</strong></td>
</tr>
</table>
</div>
</body>
</html>
:hover [13/18]
, CSS ?
, CSS, , , ,:hover. . :
li.top ul.submenu {
display: none;
}
li.top:hover ul.submenu {
display: block;
}
-. : , , , . .
: -. 1:hover 2.
Css/css4-25.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>:hover</title>
<link rel="stylesheet" href="https://htmlacademy.ru/assets/course7/course-4.css">
<style>
table {
background: rgba(255, 255, 255, 0.95);
}
tr:hover {
background-color: #fcf8e3;
}
strong:hover {
color: #0088cc;
}
</style>
</head>
<body>
<div class="cup-standings">
<h1> </h1>
<table>
<tr>
<th></th>
<th></th>
<th></th>
</tr>
<tr>
<td>1.</td>
<td> <em></em></td>
<td><strong>151</strong></td>
</tr>
<tr>
<td>2.</td>
<td>- <em></em></td>
<td><strong>121</strong></td>
</tr>
<tr>
<td>3.</td>
<td> <em></em></td>
<td><strong>110</strong></td>