How to Capture ID in CSS Selector in Html

Sarmad Gardezi

When I tried to build the table and tried to add colors, I encountered some problems.

In Wiz Wiz I defined itcss selector, but the selector doesid not work well.

Why doesn’t the selector work?

And how to solve it? ID cannot start with a number. A good solution is to add a meaningful name before the number. And, as ellitt said, the id in html should be enclosed in quotation marks.


<text id="alert1">Some text</text>
<text id="alert2">Some text</text>


#alert1 {
    background-color: blue;
#alert2 {
    background-color: green;

If you still have an issue you can use the contact page for more info.

More great articles

Create a Conditional Sparkline that Changes Color based on Data

The Sparkline function is one of my favorite functions in Google Sheets, so I'm excited to share this tip. Create…

Read Story

Facebook live Chat Widget for Websites & Blogs

Everyone now a days uses Facebook for different purposes like brand pages some personal blog pages , some company pages with…

Read Story

How to use html svg to Create a Clickable Triangle Mesh

I have built a triangle mesh like this it will help you to use html svg to Create a Clickable…

Read Story