HTML CSS Reference/HTML Attributes Reference/span

Материал из Web эксперт
Перейти к: навигация, поиск

"span" Example

   <source lang="html4strict">
   

<HTML> <head><Title>Example For span</Title></head> <BODY>

<colgroup> <col span="3" align="left" style="color:red; font-weight:bold"> <col span="1" align="center" style="color:green"> <col span="2" align="right" style="color:blue">
Column 1 Column 2 Column 3 Column 4 Column 5 Column 6
Cell 1 Cell 2 Cell 3 Cell 4 Cell 5 Cell 6

</BODY> </HTML>


     </source>
   
  


span is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Applied_To |<col> <colgroup> | +----------------+--------------------------------------------------------------+

     </source>
   
  


"span" Syntax and Note

   <source lang="html4strict">

Note:

This attribute sets the number of columns in a group. Its default value is 1.

Syntax:

<element span="value">


     </source>