Is ordering of <link rel=“stylesheet” …> and [removed] tags significant?

前端 未结 7 1910
悲哀的现实
悲哀的现实 2021-01-11 09:53

(I apologize if this is an extremely basic question. I\'m a bit of an HTML noob.)

In HTML5, is the relative ordering within the element, o

7条回答
  •  -上瘾入骨i
    2021-01-11 10:24

    In the general case, the order should be assumed to be significant. Because it can be. JavaScript code may, for example, try to access a link element, and then it matters whether the link element appears before the script element (in which case it exists in the DOM when the script is executed).

提交回复
热议问题