How do you determine the class of elements?

Asked 2 years ago, Updated 2 years ago, 446 views

Right-click on the element you want to erase and select Validate.
HTML elements are shown in blue, and Stylus describes the elements you want to erase.
.entry-card-content {display:none;}

The element seems to be class ryentry-card-content らしい set to div, but why is it entry-card-content?
What happens if I write other codes instead of .entry-card-content

?

Enter a description of the image here

css

2022-09-30 22:01

1 Answers

The element seems to be class ryentry-card-content らしい set to div, but why is it entry-card-content?

The value of the class attribute is determined by the person who created the document.In other words, the author of the document decides to assign the class name entry-card-content to this element.

What happens if I write other codes instead of .entry-card-content

?

If you specify other class names, if any elements are given that class name, the stylus decoration is applied to those elements.On the other hand, if those elements do not exist, nothing will happen.


2022-09-30 22:01

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.