#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2014
    Posts
    3
    Rep Power
    0

    Question Table not showing up as table?


    Hi. I am having problems with tables. Specifically 2 tables are not showing up as tables despite all the tags that make it a table. Here is a link to the webpage itself:

    Kepler Bb

    And here is the code for 1 of the tables that isn't showing up:


    Code:
    <table>
        <thead>
            <tr border = "5">
                <th colspan = "2">Robin's Socio-Emotional Attributes</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>Pets?</td>
                <td>1, a wolf</td>
            </tr>
            <tr>
                <td>Home Type?</td>
                <td>Chambered</td>
            </tr>
            <tr>
                <td>Best friend?</td>
                <td>Lisa</td>
            </tr>
            <tr>
                <td>Worst thing happened?</td>
                <td>Death of relatives</td>
            </tr>
            <tr>
                <td>Best thing happened?</td>
                <td>Lisa became pregnant</td>
            </tr>
            <tr>
                <td>Who died?</td>
                <td>My parents</td>
            </tr>
            <tr>
                <td>Marital status</td>
                <td>Cotton(or 2nd anniversary)</td>
            </tr>
            <tr>
                <td>Relationship status</td>
                <td>8 with Lisa, 9 with grandparents</td>
            </tr>
            <tr>
                <td>Introvert or Extrovert?</td>
                <td>Both</td>
            </tr>
            <tr>
                <td>Worst fear?</td>
                <td>Lisa getting hurt</td>
            </tr>
            <tr>
                <td>Lies okay?</td>
                <td>Absolutely not</td>
            </tr>
            <tr>
                <td>Number of Children?</td>
                <td>None right now, expecting 1</td>
            </tr>
            </tbody>
        </table>
        <caption>Table 3: Robin's Social Life</caption>
    It should be showing up just like this table:


    Code:
     <table border = "5">
        <thead>
            <th colspan = "2">Robin's Physical Attributes</th>
        </thead>
        <tbody>
        <tr>
            <td>Age</td>
            <td>21</td>
        </tr>
        <tr>
            <td>Gender</td>
            <td>Male</td>
        </tr>
        <tr>
            <td>Height</td>
            <td>6'</td>
        </tr>
        <tr>
            <td>Weight</td>
            <td>220 lbs</td>
        </tr>
        <tr>
            <td>Hair color</td>
            <td>Brown</td>
        </tr>
        <tr>
            <td>Eye color</td>
            <td>Brown</td>
        </tr>
        <tr>
            <td>Skin color</td>
            <td>Tan</td>
        </tr>
        <tr>
            <td>Muscularity Index</td>
            <td>2</td>
        </tr>
        <tr>
            <td>Illness?</td>
            <td>No</td>
        </tr>
        <tr>
            <td>Injury?</td>
            <td>No</td>
        </tr>
        <tr>
            <td>Markings?</td>
            <td>No</td>
        </tr>
        </tbody>
        </table>
        <caption>Table 1: What Robin Looks Like</caption>

    But it isn't. I am not seeing cells or a border. As far as I know there is no problem with the HTML code.

    So why isn't it showing up? I have been able to make lots of tables on a webpage before but just the first 2 tables(and not even that many rows or columns in those tables) are showing up.

    Does it have to do with the editor? Should I add CSS to it? Why are only the first 2 tables showing up as tables?
  2. #2
  3. Backwards Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,915
    Rep Power
    9646
    They are showing up as tables: see how everything is arranged in a grid? That's a table.
    If you mean that you aren't seeing the borders then that would be because you didn't set them. Specifically, you put the border=5 on the <tr> instead of on the <table>.

    And yes, you should be using CSS, but it looks like you're learning so for the time being just know that "border" (among others) is old HTML and that CSS is how you do it in modern pages.

IMN logo majestic logo threadwatch logo seochat tools logo