如何使用html在标题后插入长空格?

ELA*_*AJA 5 html html5

我正在使用带标题标签的html.

例如:

<html>
  <head>
    <title> Title Name  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                                                                      </title>
  </head>
</html>
Run Code Online (Sandbox Code Playgroud)

在这个我想要使用HTML代码"标题名称"之后的长空格.我试图使用,&nbsp;但它太长,无法放置代码.在标题之后的任何其他替代空间.

FeR*_*oll 1

如果您的问题是您只是想避免编写又长又多的&nbsp;代码。如果你使用 PHP 那么我建议你这样做:

<title>Start <?php str_repeat("&nbsp;", 30); ?> End</title>
Run Code Online (Sandbox Code Playgroud)

否则我认为像你一样使用没有问题&nbsp;