1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283
//! Content sectioning elements allow you to organize the document content into
//! logical pieces. Use the sectioning elements to create a broad outline for
//! your page content, including header and footer navigation, and heading
//! elements to identify sections of content.
html_element! {
/// The [HTML `<address>` element][mdn] indicates that the enclosed HTML provides contact
/// information for a person or people, or for an organization.
///
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/address
<address>
categories {
Flow, Palpable
}
children {
categories {
Flow // no nested address, no headings, no sectioning, no header/footer elems
}
}
}
html_element! {
/// The [HTML `<article>` element][mdn] represents a self-contained composition in a document,
/// page, application, or site, which is intended to be independently distributable or reusable
/// (e.g., in syndication).
///
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article
<article>
categories {
Flow, Sectioning, Palpable
}
children {
categories {
Flow
}
}
}
html_element! {
/// The [HTML `<aside>` element][mdn] represents a portion of a document whose content is only
/// indirectly related to the document's main content.
///
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/aside
<aside>
categories {
Flow, Sectioning, Palpable
}
children {
categories {
Flow
}
}
}
html_element! {
/// The [HTML `<footer>` element][mdn] represents a footer for its nearest [sectioning content]
/// or [sectioning root] element. A footer typically contains information about the author of
/// the section, copyright data or links to related documents.
///
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer
/// [sectioning content]: https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Sectioning_content
/// [sectioning root]: https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Sections_and_Outlines_of_an_HTML5_document#Sectioning_roots
<footer>
categories {
Flow, Palpable
}
children {
categories {
Flow // no footer or header descendants
}
}
}
html_element! {
/// The [HTML `<header>` element][mdn] represents introductory content, typically a group of
/// introductory or navigational aids. It may contain some heading elements but also a logo, a
/// search form, an author name, and other elements.
///
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header
<header>
categories {
Flow, Palpable
}
children {
categories {
Flow // no footer or header descendants
}
}
}
html_element! {
/// The [HTML `<h1>`–`<h6>` elements][mdn] represent six levels of section headings. `<h1>` is
/// the highest section level and `<h6>` is the lowest.
///
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h1
<h1>
categories {
Flow, Heading, Palpable
}
children {
categories {
Phrasing
}
}
}
html_element! {
/// The [HTML `<h1>`–`<h6>` elements][mdn] represent six levels of section headings. `<h1>` is
/// the highest section level and `<h6>` is the lowest.
///
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h2
<h2>
categories {
Flow, Heading, Palpable
}
children {
categories {
Phrasing
}
}
}
html_element! {
/// The [HTML `<h1>`–`<h6>` elements][mdn] represent six levels of section headings. `<h1>` is
/// the highest section level and `<h6>` is the lowest.
///
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h3
<h3>
categories {
Flow, Heading, Palpable
}
children {
categories {
Phrasing
}
}
}
html_element! {
/// The [HTML `<h1>`–`<h6>` elements][mdn] represent six levels of section headings. `<h1>` is
/// the highest section level and `<h6>` is the lowest.
///
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h4
<h4>
categories {
Flow, Heading, Palpable
}
children {
categories {
Phrasing
}
}
}
html_element! {
/// The [HTML `<h1>`–`<h6>` elements][mdn] represent six levels of section headings. `<h1>` is
/// the highest section level and `<h6>` is the lowest.
///
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h5
<h5>
categories {
Flow, Heading, Palpable
}
children {
categories {
Phrasing
}
}
}
html_element! {
/// The [HTML `<h1>`–`<h6>` elements][mdn] represent six levels of section headings. `<h1>` is
/// the highest section level and `<h6>` is the lowest.
///
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h6
<h6>
categories {
Flow, Heading, Palpable
}
children {
categories {
Phrasing
}
}
}
html_element! {
/// The [HTML `<hgroup>` element][mdn] represents a multi-level heading for a section of a
/// document. It groups a set of [`<h1>–<h6>`][heading] elements.
///
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hgroup
/// [heading]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements
<hgroup>
categories {
Flow, Heading, Palpable
}
children {
tags {
<h1>, <h2>, <h3>, <h4>, <h5>, <h6>
}
}
}
html_element! {
/// The [HTML `<main>` element][mdn] represents the dominant content of the [`<body>`][body] of
/// a document. The main content area consists of content that is directly related to or expands
/// upon the central topic of a document, or the central functionality of an application.
///
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/main
/// [body]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body
<main>
categories {
Flow, Palpable
}
children {
categories {
Flow
}
}
}
html_element! {
/// The [HTML `<nav>` element][mdn] represents a section of a page whose purpose is to provide
/// navigation links, either within the current document or to other documents. Common examples
/// of navigation sections are menus, tables of contents, and indexes.
///
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nav
<nav>
categories {
Flow, Sectioning, Palpable
}
children {
categories {
Flow
}
}
}
html_element! {
/// The [HTML `<section>` element][mdn] represents a standalone section — which doesn't have a
/// more specific semantic element to represent it — contained within an HTML document.
///
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section
<section>
categories {
Flow, Sectioning, Palpable
}
children {
categories {
Flow
}
}
}