最简单的网页hello world制作

2025-10-03 12:57:09

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制作

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢