.net - Is it possible to change cell border color in pure classic HTML? (NO CSS) -


I want to change the color of the HTML table (special TD) using only HTML. There is no CSS Examply bgcolor = "#FF0000" As the back color changes the color of the ground back to TD, can there be a way to change the color of the cell range in white or without invoking CSS? Just plain simple classic HTML

No there is nothing to set border color in any HTML specification , Yet is lower on the basis of per-element. There is a widely supported nonstandard border description attribute, but it works entirely on the table, in which all border colors are set.

What is closest to what you are asking is to wrap the contents of the cell in a single cell table and move the border color setting on it:

  & lt ; Table & gt; & Lt; TR & gt; & Lt; Td> Foo & lt; Td> & Lt; Table border = 2 rule = no border color = red> & lt; Tr & gt; & Lt; Td> Bar & lt; / Table & gt; & Lt; Td> More & lt; / Table & gt; The style of the border is browser-dependent, and likewise the visual impression looks different from red to red in color. In addition, the range is actually  inside  table cell, not around, as you see if you set the range on the external table:  

  & lt ; Table border = 1 & gt; & Lt; TR & gt; & Lt; Td> Foo & lt; Td> & Lt; Table border = 2 rule = no border color = red> & lt; Tr & gt; & Lt; Td> Bar & lt; / Table & gt; & Lt; Td> More & lt; / Table & gt;  


Comments