Home > Web Front-end > HTML Tutorial > Example tutorials on tables and lists in html

Example tutorials on tables and lists in html

零下一度
Release: 2017-06-24 11:58:41
Original
1569 people have browsed it

Today I have prepared forms and lists for you.

1. The article has various data tables This web page is no exception.

(1), label meaning

----------------------Table start
  -------Table title
   ------------Row start tag
                                                                                                                                                                             --Cell
​ ​ ​ -------------------End of line tag
-------- -------------Table end

(2), table style

 

cellpadding Attribute setting cell The distance between the border and the cell content.                                    
cellspacing The property sets the distance between cells.                                                                                                                                                               .
height Set the height of the table. [Note]: It is best to write the attribute "High" in
table and let it expand automatically. But this can give tr the required height for each row
Code

<html>
     <head>
	<title>表格</title>
     </head>
     <body>
	<table border="1px" width="500px" cellpadding="10px" cellspacing="10px">
  		<caption>表格标题</caption>
    		<tr height="50px"> 
      		<th>表头</th>
      		<th>表头</th>
    		</tr>
		<tr> 
      		<td>单元格</td>
      		<td>单元格</td>
    		</tr>
	</table>
     </body>
</html>
Copy after login

Effect

2. Unordered list

    Unordered list attributes:
  • Hollow circle) square (square)

    Code

    <html>
         <head>
    	<title>表格</title>
         </head>
         <body>
    	 <ul type="circle">       
     		<li>无序列表</li>    
     	 </ul>           
    
         </body>
    </html>
    Copy after login

    Effect
     

     

    三, Ordered list

    Ordered list:
            Ordered list attribute:   
    1.                              around down around through the list >

         1(Arrange downwards according to the numbers 1.2.3...) A(Arrange downwards according to the uppercase letters A.B.C...) a(Arrange downwards according to the lowercase letters a.b.c.... Row down)

                                                                                                                                                                           It does not start from 1 by default but starts from 2)

    Code


    <html>
         <head>
    	<title>有序列表</title>
         </head>
         <body>
    	  <ol type="A">       
       		<li>有序列表</li>  
       		<li>有序列表</li>
       		<li>有序列表</li>   
     	  </ol>                     
    
         </body>
    </html>
    Copy after login



    The effect is according to A, B, C.. . When arranging type down, you can only write those three types

    ##

    The above is the detailed content of Example tutorials on tables and lists in html. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template