Answers for "css style h1"

3

html style tag

<html>
<head>
<style>
  h1 {color:red;}
  p {color:blue;}
</style>
</head>
<body>

<h1>A heading</h1>
<p>A paragraph.</p>

</body>
Posted by: Guest on September-30-2020
2

html h1 size

h1  =>    32px    (2em)
h2  =>    24px  (1.5em)
h3  =>  20.8px  (1.3em)
h4  =>    16px    (1em)
h5  =>  12.8px  (0.8em)
h6  =>  11.2px  (0.7em)
Posted by: Guest on July-26-2020
0

css style all h1 tags

h1 {
  /* add custom styling here */
}
Posted by: Guest on June-12-2021
-1

default CSS settings for h1 tag

h1 { 
  display: block;
  font-size: 2em;
  margin-top: 0.67em;

      margin-bottom: 0.67em;
  margin-left: 0;
  margin-right: 0;

      font-weight: bold;
}
Posted by: Guest on June-06-2021

Browse Popular Code Answers by Language