html p标签文字加粗 您所在的位置:网站首页 p标签怎么设置字体加粗 html p标签文字加粗

html p标签文字加粗

2023-12-15 05:23| 来源: 网络整理| 查看: 265

html p标签文字加粗

p标签 (The p tag)

This tag defines a paragraph of text.

该标签定义了一段文本。

Some text

It’s a block element.

这是一个块元素。

Inside it, we can add any inline element we like, like span or a.

在其中,我们可以添加任何喜欢的内联元素,例如span或a 。

We cannot add block elements.

我们不能添加块元素。

We cannot nest p elements one into another.

我们不能将p元素彼此嵌套。

By default browsers style a paragraph with a margin on top and at the bottom. 16px in Chrome, but the exact value might vary between browsers.

默认情况下,浏览器为段落设置样式,在顶部和底部留有空白。 在Chrome中为16px ,但实际值可能因浏览器而异。

This causes two consecutive paragraphs to be spaced, replicating what we think of a “paragraph” in printed text.

这将导致两个连续的段落被隔开,从而复制了我们在印刷文本中所认为的“段落”。

span标签 (The span tag)

This is an inline tag that can be used to create a section in a paragraph that can be targeted using CSS:

这是一个内联标签,可用于在可使用CSS定位的段落中创建一个部分:

A part of the text and here another part

br标签 (The br tag)

This tag represents a line break. It’s an inline element, and does not need a closing tag.

此标记表示换行符。 这是一个内联元素,不需要结束标记。

We use it to create a new line inside a p tag, without creating a new paragraph.

我们使用它在p标记内创建新行,而无需创建新段落。

And compared to creating a new paragraph, it does not add additional spacing.

与创建新段落相比,它不会增加额外的间距。

Some textA new line



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有