html表格标题标签_HTML标题标签

html表格标题标签

The headings are an important aspect in a document. The heading could be provided on the webpage through HTML.

标题是文档中的重要方面。 该标题可以通过HTML在网页上提供。

There six types of heading given in HTML. Below are the six HTML heading tags used and their respective effects. <h1> defines the most important heading and it gives the largest heading while the <h6> is the smallest heading and thus defines the least important headings in HTML.

HTML提供了六种标题。 以下是使用的六个HTML标题标签及其各自的效果。 <h1>定义了最重要的标题,并且给出了最大的标题,而<h6>是最小的标题,因此定义了HTML中最不重要的标题

Consider the Example:

考虑示例:

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Basic Structure of a HTML5 Webpage</title>
</head>
<body>
	<!--HEADING (there are total 6 Heading Elements in HTML5)-->
	<h1>Heading One</h1>
	<h2>Heading Two</h2>
	<h3>Heading Three</h3>
	<h4>Heading Four</h4>
	<h5>Heading Five</h5>
	<h6>Heading Six</h6>
	<br>
	<!--PARAGRAPH-->
	<p>Paragraph One</p>
</body>
</html>

Output

输出量

HTML head and paragraph tags

上例中的标签和元素: (Tags and Elements in the above Example:)

<!DOCTYPE html>

<!DOCTYPE html>

This is Document Type declaration made just before the starting of <html> tag, It helps the browser choose the version of HTML to be rendered, the declaration which we have used in the above example is specific for HTML5.

这是在<html>标记开始之前进行的文档类型声明,它可以帮助浏览器选择要呈现HTML版本,我们在以上示例中使用的声明特定于HTML5。

<html>

<html>

This is the starting tag of a HTML document, it is necessary to have a closing HTML tag.

这是HTML文档的开始标记,必须有一个结束HTML标记。

<meta charset="UTF-8">

<meta charset =“ UTF-8”>

This meta information helps the browser to encode the text type properly, charset stands for Character Set. UTF stands for Unicode Transformation Format.

此元信息可帮助浏览器正确编码文本类型,charset代表字符集。 UTF代表Unicode转换格式。

<head>

<头>

This is the heading element of the HTML document, it contains the title (<title> TITLE INFO. </title>) element of our webpage, the title is displayed in the browser’s tab, heading element also contains the meta information of the webpage.

这是HTML文档的标题元素,它包含我们网页的标题(<title> TITLE INFO。</ title>)元素,标题显示在浏览器的选项卡中,标题元素还包含该网页的元信息。

<body>

<身体>

Everything which we see in the browser’s windows comes under the body tag.

我们在浏览器窗口中看到的所有内容都在body标签下。

<!--COMMENT HERE-->

<!-在这里评论->

This tag is used to add comments in our HTML document, these are not to be rendered in the browser.

此标记用于在我们HTML文档中添加注释,这些注释不能在浏览器中呈现。

<h1>...<h6>

<h1> ... <h6>

This is the heading tag which ranges from <h1> to <h6>, <h1> tag is used to render the biggest heading and gradually the size is reduced while we use <h2>, <h3>, <h4>,<h5> & <h6>.

这是标题标签,范围从<h1>到<h6>,<h1>标签用于呈现最大标题,并且在我们使用<h2>,<h3>,<h4>,<h5时逐渐减小大小>&<h6>。

<p>

<p>

This is paragraph tag used to write paragraphs in a HTML document.

这是用于在HTML文档中编写段落的段落标签。

For word wrapping in HTML, one can use the   entity for the non-breaking space character, when you want to make sure that a line isn't broken. Alternatively, use the NOWRAP attribute to disable word wrapping and the <br/> element to force line breaks where desired.

对于HTML中的自动换行,可以使用   要确保行不中断时,不间断空格字符的实体。 或者,使用NOWRAP属性禁用自动换行,并使用<br/>元素在需要的地方强制换行。

The heading could be given with a horizontal rule. The <hr/> tag is used for specifying a horizontal rule in an HTML page. It is used to separate content.

可以给定水平方向的标题。 <hr />标记用于在HTML页面中指定水平线。 它用于分隔内容。

<html>

<body>

    <h1>HELLO! INCLUDE HELP</h1>
    <hr/>
    <!--non breaking (&nbsp;) Examples-->
    <p>Include &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Help</p>
    <p>
        The heading could be given with a horizontal rule.
        <br/> The "hr" tag is used for a horizontal rule in an HTML page.
        <br/> It is basically used to separate content.
        <br/>
    </p>
</body>

</html>

The output of the following HTML code would be as follows,

以下HTML代码的输出如下:

html heading tags output

The CSS file also could be applied to the HTML code for the element heading. Inline CSS could be applied by using the style attribute.

CSS文件也可以应用于元素标题HTML代码。 内联CSS可以通过使用style属性来应用。

<html>

<body>
    <h1 style="font-size:60px;color: #0000ff;"> 
		H1 heading with a new size. 
	</h1>
</body>

</html>

The output would be as,

输出为

html heading tags output

翻译自: https://www.includehelp.com/html/heading-tags-in-html-hypertext-mark-up-language.aspx

html表格标题标签

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值