i'm using html with title tag.
Eg:
<html>
<head>
<title> Title Name </title>
</head>
</html>
in this i want long space after "Title Name" using html code.
i tried to use
but it is too length to put the code. any other alternative to space after title.
Adding \u200B (zero-width space) in the beginning of the title text seems to show the extra spacing in Chrome too. To utilize this, the file must be UTF8 encoded.
To add a line break to your HTML code, you use the <br> tag. The <br> tag does not have an end tag. You can also add additional lines between paragraphs by using the <br> tags. Each <br> tag you enter creates another blank line.
Type where you want to insert an extra space. Add one non-breaking space character for every space you want to add. Unlike pressing the spacebar multiple times in your HTML code, typing more than once creates as many spaces as there are instances of .
If your problem is that you just want to avoid writing long and much of
codes. And if you use PHP then i suggest you to do it like this:
<title>Start <?php str_repeat(" ", 30); ?> End</title>
Otherwise i see no problem in using much
like you did.
I don’t see why length would be an issue, but you can use actual NO-BREAK SPACE U+00A0 characters instead of the entity reference
, e.g.
<title>Title Name </title>
Regarding FeRtoll's answer and since you don't want to use PHP, you could use the JavaScript library which ports some PHP functions to JS.
http://phpjs.org/functions/str_repeat/
What about
,  
,  
and  
?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With