使用 CSS3,我可以有效地格式化单个段落<p>
。但是当我需要多个不同格式的段落时,我将段落重命名为<p1>
and <p2>
。我可以单独格式化它们,但它没有通过有效性测试。我怎样才能以它仍然有效的方式做到这一点?
我目前这样做的方式给了我以下错误:
Element p1 not allowed as child of element body in this context.
Element p2 not allowed as child of element body in this context.