How to change the color of selected row of an HTML table without using CSS or Javascript?

Recommended Answers

All 4 Replies

Member Avatar for iamthwee

If it's html why can't u just use html to change the colour?

<table border="1">
<tr>
<td bgcolor="red">rowname first,second </td>
<td> name</td>
</tr>

<table border="1">
<tr>
<td bgcolor="red">rowname first,second </td>
<td> name</td>
</tr>

I think that this is answer for your quastion:
<table border="1">
<tr onmouseover="style.backgroundColor = '#cdcdcd';" onmouseout="style.backgroundColor = '#ededed';">
<td>rowname first,second </td>
<td> name</td>
</tr>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.