Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-3-7-sonnet-20250219-thinking-32k· AnthropicHugging Face LMArena Human Preference 140K

最強のHTMLサイトコードを書いて

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with grok-3-mini-beta’s answer.
  1. User

    最強のHTMLサイトコードを書いて

  2. Claude Assistant
    <!DOCTYPE html>
    <html lang="ja">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="最強のHTMLサイト">
        <title>最強のHTMLサイト</title>
        <style>
            /* リセットとベーススタイル */
            * {
                margin: 0;
                padding: 0;
                box-sizing: border-box;
            }
            
            body {
                font-family: 'Helvetica Neue', Arial, sans-serif;
                line-height: 1.6;
                color: #333;
                background-color: #f5f5f5;
            }
            
            .container {
                max-width: 1200px;
                margin: 0 auto;
                padding: 0 20px;
            }
            
            header {
                background-color: #2c3e50;
                color: white;
                padding: 1rem 0;
                box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            }
            
            nav {
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
            
            nav ul {
                display: flex;
                list-style: none;
            }
            
            nav ul li {
                margin-left: 20px;
            }
            
            nav a {
                color: white;
                text-decoration: none;
                transition: color 0.3s;
            }
            
            nav a:hover {
                color: #3498db;
            }
            
            .hero {
                padding: 4rem 0;
                text-align: center;
                background-color: #3498db;
                color: white;
            }
            
            .hero h1 {
                font-size: 2.5rem;
                margin-bottom: 1rem;
            }
            
            .hero p {
                font-size: 1.2rem;
                max-width: 800px;
                margin: 0 auto 2rem;
            }
            
            .btn {
                display: inline-block;
                background-color: #2c3e50;
                color: white;
                padding: 0.8rem 1.5rem;
                text-decoration: none;
                border-radius: 4px;
                transition: background-color 0.3s;
            }
            
            .btn:hover {
                background-color: #1a252f;
            }
            
            .features {
                padding: 4rem 0;
                background-color: white;
            }
            
            .features-grid {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                gap: 2rem;
            }
            
            .feature-card {
                padding: 2rem;
                border-radius: 8px;
                box-shadow: 0 4px 6px rgba(0,0,0,0.1);
                transition: transform 0.3s;
            }
            
            .feature-card:hover {
                transform: translateY(-5px);
            }
            
            .feature-card h3 {
                margin-bottom: 1rem;
                color: #2c3e50;
            }
            
            footer {
                background-color: #2c3e50;
                color: white;
                padding: 2rem 0;
                text-align: center;
            }
            
            /* レスポンシブデザイン */
            @media (max-width: 768px) {
                .hero h1 {
                    font-size: 2rem;
                }
                
                .hero p {
                    font-size: 1rem;
                }
                
                nav {
                    flex-direction: column;
                }
                
                nav ul {
                    margin-top: 1rem;
                }
            }
        </style>
    </head>
    <body>
        <header>
            <div class="container">
                <nav>
                    <div class="logo">
                        <h2>最強サイト</h2>
                    </div>
                    <ul>
                        <li><a href="#home">ホーム</a></li>
                        <li><a href="#features">特徴</a></li>
                        <li><a href="#about">私たちについて</a></li>
                        <li><a href="#contact">お問い合わせ</a></li>
                    </ul>
                </nav>
            </div>
        </header>
        
        <section class="hero" id="home">
            <div class="container">
                <h1>最強のHTMLサイトへようこそ</h1>
                <p>最新のHTMLとCSSのテクニックを使用して作成された、高速で応答性の高いウェブサイトです。</p>
                <a href="#features" class="btn">詳細を見る</a>
            </div>
        </section>
        
        <section class="features" id="features">
            <div class="container">
                <h2 style="text-align: center; margin-bottom: 2rem;">主な特徴</h2>
                <div class="features-grid">
                    <div class="feature-card">
                        <h3>レスポンシブデザイン</h3>
                        <p>あらゆるデバイスで完璧に表示されるレスポンシブウェブデザイン。</p>
                    </div>
                    <div class="feature-card">
                        <h3>モダンなレイアウト</h3>
                        <p>CSSグリッドとフレックスボックスを使用した最新のレイアウト技術。</p>
                    </div>
                    <div class="feature-card">
                        <h3>高速パフォーマンス</h3>
                        <p>最適化されたコードで、高速な読み込みと滑らかなユーザー体験を提供。</p>
                    </div>
                </div>
            </div>
        </section>
        
        <footer>
            <div class="container">
                <p>&copy; 2025 最強HTMLサイト. All rights reserved.</p>
            </div>
        </footer>
    
        <script>
            // スムーズスクロール
            document.querySelectorAll('a[href^="#"]').forEach(anchor => {
                anchor.addEventListener('click', function (e) {
                    e.preventDefault();
                    
                    document.querySelector(this.getAttribute('href')).scrollIntoView({
                        behavior: 'smooth'
                    });
                });
            });
            
            // インタラクティブな要素
            const featureCards = document.querySelectorAll('.feature-card');
            
            featureCards.forEach(card => {
                card.addEventListener('mouseenter', () => {
                    card.style.backgroundColor = '#f9f9f9';
                });
                
                card.addEventListener('mouseleave', () => {
                    card.style.backgroundColor = 'white';
                });
            });
        </script>
    </body>
    </html>
    

    このコードについて説明や分解が必要ですか?

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.