开发者

How do you split HTML code between two lines?

开发者 https://www.devze.com 2023-01-30 14:01 出处:网络
I have a very long line of HTML. I tried turning: <c开发者_如何学JAVAode><othercode>

I have a very long line of HTML. I tried turning:

<c开发者_如何学JAVAode><othercode>

into

<code><
othercode>

But it breaks the HTML, and I tried:

<code>
<othercode>

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

Thanks.


You can't separate the opening of the tag (<) from the tag identifier (in this case, "othercode"). So this won't work:

<code><
othercode params=...>

but this will:

<code><othercode
params=...>

Hope that helps.


You should be able to do

<code><othercode
id="something">

Even this might be ok:

<code><othercode
><morecode>


This should work:

<code
><othercode>

or

<code><othercode
>
0

精彩评论

暂无评论...
验证码 换一张
取 消