| 1234567891011121314151617181920212223 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- <style>
- h1{
- font-size: 1rem;
- }
- </style>
- </head>
- <body>
- <h1>hello world</h1>
- <!-- 引入js文件 使用script 但是如果在script标签中引入js文件 那么就不可以在script标签中写js代码 -->
- <!-- <script src="./a.js"></script> -->
- <script src="./rem.js"></script>
- <!--如果需要在页面中写js代码 那么就要新建一个空的script标签 -->
- <script>
- console.log("hello world");
- </script>
- </body>
- </html>
|