Adding asterisk * on required fields | Before, After CSS Tip | CSS Tutorial | Knowledge MeetUp

Описание к видео Adding asterisk * on required fields | Before, After CSS Tip | CSS Tutorial | Knowledge MeetUp

How to add asterisk * on required fields in HTML form. For this purpose, CSS pseudo elements :::before and ::after being used.
The before and after pseudo elements are a super useful parts of CSS but are often misunderstood.

in this video, I will talk about, how to add an asterisk on the required field in the HTML form. it is a very simple tip, we will use before and after pseudo-element

One important thing with both the before and after pseudo-elements is that they require us to define the content property. Without it, it defaults to none and we can use it!

CSS property content is used with before and after pseudo-elements, t insert generated content.

#css #htmlforms #csstutorial

Комментарии

Информация по комментариям в разработке