Элементы <Н1>, <H2>, <H3>, <H4>, <H5>, <H6>


Эти элементы используется для задания заголовков различных уровней. Самым старшим является <h1>. Требуются как открывающий, так и закрывающий ярлыки.

Возможно использование атрибутов:
* id, class;
* lang, dir;
* title;
* style;
* align;
* onclick, ondblclick, onmousedown, onmouseup, dnmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.

Заголовки и содержание (текст, с которым связан заголовок) можно объединить, использовав элемент <DIV>:
<DIV class="section" id="forest-elephants">
<H1>Forest elephants</H1>
In this section, we discuss the lesser known forest elephants.
...this section continues...
<DIV class="subsection" id="forest-habitat" >
<H2>Habitat</H2>
Forest elephants do not live in trees but among them.
...this subsection continues...
</DIV>
</DIV>

Forest elephants

In this section, we discuss the lesser known forest elephants.
...this section continues...

Habitat

Forest elephants do not live in trees but among them.
...this subsection continues...
Используя стили, можно определить способ визуализации заголовков:

<HEAD>
<STYLE>
DIV.section ( text-align: justify; font-size: 12pt}
DIV. subsection { text-indent: 2em }
H1 { font-style: italic; color: green }
H2 { color: green }
</STYLE>
</HEAD>



<<пред. страница

Оглавление

след. страница >>


Hosted by uCoz