HTML-
HTML- , HTML , . HTML- (. 1.) :
( DOCTYPE).
<html>. , <head> <body>.
(<head>) HTML- , .
(<body>) , HTML-. (), .
DOCTYPE , , ., .
, - .
< body > , : , , .
1 html -.
1. -
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1251">
<title> ?</title>
</head>
<body>
<h1> ?</h1>
<h2> , </h2>
<p> , .
, . , ,
. , ,
, , , ,
. ,
. ,
, , .
, , I, :</p>
<ul>
<li>;</li>
<li>;</li>
<li>;</li>
<li>.</li>
</ul>
<p>, , ,
. ,
tertium nn datur. , ,
.
|
|
.</p>
<p> , ,
, , tertium nn datur.</p>
</body>
</html>
DOCTYPE
DOCTYPE . dtd (document
type definition).
DOCTYPE:
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
HTML 4.01, .
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
HTML 4.01 (.. ).
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
HTML 4.01 () (.. ).
- <!DOCTYPE HTML>
HTML5.
, DOCTYPE , .. . , , , (.dtd).
-
- HTML html, (). - , < meta >. - < head >...< /head > -. , .
:
<head>
<meta name="author" content=""> -
<meta name="date" content=""> -
<meta name="copyright" content="">
<meta name="keywords" content="">
<meta name="description" content=""> ()
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="expires" content="">
<meta http-equiv="refresh" content="; URL=">
</head>
(html-, ) , .
HTML- , . ( ) <>:
<_ []>
|
|
, , . , / (< html >...< /html >). .
, < img >.
.
HTML:
<html>...</html>
<head>...</head>
<title>...</title> (, )
<body>...</body>
<div >...</div> ( )
<hN>...</hN> N- (N = 1...6)
<p>...</p>
<a>...</a>
<ol>...</ol>
<ul>...</ul>
<li>...</li>
<table>...</table>
<tr>...</tr>
<td>...</td>
<img>...</img>
<form>...</form>
<i>...</i>
<b>...</b>
<em>...</em> ()
<strong>...</strong> ( )
<br>
, . , :
<!-- -->
<ol>
<li> </li>
<li> </li>
</ol>
<div>
<h2> </h2>
<p> </p>
</div>
: - (p, li ..), -. , , .
= , :
< ="">...</>
, , . , , , . . , , . , .
: , .
. , . , .
:
style="_"
src="" (URI) ( )
align="left|center|right|justify" , left ( )
( , , .)
|
|
height="" ( , , .)
href="" , (URI)
name=""
id="" ( -)
size=""
class="_"
title=""
alt=""
- - (, .), . < a >. -.
<a href="http://example.com/"></a>
<a href="ftp://example.com/archive.tar.gz"> </a>
<a href="mailto://[email protected]" title=" ">[email protected]</a>
, () :
<a name=""> </a>
<a href="#"> </a>
.
, , . :
<a href="http://example.com/page.html"> </a>
<a href="http://example.com/images/figure1.gif"> </a>
, , . :
<a href="/index.html"> </a>
<a href="page.html#seg1"> </a>
<a href="images/figure1.gif"> </a>
<a href="/docs/manual.html"> </a>
<a href="../files/index.html"> </a>
, HTML- .
, . &; &#NNNN;, NNNN . : & ( ©) (&), < (<) > (>), « () .
CSS (. Cascading Style Sheets ) , .
- HTML XHTML, XML, SVG XUL.
- , , -. CSS ( HTML ) ( CSS). , , . , CSS , , , ( ), , .
|
|
CSS?
(Cascading Style Sheets, CSS) , . HTML ,
.
, . : , , , ,
.
, .
-. , , : , , , .
(inheritance), , , . ,
< div >, .
.