Skip to content

CSS code snippet – How to select button by type ?

/* How to select an element by it type with CSS*/
a[target] {
  background-color: yellow;
}

/*example */

button[type="submit"] {
  background-color: yellow;
}
See also  TypeScript code snippet - How to make an element be above all the other elements html?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.