我已经创建了代码来打印一些数据.
<!DOCTYPE html>
<html>
<body>
<h1>The p element</h1>
<p>This is a paragraph.</p>
<p>This is a paragraph.</p>
<p>This is a paragraph.</p>
</body>
</html>
这给了我以下结果:
The p element
This is a paragraph.
This is a paragraph.
This is a paragraph.
但我想要做的是在不删除<p>
标签的情况下连接这三行.
我的预期结果是:
The p element
This is a paragraph. This is a paragraph. This is a paragraph.