How to apply css for anchor tag inside table


Tags: html,css,css3

Problem :

i am trying to apply the css for the anchor tag which is inside the table. but i am not able to see any changes. how to do this?

code:

<!DOCTYPE html>
<html>
<head>
<style>
table.tab>td>a
{
background-color:yellow;
}
</style>
</head>

<body>
<table class="tab">
<tr><td><a href="#">google.com</a></td></tr>
</tr></table>
</body>
</html>


Solution :

table.tab td a{
background-color:yellow;}

    CSS Howto..

    How do I place text to the right of a relatively positioned image?

    how to clear all css styles

    How to fix this css float problem?

    How to use Open Sans font with cakePhp 3?

    how to remove backgrount property of a div from css through jQuery? [duplicate]

    Want to duplicate css styles for an ID based style, how to do this with least duplication?

    CSS: How to force DIV to maintain aspect ratio the same way IMG does

    How to override a 's CSS when loaded by ajax?

    Rails 4 - how to write a helper method

    How to align radio buttons with labels in one line? [duplicate]

    How to combine several hover elements in JS/Jquery

    show/hide css menu item depending user role using asp.net

    How to I center my submit button in CSS?

    How to change the display property in a css class using js when user clicks a button

    How can I force Visual Studio to follow a custom CSS template when I edit my css files?

    How to format f.submit with css, glyphicons, and symbol?

    White space in between banner image and menu bar on site-only 1080px screen and lower. How to fix? [closed]

    How to remove border-bottom of last div in a group - CSS

    How to show span class inside the textbox?

    How can I correctly type css float?

    How are the invalid CSS lines interpreted?

    How to add a Google icon font to pseudo :before

    How to store a global variable in JQuery?

    unexpected script/css conflict, how to resolve?

    How to change the color of item selection radcombobox with a css style?

    How to override inline css coming from js

    How to fix the top row and first column in a webpage, with only CSS

    how to position nested list items?

    How to keep div visible when hovering another div

    How to center a div with CSS?