<head> 元素包含了所有的头部标签元素。
可以添加在头部区域的元素标签为: <title>, <style>, <meta>, <link>, <script>

实例

meta

<meta name="keywords" content="HTML, CSS, XML, XHTML, JavaScript">
<meta name="description" content="免费 Web & 编程 教程">
<meta name="author" content="Runoob">
<meta http-equiv="refresh" content="30">

link

<link rel="stylesheet" type="text/css" href="mystyle.css">

style

<style type="text/css">
body {background-color:yellow}
p {color:blue}
</style>

script

<script type="text/javascript">
        function show() {
            alert('Hello ');
        }
</script>

相关文章:

  • 2022-12-23
  • 2022-02-18
  • 2022-12-23
  • 2022-02-08
  • 2022-02-13
猜你喜欢
  • 2021-05-04
  • 2021-10-19
  • 2021-08-20
  • 2022-12-23
  • 2021-12-15
  • 2021-10-14
相关资源
相似解决方案