What is a BORDER attribute


#1

So I've been taking notes to make me understand coding easier. The problem is that code academy didn't really explain what the border attribute is. One example is....





    <table border="1px">
        <tr>
            <td>One</td>
        </tr>
        <td> two </td>
        <tr>
            <td> three </td>
        </tr>

        <tr>

        </tr>
    </table>

</body>


If you look right after the tag, you'll see it say


#2

HTML elements are objects, and as such they have properties associated with them.

<element>

generally referred to as a tag.

<element property="value">

an element with a property attribute.

Your code contains an example of the a border attribute:

<table border="1">

Note that in HTML, numeric values do not have units like they would in CSS. HTML interprets the above as a TABLE element with a 1 pixel wide border.