. , .
4
<center> | . |
<font> | , . : <font face="verdana" color="green">This is some text!</font> |
<i> | . |
<b> | . |
CSS
CSS (Cascading Style Sheets, ) , , . , , . , , . , , HTML.
, -. CSS , . CSS , XHTML/HTML - .
, , 5 6.
5. -, HTML
-, . , ( 6).
6. -, HTML CSS
, .
<!DOCTYPE HTML>
<html>
<head>
<title> CSS</title>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1> CSS</h1>
<p>CSS (Cascading Style Sheets )
. , CSS.
CSS- , -,
. XHTML/HTML
.</p>
</body>
</html>
HTML <link rel="stylesheet" href="style.css">. style.css. :
body {
|
|
font-family: Arial, Verdana, sans-serif; /* */
font-size: 11pt; /* */
background-color: #f0f0f0; /* - */
color: #333; /* */
}
h1 {
color: #a52a2a; /* */
font-size: 24pt; /* */
font-family: Georgia, Times, serif; /* */
font-weight: normal; /* */
}
p {
text-align: justify; /* */
margin-left: 60px; /* */
margin-right: 10px; /* */
border-left: 1px solid #999; /* */
border-bottom: 1px solid #999; /* */
padding-left: 10px; /* */
padding-bottom: 10px; /* */
}
style.css <body>, <h1> <p>. , HTML .
, .css. , Web-.
-, . .
CSS , HTML , , .
- , . , . .
, , TABLE, , <table>, , , . , .
CSS , , , .
( ):
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
h1 { color: #a6780a; font-weight: normal; }
h2 {
color: olive;
border-bottom: 2px solid black;
}
</style>
</head>
<body>
<h1> 1</h1>
<h2> 2</h2>
</body>
</html>
h1 , h2 . , . .