The Heading object represents an HTML heading element: <h1> to <h6>.
You can access a heading element by using getElementById():
You can create a heading 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 heading element |
The Heading object also supports the standard properties and events.
HTML tutorial: HTML Headings
HTML reference: HTML <h1> to <h6> Tags
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!