CSS Pseudo-selector For H1-h6? · Issue #1008 · W3c/csswg-drafts
Skip to content You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} w3c / csswg-drafts Public 
pmaxhoganopened on Feb 6, 2017
- Notifications You must be signed in to change notification settings
- Fork 779
- Star 4.8k
- Code
- Issues 4.3k
- Pull requests 133
- Actions
- Projects
- Security 0
- Insights
Description
I frequently find myself writing CSS like this:
h1, h2, h3, h4, h5, h6{ ... }It annoys me that I have to type h1, h2, h3, h4, h5, h6 so much. But it gets worse:
article h1, article h2, article h3, article h4, article h5, article h6{ ... }or even
article h1.bold:hover, article h2.bold:hover, article h3.bold:hover, article h4.bold:hover, article h5.bold:hover, article h6.bold:hover{ ... }Wouldn't it be nice to just type
:heading{ ... }or
article :heading{ ... }or
article :heading.bold:hover{ ... }:heading just matches h1-h6. It would be easy to implement for browser vendors and easy to polyfill. But extremely helpful.
Having a heading selector like :heading would be AWESOME!Metadata
Metadata
Assignees
No one assignedLabels
Type
No typeProjects
No projectsMilestone
No milestoneRelationships
None yetDevelopment
No branches or pull requestsIssue actions
You can’t perform that action at this time.Từ khóa » H1-h6 Css
-
HTML H1 To H6 Tag - W3Schools
-
–
: The HTML Section Heading Elements - MDN - Mozilla
-
How Can I Group H1 To H6 In CSS? - Html - Stack Overflow
-
HTML
-
Tags - W3docs
-
HTML H1 To H6 Style Attribute - Dofactory
-
HTML CSS - HTML Tag - H1-h6
-
The
...
, And Elements - ILoveCoding
-
Formatting HTML H1 Heading Tags With CSS For SEO
-
HEADINGS! - A Primer On H1-h6
-
How To Use Headings Tags For SEO - Hobo Web
-
Default Values For H1-h6 Css Code Example - Html
-
HTML H1 To H6 Tag
-
Các Thẻ Heading
-
Của HTML
-
HTML - Heading Elements H1, H2, H3, H4, H5 And H6.