?
Solved

Is border, a table's css property?

Posted on 2012-04-10
4
Medium Priority
?
343 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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:
Gurvinder Pal Singh earned 500 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 500 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
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 different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
Suggested Courses

764 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