简体   繁体   中英

missing borders for an html table

I have the following piece of code

 <html>
 <head>
<body bgcolor="#BDBDBD">
<div align="center">
<font color="Blue">
<CAPTION><b><u><i>SYSTEM STATUS</i></u></b></caption>
</font>
</br>
</br>

<table BORDER="2" BORDERCOLOR="Black" CELLPADDING="3">

 <colgroup>
 <col span="2" style="background-color:FFA04A">
<col style="background-color:FFA04A">
</colgroup>

<thead>
<tr>
<font color="Blue">
        <th><font color="Blue">System</font></th>
        <th><font color="Blue">Is Alive</font></th>
        </font>
</tr>
</thead>
</font>
</body>
</head>
</html>

i am getting the output as atable with black borders but the border which seperates column is missing..is anything wrong with the code.

Fiddle

i think you are beginner ,please review this code

 <html>
    <head></head>
    <body bgcolor="#BDBDBD">
    <div align="center">
    <font color="Blue"> <b><u><i>SYSTEM STATUS</i></u></b> </font> </br>
    </br>
    <table BORDER="2" BORDERCOLOR="Black" CELLPADDING="3">
    <colgroup>
    <col span="2" style="background-color:FFA04A">
    <col style="background-color:FFA04A">
    </colgroup>
    <thead>
      <tr> <font color="Blue">
        <th><font color="Blue">System</font></th>
        <th><font color="Blue">Is Alive</font></th>
        </font> </tr>
    </thead>
    </font>
    </body>
    </html>

DemO: http://jsfiddle.net/26TCe/

See description of : "The tag specifies column properties for each column within a element." You'll have to define 3 elements: insert an (empty) <th/> between

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM