Одно правило CSS для всех подзаголовков h1, h2, h3, h4, h5 и h6

Есть ли Одно правило CSS для всех подзаголовков h1, h2, h3, h4, h5 и h6?

К сожалению, в CSS нельзя выбрать все заголовки h1–h6 без перечисления напрямую.
Нет универсального селектора вроде h*, который бы работал.

Единственный рабочий способ — перечислить:


h1, h2, h3, h4, h5, h6 {
    font-family: Arial, sans-serif;
    color: #333;
    margin-top: 1.2em;
    margin-bottom: 0.8em;
}
guest
Закрыть меню
ZAPLATA.RU | Магазин готовых блогов Wordpress с автонаполнением
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.