Page <link> and <script> tag

In html, often there will certainly be js, css introduction of

<head>
    <title>MyHtml</title>
    <link rel="stylesheet" type="text/css" href="/css/common.css"/>
    <script type="text/javascript" src="/js/jquery.js"></script>
</head>

In the <link> in  rel = "stylesheet" type = " text / css" and <script> in type = "text / javascript", each is the same. What is necessary? Or you can not write it?

The answer is: the introduction of css is a must have. (Rel = "stylesheet" tells the browser, link to come is a style, type = "text / css" represents the type = level / style, you do not say who knows ah ...)

    Js and may be omitted (because JavaScript is the default scripting language as well as all modern HTML5 browsers!)

 

Guess you like

Origin www.cnblogs.com/xinxin-ting/p/11577527.html