Software Development

CSS :non-compulsory

Written by admin

A decade in the past HTML and CSS added the power to, a minimum of sign, validation of type fields. The required attribute helped inform customers which fields had been required, whereas sample allowed builders to supply a daily expression to match towards an <enter>‘s worth. Concentrating on required fields and validation values with simply CSS and HTML was very helpful.

Do you know that CSS offers :non-compulsory to let you type type components that are not required?

enter:non-compulsory, choose:non-compulsory, textarea:non-compulsory {
  border: 1px strong #eee;
}

[required] {
  border: 1px strong pink;
}

In a way, it seems like :non-compulsory represents :not([required]), however :non-compulsory is proscribed to simply type fields.

  • Write Simple, Elegant and Maintainable Media Queries with Sass
  • An Interview with Eric Meyer

    Your early CSS books had been instrumental in pushing my love for entrance finish applied sciences. What was it about CSS that you simply fell in love with and drove you to jot down about it? At first blush, it was the simplicity of it as in comparison with the table-and-spacer…

  • Send Email Notifications for Broken Images Using MooTools AJAX

    One of many little identified JavaScript occasions is the picture onError occasion. This occasion is triggered when a picture 404’s out as a result of it does not exist. Damaged pictures could make your web site look unprofessional and it is vital to repair damaged pictures as quickly as attainable.

  • Display Images as Grayscale with CSS Filters

    CSS filters aren’t but broadly supported however they’re certainly spectacular and a contemporary want for internet imagery.  CSS filters let you modify the show of pictures in a wide range of methods, a kind of methods being displaying pictures as grayscale. Doing so requires the…


About the author

admin

Leave a Comment