Can I use DIV class and ID together in CSS?

后端 未结 9 1477
名媛妹妹
名媛妹妹 2020-12-25 10:21

Can I use DIV Class and ID together in CSS? For example:

--
9条回答
  •  [愿得一人]
    2020-12-25 10:44

    You can also use as many classes as needed on a tag, but an id must be unique to the document. Also be careful of using too many divs, when another more semantic tag can do the job.

    Styled paragraph

提交回复
热议问题