how i can change button to have border-radius: 6px; and to by active marked when i will select it. Here is my HTML code and i also have CSS. When i make
The :
indicates a pseudo-class (pr pseudo-element). It is not part of the class name.
:active
means "While being clicked on" (or otherwise activated).
If you want to match a class in the document, then give it a regular class name (and preferably not one that could be confused with a pseudo-class):
Then use a class selector in the CSS:
.current { ... }