Can you use the same id once for multiple html page?

前端 未结 2 1617
长情又很酷
长情又很酷 2020-12-11 15:41

I understand the concept of one id in an html page. As a noob, i was just wondering if you can use the same id once for different html pages. Will that be consider sloppy? <

2条回答
  •  独厮守ぢ
    2020-12-11 16:13

    It's fine to do that, but you would want to name your ids something better than "1". Something more descriptive, like

    would be better.

提交回复
热议问题