最简单的网页hello world制作

时间:2026-02-13 11:20:43

1、新建文本文档

在桌面上右键鼠标,新建文本文档

最简单的网页hello world制作

2、打开新建文本文档

最简单的网页hello world制作

3、输入如下代码

<html>

<body>

<h1>Hello World</h1>

Hello World

</body>

</html>

最简单的网页hello world制作

4、保存后重命名文本文档为“Hello World.html”

一定要是.html

最简单的网页hello world制作

5、用浏览器打开

最简单的网页hello world制作

6、设置居中显示

<html>

<body>

   

<center>

<h1>Hello World

</h1>

</center>

Hello World

</body>

</html>

最简单的网页hello world制作

© 2026 一点知道
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com