Newer
Older
hello-programmer-world / src / sample / html / navigation.html
<!DOCTYPE html>
<html lang="ja">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ナビゲーションメニュー</title>
    <style>
        .nav {
            background-color: #333;
            padding: 15px;
        }

        .nav .item {
            color: white;
            padding: 10px 20px;
            margin: 0 5px;
            cursor: pointer;
            border-radius: 5px;
        }

        .nav .item:hover {
            background-color: #555;
        }

    </style>
</head>

<body>
    <div class="nav">
        <span class="item">ホーム</span>
        <span class="item">お知らせ</span>
        <span class="item">お問い合わせ</span>
    </div>
</body>

</html>