Solved

Is border, a table's css property?

Posted on 2012-04-10
4
336 Views
Last Modified: 2012-04-10
Hi,
Just a random question for knowledge...

based on following code, can someone tell if border="1" table's CSS property?
<table border="1" >
<tr>
 <td>
</td>
</tr>
</table>

Just curious.

Thanks
0
Comment
Question by:himanshut
4 Comments
 
LVL 22

Expert Comment

by:Kim Walker
ID: 37827203
The border attribute of the table tag is the alternative to CSS. The CSS method is to give the table and the table cells border properties.
<table border="1">

Open in new window

is equivalent to
table, td, th { border: inset 1px #000; }

Open in new window

0
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 125 total points
ID: 37827254
<<can someone tell if border="1" table's CSS property?>>
Nope, it is not a css style, but an attribute of table element
http://www.w3schools.com/tags/att_table_border.asp
0
 
LVL 12

Assisted Solution

by:Anuradha Goli
Anuradha Goli earned 125 total points
ID: 37827326
It is an attribute of table tag ,like say property
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 37828772
All of the old table formatting attributes have been dropped from HTML5 except border, and it only allows the values "" or "1".  It is a bad idea to use it.  CSS is the way to go for modern pages.


Cd&
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question