Computer Science, asked by anushkajoshi10, 1 month ago

Which of the following specifies that the table has no border?

border="0"

border="1"

border="2"

border="none"​

Answers

Answered by anurag21286
0

Answer:

The HTML <table> border Attribute is used to specify the border of a table. It sets the border around the table cells. ... 1: It sets the border around the table cells. 0: It removes (not set) the border around the table cells

Answered by Anonymous
2

Accepted

Both are valid. It's your choice.

I prefer border:0 because it's shorter; I find that easier to read. You may find none more legible. We live in a world of very capable CSS post-processors so I'd recommend you use whatever you prefer and then run it through a "compressor". There's no holy war worth fighting here but Webpack→LESS→PostCSS→PurgeCSS is a good 2020 stack.

That all said, if you're hand-writing all your production CSS, I maintain —despite the grumbling in the comments— it does not hurt to be bandwidth conscious. Using border:0 will save an infinitesimal amount of bandwidth on its own, but if you make every byte count, you will make your website faster.

Similar questions