본문 바로가기

Python_WEB/HTML

[부스트코스]CSS 이해하기 - 선택자 퀴즈 2

반응형

Q>

"JS"문자는 보라색 글자색상과 밑줄 두 스타일을 모두 적용하시오.

<dt>JS</dt>
<dd><span>JS</span>는 문서의 동작을 나타냅니다.</dd>

 

A>

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .target {
            color: purple;
            text-decoration: underline;
        }
    </style>
</head>

<body>
    <dt>JS</dt>
    <dd><span class="target">JS</span>는 문서의 동작을 나타냅니다.</dd>
</body>

</html>

 

R>

 

https://www.boostcourse.org/cs120/

 

비전공자를 위한 HTML/CSS

부스트코스 무료 강의

www.boostcourse.org

 

반응형