Skip to content

Commit aa7eb92

Browse files
authored
Meta: use <p> for subheading instead of <h2>
Part of whatwg/whatwg.org#401.
1 parent 53346e4 commit aa7eb92

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

dev/styles.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ h1 {
7474
font-size: 300%;
7575
}
7676

77-
h2:not(#dev-edition-h2):not(#about-dev-edition) {
77+
h2:not(#about-dev-edition) {
7878
font-size: 160%;
7979
text-transform: uppercase;
8080
letter-spacing: 0.2em;
@@ -349,7 +349,7 @@ header#head h1 a:hover {
349349
text-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
350350
}
351351

352-
header#head h2 {
352+
header#head hgroup p {
353353
font-size: 12px;
354354
margin-bottom: 0.5em;
355355
font-family: "Droid Serif", Georgia, serif;
@@ -513,7 +513,7 @@ html:not(.index) ol.toc ol {
513513
height: auto;
514514
}
515515

516-
h2:not(#dev-edition-h2) {
516+
h2 {
517517
font-size: 18px;
518518
}
519519

source

+4-10
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,13 @@
5454
<a href="https://whatwg.org/" class="logo"><img crossorigin width="100" height="100" alt="WHATWG" src="https://resources.whatwg.org/logo.svg"></a>
5555
<hgroup w-nodev>
5656
<h1 class="allcaps">HTML</h1>
57-
<h2 w-nosnap w-noreview id="living-standard" class="no-num no-toc">Living Standard &mdash; Last Updated <span class="pubdate">[DATE: 01 Jan 1901]</span></h2>
58-
<h2 w-nohtml w-noreview id="living-standard" class="no-num no-toc">Commit Snapshot &mdash; Last Updated <span class="pubdate">[DATE: 01 Jan 1901]</span></h2>
59-
<h2 w-nohtml w-nosnap id="living-standard" class="no-num no-toc">Review Draft &mdash; Published <span class="pubdate">[DATE: 01 Jan 1901]</span></h2>
60-
<!-- FIXME: once the spec is changed to allow p elements in hgroup to pass validation,
61-
the h2s above needs to be changed to p elements, and the appropriate style sheets updated.
62-
-->
57+
<p w-nosnap w-noreview id="living-standard">Living Standard &mdash; Last Updated <span class="pubdate">[DATE: 01 Jan 1901]</span></p>
58+
<p w-nohtml w-noreview id="living-standard">Commit Snapshot &mdash; Last Updated <span class="pubdate">[DATE: 01 Jan 1901]</span></p>
59+
<p w-nohtml w-nosnap id="living-standard">Review Draft &mdash; Published <span class="pubdate">[DATE: 01 Jan 1901]</span></p>
6360
</hgroup>
6461
<hgroup w-dev>
6562
<h1><a href="/dev/" rel=home>HTML: The Living Standard</a></h1>
66-
<h2 class="no-num no-toc" id="dev-edition-h2">Edition for Web Developers &mdash; Last Updated <span class="pubdate">[DATE: 01 Jan 1901]</span></h2>
67-
<!-- FIXME: once the spec is changed to allow p elements in hgroup to pass validation,
68-
the h2 above needs to be changed to p elements, and the appropriate style sheets updated.
69-
-->
63+
<p id="dev-edition-h2">Edition for Web Developers &mdash; Last Updated <span class="pubdate">[DATE: 01 Jan 1901]</span></p>
7064
</hgroup>
7165
<nav w-nosplit w-nodev w-noreview>
7266
<!-- Note: be sure to keep an even number of <a>s, for small screens where they appear in two columns. -->

0 commit comments

Comments
 (0)