The Paragraph object represents an HTML <p> element.
You can access a <p> element by using getElementById():
You can create a <p> element by using the document.createElement() method:
Property | Description |
---|---|
align | Not supported in HTML5. Use style.textAlign instead. Sets or returns the value of the align attribute of the paragraph |
The Paragraph object also supports the standard properties and events.
HTML tutorial: HTML Paragraphs
HTML reference: HTML <p> tag
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!