Share via

getting <element class="demotest"> Selector specificity (0, 1, 0)

Noreen Giovinazzi 0 Reputation points
2024-02-20T16:08:43.56+00:00

My curly brace is not being recognized and showing the following error after typing in both html and css files: <style> .demotest { } MY FIRST CURLY BRACE IS NOT BEING RECOGNIZED

Developer technologies | ASP.NET Core | Other

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 84,086 Reputation points
    2024-02-20T17:28:56.0933333+00:00

    Your question is not clear. The braces have no effect on selectivity, and 0-1-0 is correct for a class name only selector.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.