can I have a div with id as number?

后端 未结 7 2083
失恋的感觉
失恋的感觉 2020-11-22 10:13

Can I have a div with id as number?

eg

7条回答
  •  感情败类
    2020-11-22 10:34

    No. It has to start with a letter. See http://www.electrictoolbox.com/valid-characters-html-id-attribute/. You can use numbers after the first character, however, e.g. a1 or theansweris42.

提交回复
热议问题