css div id used only once per page

后端 未结 7 544
醉梦人生
醉梦人生 2021-01-14 03:27

In using CSS is it best practice to use a div id only once per page. I know each id has to be unique but could be used multiple times. A discussion with my development tea

相关标签:
7条回答
  • 2021-01-14 03:53

    ID's are Unique Assigments for ONE element on A page.

    You can use the "ID=" attribute more than once. You will need to make sure that ID="hi" is only used once as it is supposed to be a unique identifier at the element level.

    Link to Supporting Documentation: http://www.w3schools.com/tags/tag_DIV.asp

    0 讨论(0)
提交回复
热议问题