Jump to content
Sign in to follow this  
akhleshsrm

Border color

Recommended Posts

We can set a table border color with bordercolor attribute but with it we can set border color only for whole table.

I want to set border color of a specific row or a specific cell.

How can i do it with HTML?

Share this post


Link to post
Share on other sites

Why do you not want to use CSS?

Share this post


Link to post
Share on other sites

It is not possible. HTML and CSS go hand in hand, you must learn them both because HTML on its own does not control the appearance of the page, only its content.

 

The bordercolor attribute is deprecated and should not be used. The same goes for all HTML attributes that change the appearance of anything on the page.

 

You should not be using tables to lay out you page either, you should use CSS and the box model for that. Tables are only intended to represent two-dimensional data structures.

Share this post


Link to post
Share on other sites

HTML defines the structure of the page, CSS defines the appearance of the page. CSS without HTML is useless, as there is nothing to apply CSS rules to.

 

You have to learn both HTML and CSS.

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...