How do I use CSS to select for a tag with arbitrary name attribute?

Tags: html,css,css-selectors

Problem :

This will allow me to select for the "a" tag with name of educationalTraining:

a[name=educationalTraining] {
    color: rgb(89, 91, 91);

How would I get all "a" tags with any name. This doesn't seem to work:

a[name=*] {
    color: rgb(89, 91, 91);

Unfortunately, I can't just select for any "a" tags. It's only ones that use the name attribute that I am interested in.

Solution :


a[name] {
    color: rgb(89, 91, 91);


    CSS Howto..

    How do you make a make a page's worth of empty space (with only a title) followed by a div in CSS?

    diagonal lines as background for css - how to switch angle

    How to distribute DIVS evenly (horizontal and vertical) that floats with each other?

    How to style every odd p element after h2 element occured in css?

    How to horizontally and vertically center two images on top of each other?

    How to fluid images when resize window?

    How to give menu sub menu options

    website div won't stretch from left to right, how do you fix css?

    How can i make the picture zoom in with css when my picture is 100% width in a bootstrap column?

    How to refer to children elements in CSS

    How to create three columns in css

    How to adapt a flex div's width to content

    How to convert an element css to JSON? [duplicate]

    I have 3 divs in one row, how do I get the middle div to stay an exact width while the left and right div shrink in as the screen resizes smaller?

    How to hide classes on some pages in WordPress?

    How to add padding to the cells of a table with CSS [closed]

    How to position div at the bottom of a page

    How to create two CSS transitions in parallel on nested elements

    How to increase width of image when dimensions are not known in CSS?

    How do I remove nav underline on hover from Bootstrap theme?

    How to stretch a div to the viewport bottom without using absolute positioning?

    How can i fill a paragraph (until end of line) with dashes using CSS

    How to arrange two html buttons horizontally in a single line with equal width by completely fills the screen size

    How to align text below an image in CSS?

    How to indicate there is more text to scroll?

    how do I create unique looking angular ui bootstrap dialogs

    How to center something I appended with js and also replace it

    How to make a header bar fold over the webpage css

    How to change css class according to the name attribute of a parent

    How do I turn a string into a “selector”?