Html 如何在我的BR/>之后使中间线对齐

Html 如何在我的BR/>之后使中间线对齐,html,css,Html,Css,例如-欢迎来到最好的博客网站!新博客发布了 像这样的节目- Welcome to the best blog website! New blog is out! Welcome to the best blog website! New blog is out! 我想让它像这样表现出来- Welcome to the best blog website! New blog is out! Welcome to the best blog website!

例如-欢迎来到最好的博客网站!新博客发布了

像这样的节目-

Welcome to the best blog website!

New blog is out!
Welcome to the best blog website!

        New blog is out!
我想让它像这样表现出来-

Welcome to the best blog website!

New blog is out!
Welcome to the best blog website!

        New blog is out!
使元素成为内联块,然后将文本居中:

h1{ 显示:内联块; 文本对齐:居中 } 欢迎来到最好的博客网站!新博客发布了! 如果您想要与代码相同的文本。然后像这样添加标签


请问-为什么要使用blockquote?blockquote是一个缩进标签。它给出了普遍定义的4个空格的缩进。在某些语言(如Python)中,有强制缩进。因此,它可以作为缩进文本使用。我知道这里不需要Python,只是为了提供信息。根据,blockquote用于表示来自另一个源的引用部分,但这里不是这样。在我看来,它不应该只用于风格上的原因,因为HTML关注语义,CSS关注样式。只要我的2美分。文本文本在html文件中运行此文件。你会得到不同。是的,它增加了一些缩进,但是a@Helenesh是正确的,在这种情况下它是错误的HTML元素,而b实际上根本没有将文本居中。试一下Lorem ipsum dolor sit amet等等。。。在HTML文件中输入此文本。最简单的方法是使用正确的HTML结构。这根本不应该使用br。这应该是两个独立的元素。