开发者

How do you split HTML code between two lines?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜