This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#header { | |
height: 100px; | |
} | |
.footer { | |
height: 100px; | |
} | |
h1 { | |
color: red; | |
push: none; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.index { | |
color: #900; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Неправильная вложенность списков --> | |
<ul> | |
<li>Города-миллионники</li> | |
<ol> | |
<li>Москва</li> | |
<li>Санкт-Петербург</li> | |
<li>Екатеринбург</li> | |
</ol> | |
<li>Другие города</li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*----------------------- | |
Неправильно указан селектор класса */ | |
my-сlass { | |
/* Не работает. Браузер будет искать ТЕГ my-class */ | |
} | |
.my-class { | |
/* Правильный селектор класса. Точка перед именем класса */ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
как сделать чтобы между заголовком и таблицей был отступ? | |
--> | |
<h1>Заголовок для таблицы</h1> | |
<table> | |
<tr> | |
<td>Ладья</td> | |
<td>Конь</td> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Декларации HTML | |
1. Не обязательны закрывающие теги для p, h1...h6, pre, li | |
2. Значения атрибутов можно не заключать в кавычки | |
3. Возможен ЛЮБОЙ регистр для имён элементов и атрибутов | |
--> | |
<!--HTML 4.01 Strict — строгое соответствие спецификации HMTL 4.01--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Главная страница</title> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
</html> | |
<body> | |
<div class="page"> | |
<div class="header"> | |
<img src="logo.png" alt="Логотип" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<H1>Корректная html-разметка</H1> | |
<ul class=menu> | |
<li>О компаниии | |
<li>Услуги | |
<li>Контакты | |
</ul> <p> | |
<img | |
src=logo.png | |
alt=Логотип> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- подключение внешнего файла css --> | |
<head> | |
<link href="style.css" rel="stylesheet" type="text/css"> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
font:normal 16px Helvetica, Arial, sans-serif; | |
background: #EDEDED | |
url(http://www.starwars.com/img/explore/encyclopedia/technology/millenniumfalcon_hero3.jpg) | |
top center no-repeat; | |
color:#fff; | |
} | |
h1 { | |
font-size:36px; | |
line-height:28px; |
OlderNewer