- HTML. . HTML- , , . - .
- , .
<!DOCTYPE>
, , . . HTML5, :
<!DOCTYPE html>
, . html
.
head
, , body
.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
</body>
</html>
body
, , . -, .
, .
head
, , -.
, , title
.
<head>
<title>FB.ru</title>
</head>
-, . meta
:
name
- ;content
- ;http-equiv
- , HTTP-;charset
- , .
html- , :
<meta charset="utf-8">
| - |
<meta name="description" content=" ">
<meta name="keywords" content=", , ">
| - |
<meta name="author" content=" ">
<meta name="copyright" content=" ">
| |
<meta name="Publisher-Email" content="mail@mail.ru">
<meta name="Publisher-URL" content="http://www.site.ru">
| |
<meta name="Revisit-After" content="5 days">
| , |
<meta http-equiv="expires" content="Sun, 25 Feb 2018 23:59:59 GMT+03:00 ">
| , - |
<meta name="robots" content="INDEX">
<meta name="robots" content="NOINDEX,NOFOLLOW">
| -, . : - index,
- noindex,
- follow,
- nofollow,
- all,
- none
|
<meta http-equiv="Refresh" content="8, URL="http://www.site.ru">
| URL |
- , , . .
head
, . link href=" "
rel="stylesheet"
, , CSS. style
.
, body
. src
. , , , .
:
<html>
<head>
<link href="style.css" rel="stylesheet">
</head>
<body>
<script src="script.js"></script>
</body>
</html>
:
<html>
<head>
<style>
h1 { color: green; }
h2 { color: blue; }
</style>
</head>
<body>
<script>
var header = document.getElementById('header');
header.style.border = "2px solid red";
</script>
</body>
</html>
, , HTML-. , CSS.
- , , div
. .
, , HTML5. , , , .
HTML-, :
| |
header
| , , |
main
| |
footer
| |
nav
| |
article
| , , |
section
| - |
aside
| , |
, - figure figcaption.
<figure>
<img src="elefant.jpg" alt="" />
<figcaption> </figcaption>
</figure>
<h1>
<h6>
. h - header, - .
<h1> </h1>
<h2> </h2>
<h3> </h3>
<h4> </h4>
<h5> </h5>
<h6> </h6>
.
, , - , HTML . , . <a>
.
HTML- :
- , class, id, style;
- href - , ;
- target - , . ,
blank
. - download - ;
- rel - ,
nofollow
; - type - MIME- .
, . HTML .
img
:
src
- ;alt
- , , ;width
, height
- .
object
embed
, , HTML5 video
audio
. , .
iframe
, -.
Canvas
JavaScript.
HTML-, , .
b
, strong
- ;i
, em
, dfn
- ;q
, blockquote
- ;code
, kbd
- ;del
, s
- ;ins
, u
- ;mark
- ;sub
- ;sup
- ;small
- .
<br>
. <wbr>
. , <pre>
, , .
<p>
, - <hr>
.
- . , , .
- , <input>
. type
.
:
button
- ;select
- ;textarea
- ;label
- .
form
, fieldset
- .
HTML : , .
:
<dl>
<dt> 1</dt>
<dd> </dd>
<dt> 2</dt>
<dd> </dd>
</dl>
HTML- - <ol>
(ordered list), - <ul>
(unordered list). <li>
(list item).
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
, .
HTML- :
- table - ;
- thead - , ;
- tbody - ;
- tfoot - , ;
- tr - ;
- td - ;
- th - , ;
- col - ;
- colgroup - ;
- caption - .
HTML- , -. , .