如何使用HTML 元件

How To Build a Website With HTML 如何使用HTML构建网站

This tutorial series will guide you through creating and further customizing this website using HTML, the standard markup language used to display documents in a web browser. No prior coding experience is necessary but we recommend you start at the beginning of the series if you wish to recreate the demonstration website.

本教程系列将指导您使用HTML(用于在Web浏览器中显示文档的标准标记语言)创建和进一步自定义此网站 。 不需要任何编码经验,但是如果您希望重新创建演示网站,建议您从本系列开头开始

At the end of this series, you should have a website ready to deploy to the cloud and a basic familiarity with HTML. Knowing how to write HTML will provide a strong foundation for learning additional front-end web development skills, such as CSS and JavaScript.

在本系列的最后,您应该拥有一个可以部署到云的网站,并且对HTML有了基本的了解。 知道如何编写HTML将为学习其他前端Web开发技能(例如CSS和JavaScript)奠定坚实的基础。

The HTML <body> element is a semantic element that tells the browser that its content is part of the body of the webpage and intended for display. In this tutorial, we will add a <body> element to our web document where we can add content later on.

HTML <body>元素是一个语义元素,它告诉浏览器其内容是网页正文的一部分并打算显示。 在本教程中,我们将向Web文档中添加<body>元素,稍后我们可以在其中添加内容。

To add a <body> element to your document, insert opening and closing <body> tags after the closing </head> tag but before the closing </html> tag. Your document should now have the following code:

要将<body>元素添加到文档中,请 </head>标记之后但 </html>标记之前插入打开和关闭<body> </html>标记。 您的文档现在应具有以下代码:

<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title> Sammy’s First Website </title>
  <link rel="shortcut icon" type="image/jpg" href=”Favicon_Image_Location”/>
</head>

<body>
</body>

</html>

You should now understand the purpose of an HTML <body> element and understand how to add one to your HTML file.

现在,您应该了解HTML <body>元素的用途,并了解如何向HTML文件添加一个元素。

In the next step, we’ll begin to add our website content in between the <body> tags.

下一步,我们将开始在<body>标签之间添加网站内容。

翻译自: https://www.digitalocean.com/community/tutorials/how-to-use-the-html-body-element

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值