Solved

Is border, a table's css property?

Posted on 2012-04-10
4
330 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 21

Expert Comment

by:Kim Walker
Comment Utility
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
Comment Utility
<<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
Comment Utility
It is an attribute of table tag ,like say property
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
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 …
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

728 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now