Меню
×
×
Правильно!
Упражнение №2:Установите цвет фона на "красный" для первой буквы элемента <p>.
<style>
@(20) {
background-color: red;
}
</style>
<body>
<p class="intro">
In my younger and more vulnerable years
my father gave me some advice that I've
been turning over in my mind ever since.
'Whenever you feel like criticizing anyone,' he told me,
'just remember that all the people in this world
haven't had the advantages that you've had.'
</p>
</body>
<style>
.intro::first-letter {
background-color: red;
}
</style>
<body>
<p class="intro">
In my younger and more vulnerable years
my father gave me some advice that I've
been turning over in my mind ever since.
'Whenever you feel like criticizing anyone,' he told me,
'just remember that all the people in this world
haven't had the advantages that you've had.'
</p>
</body>
<style>
p.intro::first-letter {
background-color: red;
}
</style>
<body>
<p class="intro">
In my younger and more vulnerable years
my father gave me some advice that I've
been turning over in my mind ever since.
'Whenever you feel like criticizing anyone,' he told me,
'just remember that all the people in this world
haven't had the advantages that you've had.'
</p>
</body>
<style>
p::first-letter {
background-color: red;
}
</style>
<body>
<p class="intro">
In my younger and more vulnerable years
my father gave me some advice that I've
been turning over in my mind ever since.
'Whenever you feel like criticizing anyone,' he told me,
'just remember that all the people in this world
haven't had the advantages that you've had.'
</p>
</body>
<style>
.intro:first-letter {
background-color: red;
}
</style>
<body>
<p class="intro">
In my younger and more vulnerable years
my father gave me some advice that I've
been turning over in my mind ever since.
'Whenever you feel like criticizing anyone,' he told me,
'just remember that all the people in this world
haven't had the advantages that you've had.'
</p>
</body>
<style>
p.intro:first-letter {
background-color: red;
}
</style>
<body>
<p class="intro">
In my younger and more vulnerable years
my father gave me some advice that I've
been turning over in my mind ever since.
'Whenever you feel like criticizing anyone,' he told me,
'just remember that all the people in this world
haven't had the advantages that you've had.'
</p>
</body>
<style>
p:first-letter {
background-color: red;
}
</style>
<body>
<p class="intro">
In my younger and more vulnerable years
my father gave me some advice that I've
been turning over in my mind ever since.
'Whenever you feel like criticizing anyone,' he told me,
'just remember that all the people in this world
haven't had the advantages that you've had.'
</p>
</body>
Не правильноНажмите здесь чтобы увидеть результат. Правильно!Вперед ❯ |
Это приведет к сбросу баллов по всем 138 упражнениям.
Вы уверены, что хотите продолжить?
Получить сертификат разработчика CSS, чтобы доказать, что вы обладаете фундаментальными знаниями в области веб-разработки с использованием CSS.