본문 바로가기

Python_WEB/HTML

[Ch5]CSS 박스 모델과 응용 연습문제 4

반응형

Q>

하이퍼 링크를 CSS로 정의 해보자.

 

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>
        a {
            font-size: 50px;
            font-weight: bold;
        }

        a:link {
            color: green;
            text-decoration: none;
        }

        a:visited {
            color: goldenrod;
            text-decoration: none;
        }

        a:hover {
            color: hotpink;
            text-decoration: underline;
        }
    </style>
</head>

<body>
    <a href="#">Hyper Link</a>
</body>

</html>

 

R>

< 방문하지 않은 상태 >
< 호버링 상태 >
< 방문한 상태 >

 

HTML5 + CSS3 + JavaScript로 배우는 웹프로그래밍 기초
국내도서
저자 : 천인국
출판 : 인피니티북스 2013.12.19
상세보기
반응형