I’m taking some classes on Web Programming and no one in the class including the instructor can say what the difference is between the frame values box and border when it comes to html tables. Here is an example of what I am talking about.
<table frame="border">
<!-- some basic table data -->
</table>
<table frame="box">
<!-- some basic table data -->
</table>
These two tables as far as I can tell will render the same way as one another. Are there any underlying differences that may not be apparent at first or is there a right or wrong way to use them?
There is no difference; they’re aliases of each other. From the HTML 4.01 spec:
Today, pretty much the only right way to use them is to not use them. Table border styles should be defined using CSS instead of presentational attributes, of which
frameis an example, albeit a rather obscure one. Browser support for this attribute seems quite patchy anyway, again owing to its obscurity.