I have seen two lines written like this:
This is the first line.<br>
This is the second line.
Or, like this:
This is the first line.
<br>This is the second line.
Is there any difference between the two, such as for SEO or browser rendering? My guess is they are virtually the same and that the preferred placement is a matter of opinion.
5
Answers
i think it’s
<br/>
, not<br>
. And two options are the sameNo, it doesn’t matter. Here is a resource on the tag:
http://www.w3schools.com/tags/tag_br.asp
According to the HTML 4 spec, line breaks are treated as whitespaces.
And
I would consider the location of the
<br>
tag a matter of preference. It is virtually the same either way. The difference will amount to a space character either before or after the<br>
tag in the resulting document. I am not aware of any bearing on SEO.Here is a great reference:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br
I would go for the first option, It doesn’t matter which one you use. The first option suits most workflows better.
It doesn’t matter you can use
</br>
,<br/>
or<br>
The placement is a matter of opinion and it don’t have anything to do with SEO