html - What is a good way to make all h tags display as normal text? -


using css not (sass/scss) way make text in h tags display regular text?

you can use all:unset.

the css all shorthand property resets properties, apart unicode-bidi , direction, initial or inherited value.

the unset css keyword combination of initial , inherit keywords. these 2 other css-wide keywords, can applied css property, including css shorthand all. keyword resets property inherited value if inherits parent or initial value if not.

h1, h2, h3, h4, h5, h6 {   all: unset; } 

body {    font-family: monospace;    font-size: 20px;    font-style: italic;    font-variant: small-caps;  }  h1, h2, h3, h4, h5, h6 {    all: unset;  }
<h1>header1</h1>  <h2>header2</h2>  text


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -