0
id attribute is not working in <div> tag. ex:<div id="intro">
Hi đ I am learning CSS. In class 3.1. id and class selectors. This id attribute is not working in <div> tag. ex:<div id="intro">. Is it like this? Please help me. Thank you.
3 RĂ©ponses
+ 2
Cant find this lection, but your code looks fine.
To add id to element you type it as name="value" inside opening tag of element like
<div class="container"></div>
same is for id, or any other
+ 2
Also in html with that id intro in css you would label that as #intro and class=âintroâ is another way which would be labeled as .intro
0
Thank you â€ïž