Solved

Is border, a table's css property?

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Easy responsive table out of existing table 28 55
Botom of page is wrong color 5 11
Create tabs to show divs 9 30
If condition on Html with Asp 11 15
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

770 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