HTML完整格式–什么是HTML完整格式?

HTML full form is Hyper Text Markup Language. HTML is used to describe structure of web pages.

HTML完整格式超文本标记语言 。 HTML用于描述网页的结构。

HTML was developed by Tim Berners-Lee in the late 1991. It was released officially in 1995 as HTML 2.0. The current version of HTML is HTML 5.2 which was released in 2017.

HTML由Tim Berners-Lee于1991年末开发。它于1995年作为HTML 2.0正式发布。 HTML的当前版本是2017年发布HTML 5.2。

HTML Full Form

HTML版本 (HTML Versions)

Below is the list of all HTML versions released so far.

以下是到目前为止发布的所有HTML版本的列表。

VersionYear
HTML1991
HTML 2.01995
HTML 3.21997
HTML 4.011999
XHTML2000
HTML 52014
HTML 5.12016
HTML 5.22017
HTML 1991年
HTML 2.0 1995年
HTML 3.2 1997年
HTML 4.01 1999年
XHTML 2000
HTML 5 2014年
HTML 5.1 2016年
HTML 5.2 2017年

HTML标签 (HTML Tags)

HTML consists of series of elements that tells browser in what format the content should be displayed. The HTML elements are represented using tags. A tag is surrounded by angle brackets, see below example.

HTML由一系列元素组成,这些元素告诉浏览器应以哪种格式显示内容。 HTML元素使用标签表示。 标签被尖括号包围,请参见下面的示例。

<tagname>some content here</tagname>

<tagname>此处的一些内容</ tagname>

HTML tag comes in a pair like <html> and </html>. The 1st tag in this pair is the start tag and 2nd tag is end tag. The end tag is written same as like start tag, but a forward slash is written before the tag name. Sometimes the start and end tag is also called as opening and closing tag.

HTML标记像<html></ html>一样成对出现。 该对中的第一个标签是开始标签, 第二个标签是结束标签。 结束标记的写法与开始标记的写法相同,但是在标记名之前写了一个正斜杠。 有时,开始和结束标签也称为开始和结束标签。

简单HTML文档 (Simple HTML Document)

The web browsers like Chrome, Firefox, Safari, etc. are responsible for reading HTML documents. The browsers do not directly display HTML tags. They use tags to determine how document will be displayed.

Chrome,Firefox,Safari等网络浏览器负责读取HTML文档。 浏览器不会直接显示HTML标签。 他们使用标签来确定如何显示文档。

A simple HTML document will look like as shown below.

一个简单HTML文档如下所示。

1
2
3
4
5
6
7
8
9
10
<html>
<head>
<title>Simple HTML Document</title>
</head>
<body>
<h1>Simple HTML Document</h1>
<p>Your first paragraph goes here.</p>
</body>
</html>
1
2
3
4
5
6
7
8
9
10
<html>
<head>
<title> Simple HTML Document </title>
</head>
<body>
<h1> Simple HTML Document </h1>
<p> Your first paragraph goes here. </p>
</body>
</html>

HTML documents are saved with .htm or .html extension. You can write and edit them using any text editor such as notepad, wordpad, etc. If you will open above document in browser it will be displayed as shown below.

HTML文档以.htm.html扩展名保存。 您可以使用任何文本编辑器(如记事本,写字板等)编写和编辑它们。如果您要在浏览器中打开上方的文档,则会显示如下所示。

Simple HTML Document

Let’s see explanation of each tag used above.

让我们看一下上面使用的每个标签的说明。

<html>: It is the root tag of a html page

<html>:它是html页面的根标记

<head>: Contains the meta information about the page

<head>:包含有关页面的元信息

<title>: Specifies title of the page

<title>:指定页面的标题

<body>: All the content written inside is displayed in the browser

<body>:所有写在里面的内容都显示在浏览器中

<h1>: It defines a large heading

<h1>:它定义一个大标题

<p>: It defines a paragraph

<p>:它定义一个段落

Comment below if you have any queries related to above article.

如果您对以上文章有任何疑问,请在下面评论。

翻译自: https://www.thecrazyprogrammer.com/2019/07/html-full-form.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值