一个简单的html页面实现
1 创建一个txt文件
2 显示文件后缀名
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/3076adc32c0c5e44ebc552ed24cc70b6.jpeg)
3 修改文件后缀为html
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/4ac87c3175bfd56d0557a6dad52a38aa.jpeg)
4 打开html文件编码
练习的代码直接打开Notepad++编辑,有提示语句还是挺方便的,代码如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>my first web</title>
</head>
<body>
this is my first web.
<h1>this is my first web.</h1>
<h2>this is my first web.</h2>
<h3>this is my first web.</h3>
<h4>this is my first web.</h4>
<h5>this is my first web.</h5>
<h6>this is my first web.</h6>
</body>
</html>
5 在谷歌浏览器打开
6 按F12进入开发者模式
至此一个最基础的html网站就构建完毕
参考资料:
https://blog.csdn.net/qq_45627684/article/details/104397453?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522158428810719724839246024%2522%252C%2522scm%2522%253A%252220140713.130056874…%2522%257D&request_id=158428810719724839246024&biz_id=0&utm_source=distribute.pc_search_result.none-task###
https://blog.csdn.net/wtj900/article/details/52758947?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522158428810719724839246024%2522%252C%2522scm%2522%253A%252220140713.130056874…%2522%257D&request_id=158428810719724839246024&biz_id=0&utm_source=distribute.pc_search_result.none-task
等等