How do you split HTML code between two lines?

I have a very long HTML string. I tried:

<code><othercode> 

in

 <code>< othercode> 

But it breaks the HTML, and I tried:

 <code> <othercode> 

But it puts a space between images. In python, you can just put "\" at the end of the line. Is there something similar in HTML?

Thanks.

+6
html
source share
3 answers

You cannot separate the opening of the tag (<) from the tag identifier (in this case "othercode"). So this will not work:

 <code>< othercode params=...> 

but it will be:

 <code><othercode params=...> 

Hope this helps.

+11
source share

You should be able to do

 <code><othercode id="something"> 

Even this may be normal:

 <code><othercode ><morecode> 
+2
source share

This should work:

 <code ><othercode> 

or

 <code><othercode > 
+2
source share

All Articles