유튜브 버튼 코드

유튜브 버튼 구독하기

 




<!DOCTYPE html>

<html lang="ko">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>유튜브 버튼</title>

    <style>

        body {

            display: flex;

            justify-content: center;

            align-items: center;

            min-height: 100vh;

            margin: 0;

            background-color: #f0f0f0;

        }


        /* a 태그의 기본 스타일 제거 및 원하는 스타일 적용 */

        .youtube-button {

            display: inline-flex;

            align-items: center;

            background-color: #ff0000; /* 유튜브 빨간색 */

            color: #ffffff; /* 흰색 글자 */

            padding: 8px 15px;

            border-radius: 5px;

            font-family: 'Arial', sans-serif;

            font-size: 16px;

            font-weight: bold;

            cursor: pointer;

            transition: background-color 0.3s ease;

            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 그림자 효과 */

            text-decoration: none; /* 링크 밑줄 제거 */

        }


        .youtube-button:hover {

            background-color: #cc0000;

        }


        .play-icon {

            width: 0;

            height: 0;

            border-top: 6px solid transparent;

            border-bottom: 6px solid transparent;

            border-left: 10px solid #ffffff;

            margin-right: 8px;

        }

    </style>

</head>

<body>


    <a href="ㅡㅡ여기 주소 입력ㅡㅡ" class="youtube-button" target="_blank">

        <span class="play-icon"></span>

        구독하기

    </a>


</body>

</html>