<?php
// Enhanced security headers
header('Strict-Transport-Security: max-age=31536000; includeSubDomains');

$page_title = "FAQ | UK Data Services - Web Scraping & Data Help";
$page_description = "Get answers about our web scraping, data extraction, and BI services. Pricing, security, turnaround times, and expert guidance for UK businesses.";
$canonical_url = "https://ukdataservices.co.uk/faq";

// Breadcrumb navigation
$breadcrumbs = [
    ['url' => '/', 'label' => 'Home'],
    ['url' => '', 'label' => 'FAQ']
];
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo htmlspecialchars($page_title); ?></title>
    <meta name="description" content="<?php echo htmlspecialchars($page_description); ?>">
    <meta name="keywords" content="web scraping FAQ, data extraction questions, business intelligence help, UK data services support">
    <meta name="author" content="UK Data Services">
    <meta name="robots" content="index, follow">
    <link rel="canonical" href="<?php echo htmlspecialchars($canonical_url); ?>">

    <!-- Open Graph / Social Media -->
    <meta property="og:type" content="website">
    <meta property="og:url" content="<?php echo htmlspecialchars($canonical_url); ?>">
    <meta property="og:title" content="<?php echo htmlspecialchars($page_title); ?>">
    <meta property="og:description" content="<?php echo htmlspecialchars($page_description); ?>">
    <meta property="og:image" content="https://ukdataservices.co.uk/assets/images/ukds-main-logo.png">
    <meta property="og:locale" content="en_GB">

    <!-- Twitter Card -->
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:url" content="<?php echo htmlspecialchars($canonical_url); ?>">
    <meta name="twitter:title" content="<?php echo htmlspecialchars($page_title); ?>">
    <meta name="twitter:description" content="<?php echo htmlspecialchars($page_description); ?>">
    <meta name="twitter:image" content="https://ukdataservices.co.uk/assets/images/ukds-main-logo.png">

    <!-- Favicon -->
    <link rel="icon" type="image/svg+xml" href="assets/images/favicon.svg">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Roboto+Slab:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Lato:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="assets/css/main.css?v=20260222">
    
    <!-- Comprehensive FAQ Schema for Featured Snippets -->
    <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "FAQPage",
        "@id": "https://ukdataservices.co.uk/faq#faqpage",
        "name": "UK Data Services FAQ - Web Scraping & Data Analytics",
        "description": "Comprehensive answers to frequently asked questions about web scraping, data extraction, pricing, legal compliance, and our services.",
        "mainEntity": [
            {
                "@type": "Question",
                "name": "What is web scraping and how can it benefit my business?",
                "acceptedAnswer": {
                    "@type": "Answer",
                    "text": "Web scraping is the automated process of extracting data from websites and converting it into structured, usable formats. It benefits businesses by providing competitive intelligence, automating data collection, enabling real-time price monitoring, supporting business intelligence, and generating leads."
                }
            },
            {
                "@type": "Question",
                "name": "What types of data can you extract?",
                "acceptedAnswer": {
                    "@type": "Answer",
                    "text": "We can extract virtually any publicly available data including product information, prices, contact details, financial data, property listings, social media content, news articles, reviews, and job postings."
                }
            },
            {
                "@type": "Question",
                "name": "How do you ensure data accuracy?",
                "acceptedAnswer": {
                    "@type": "Answer",
                    "text": "We maintain a 99.8% accuracy rate through advanced data validation algorithms, multi-layer verification processes, regular monitoring, human review of complex patterns, and comprehensive testing before delivery."
                }
            },
            {
                "@type": "Question",
                "name": "Is web scraping legal in the UK?",
                "acceptedAnswer": {
                    "@type": "Answer",
                    "text": "Yes, web scraping is legal in the UK when conducted properly. We ensure compliance with UK Data Protection Act 2018, GDPR, website terms of service, copyright laws, and industry best practices."
                }
            },
            {
                "@type": "Question",
                "name": "How do you handle GDPR compliance?",
                "acceptedAnswer": {
                    "@type": "Answer",
                    "text": "GDPR compliance is central to our operations. We only collect personal data when legally justified, follow GDPR principles, implement robust security measures, maintain clear retention policies, and respect data subject rights."
                }
            },
            {
                "@type": "Question",
                "name": "What data formats do you provide?",
                "acceptedAnswer": {
                    "@type": "Answer",
                    "text": "We deliver data in Excel (XLSX/XLS), CSV, JSON, XML, SQL database dumps, and custom formats. We also offer real-time data feeds and API access for ongoing projects."
                }
            },
            {
                "@type": "Question",
                "name": "How much do your services cost?",
                "acceptedAnswer": {
                    "@type": "Answer",
                    "text": "Pricing varies by complexity: Simple extraction £500-£2,000, Medium projects £2,000-£10,000, Enterprise solutions £10,000+. Monthly retainers are available for ongoing services."
                }
            },
            {
                "@type": "Question",
                "name": "How long does a typical project take?",
                "acceptedAnswer": {
                    "@type": "Answer",
                    "text": "Project timelines depend on complexity: Simple extraction 1-3 days, Medium projects 1-2 weeks, Complex solutions 2-6 weeks, Enterprise implementations 6+ weeks."
                }
            },
            {
                "@type": "Question",
                "name": "Do you offer ongoing data collection services?",
                "acceptedAnswer": {
                    "@type": "Answer",
                    "text": "Yes, we provide daily, weekly, or monthly data updates, real-time monitoring and alerts, automated report generation, API access, and flexible retainer agreements."
                }
            },
            {
                "@type": "Question",
                "name": "How do I start a project with UK Data Services?",
                "acceptedAnswer": {
                    "@type": "Answer",
                    "text": "Starting is simple: 1) Contact us via phone, email, or quote form, 2) Free consultation to understand requirements, 3) Detailed proposal with scope and pricing, 4) Agreement and project kick-off, 5) Delivery according to timeline."
                }
            }
        ]
    }
    </script>
    
    <!-- HowTo Schema for Getting Started -->
    <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "HowTo",
        "name": "How to Start a Web Scraping Project with UK Data Services",
        "description": "Step-by-step guide to starting your data extraction project",
        "totalTime": "PT1H",
        "estimatedCost": {
            "@type": "MonetaryAmount",
            "currency": "GBP",
            "value": "500"
        },
        "supply": [
            {
                "@type": "HowToSupply",
                "name": "Project Requirements"
            },
            {
                "@type": "HowToSupply",
                "name": "Target Websites"
            },
            {
                "@type": "HowToSupply",
                "name": "Data Specifications"
            }
        ],
        "step": [
            {
                "@type": "HowToStep",
                "name": "Initial Contact",
                "text": "Contact UK Data Services via phone, email, or online quote form",
                "url": "https://ukdataservices.co.uk/quote.php"
            },
            {
                "@type": "HowToStep",
                "name": "Requirements Analysis",
                "text": "Free consultation to understand your data needs and project scope"
            },
            {
                "@type": "HowToStep",
                "name": "Proposal Review",
                "text": "Receive detailed proposal with timeline, pricing, and deliverables"
            },
            {
                "@type": "HowToStep",
                "name": "Project Execution",
                "text": "Project kick-off and data extraction according to agreed specifications"
            },
            {
                "@type": "HowToStep",
                "name": "Delivery & Support",
                "text": "Secure data delivery with ongoing support and integration assistance"
            }
        ]
    }
    </script>
    
    <style>
        .faq-hero {
            padding: 120px 0 60px;
            background: linear-gradient(135deg, #252d3b 0%, #144784 100%);
            text-align: center;
            color: white;
        }
        
        .faq-content {
            max-width: 900px;
            margin: 0 auto;
            padding: 60px 20px;
        }
        
        .faq-category {
            margin-bottom: 50px;
        }
        
        .faq-category h2 {
            color: #144784;
            margin-bottom: 30px;
            font-size: 1.8rem;
            border-bottom: 3px solid #179e83;
            padding-bottom: 10px;
        }
        
        .faq-item {
            background: white;
            border-radius: 12px;
            margin-bottom: 20px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            overflow: hidden;
        }
        
        .faq-question {
            background: #f8f9fa;
            padding: 20px;
            cursor: pointer;
            border: none;
            width: 100%;
            text-align: left;
            font-size: 1.1rem;
            font-weight: 600;
            color: #144784;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
        }
        
        .faq-question:hover {
            background: #e9ecef;
        }
        
        .faq-question.active {
            background: #179e83;
            color: white;
        }
        
        .faq-icon {
            font-size: 1.2rem;
            transition: transform 0.3s ease;
        }
        
        .faq-question.active .faq-icon {
            transform: rotate(180deg);
        }
        
        .faq-answer {
            padding: 0 20px;
            max-height: 0;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .faq-answer.active {
            padding: 20px;
            max-height: 1000px;
        }
        
        .faq-answer p {
            margin-bottom: 15px;
            line-height: 1.6;
            color: #444;
        }
        
        .faq-answer ul {
            margin-left: 20px;
            margin-bottom: 15px;
        }
        
        .faq-answer li {
            margin-bottom: 8px;
            color: #555;
        }
        
        .contact-cta {
            background: linear-gradient(135deg, #179e83 0%, #144784 100%);
            color: white;
            padding: 40px;
            border-radius: 12px;
            text-align: center;
            margin-top: 60px;
        }
        
        .contact-cta h3 {
            color: white;
            margin-bottom: 15px;
        }
    </style>
    <?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/breadcrumb-schema.php'); ?>
</head>
<body>
    <!-- Navigation -->
    <?php include($_SERVER["DOCUMENT_ROOT"] . "/includes/nav.php"); ?>

    <!-- Hero Section -->
    <section class="faq-hero">
        <div class="container">
            <h1>Frequently Asked Questions</h1>
            <p>Expert answers to common questions about our data services</p>
        </div>
    </section>

    <main class="faq-content">
        <!-- General Services -->
        <div class="faq-category">
            <h2>General Services</h2>
            
            <div class="faq-item">
                <button class="faq-question">
                    What is web scraping and how can it benefit my business?
                    <span class="faq-icon">▼</span>
                </button>
                <div class="faq-answer">
                    <p>Web scraping is the automated process of extracting data from websites and converting it into structured, usable formats. It can benefit your business by:</p>
                    <ul>
                        <li>Providing competitive intelligence and market analysis</li>
                        <li>Automating data collection to save time and resources</li>
                        <li>Enabling real-time price monitoring and dynamic pricing</li>
                        <li>Supporting business intelligence and strategic decision-making</li>
                        <li>Generating leads and building databases</li>
                    </ul>
                </div>
            </div>

            <div class="faq-item">
                <button class="faq-question">
                    What types of data can you extract?
                    <span class="faq-icon">▼</span>
                </button>
                <div class="faq-answer">
                    <p>We can extract virtually any type of publicly available data, including:</p>
                    <ul>
                        <li>Product information, prices, and specifications</li>
                        <li>Contact details and business information</li>
                        <li>Financial data and market information</li>
                        <li>Property listings and real estate data</li>
                        <li>Social media posts and engagement metrics</li>
                        <li>News articles and press releases</li>
                        <li>Reviews and ratings</li>
                        <li>Job postings and recruitment data</li>
                    </ul>
                </div>
            </div>

            <div class="faq-item">
                <button class="faq-question">
                    How do you ensure data accuracy?
                    <span class="faq-icon">▼</span>
                </button>
                <div class="faq-answer">
                    <p>We maintain a 99.8% accuracy rate through multiple quality assurance measures:</p>
                    <ul>
                        <li>Advanced data validation algorithms</li>
                        <li>Multi-layer verification processes</li>
                        <li>Regular monitoring and quality checks</li>
                        <li>Human review of complex data patterns</li>
                        <li>Comprehensive testing before delivery</li>
                        <li>Client feedback integration and continuous improvement</li>
                    </ul>
                </div>
            </div>
        </div>

        <!-- Legal and Compliance -->
        <div class="faq-category">
            <h2>Legal and Compliance</h2>
            
            <div class="faq-item">
                <button class="faq-question">
                    Is web scraping legal in the UK?
                    <span class="faq-icon">▼</span>
                </button>
                <div class="faq-answer">
                    <p>Yes, web scraping is legal in the UK when conducted properly. We ensure all our activities comply with:</p>
                    <ul>
                        <li>UK Data Protection Act 2018 and GDPR</li>
                        <li>Website terms of service and robots.txt files</li>
                        <li>Copyright and intellectual property laws</li>
                        <li>Computer Misuse Act 1990</li>
                        <li>Industry best practices and ethical guidelines</li>
                    </ul>
                    <p>We conduct thorough legal assessments for each project to ensure full compliance.</p>
                </div>
            </div>

            <div class="faq-item">
                <button class="faq-question">
                    How do you handle GDPR compliance?
                    <span class="faq-icon">▼</span>
                </button>
                <div class="faq-answer">
                    <p>GDPR compliance is central to our operations:</p>
                    <ul>
                        <li>We only collect personal data when legally justified</li>
                        <li>All data processing follows GDPR principles</li>
                        <li>Robust security measures protect collected data</li>
                        <li>Clear data retention and deletion policies</li>
                        <li>Full transparency about data usage</li>
                        <li>Data subject rights are fully respected</li>
                    </ul>
                    <p>Visit our <a href="gdpr-compliance">GDPR Compliance</a> page for detailed information.</p>
                </div>
            </div>

            <div class="faq-item">
                <button class="faq-question">
                    What if a website's terms prohibit scraping?
                    <span class="faq-icon">▼</span>
                </button>
                <div class="faq-answer">
                    <p>We respect website terms of service and offer alternative solutions:</p>
                    <ul>
                        <li>API integration where available</li>
                        <li>Manual data collection methods</li>
                        <li>Partnership and licensing arrangements</li>
                        <li>Alternative data sources</li>
                        <li>Custom solutions that respect site terms</li>
                    </ul>
                    <p>We always prioritise legal and ethical data collection methods.</p>
                </div>
            </div>
        </div>

        <!-- Technical Questions -->
        <div class="faq-category">
            <h2>Technical Questions</h2>
            
            <div class="faq-item">
                <button class="faq-question">
                    What data formats do you provide?
                    <span class="faq-icon">▼</span>
                </button>
                <div class="faq-answer">
                    <p>We deliver data in various formats to suit your needs:</p>
                    <ul>
                        <li>Excel (XLSX/XLS) for business analysis</li>
                        <li>CSV for database imports</li>
                        <li>JSON for API integration</li>
                        <li>XML for structured data exchange</li>
                        <li>SQL database dumps</li>
                        <li>Custom formats as required</li>
                    </ul>
                    <p>We also offer real-time data feeds and API access for ongoing projects.</p>
                </div>
            </div>

            <div class="faq-item">
                <button class="faq-question">
                    Can you handle large-scale data extraction?
                    <span class="faq-icon">▼</span>
                </button>
                <div class="faq-answer">
                    <p>Yes, our enterprise infrastructure can handle projects of any scale:</p>
                    <ul>
                        <li>Millions of records processed daily</li>
                        <li>Cloud-native scalable architecture</li>
                        <li>Distributed processing systems</li>
                        <li>High-performance computing resources</li>
                        <li>Automated monitoring and quality control</li>
                        <li>Redundant systems for reliability</li>
                    </ul>
                </div>
            </div>

            <div class="faq-item">
                <button class="faq-question">
                    How do you handle dynamic websites and JavaScript?
                    <span class="faq-icon">▼</span>
                </button>
                <div class="faq-answer">
                    <p>We use advanced technologies to handle modern websites:</p>
                    <ul>
                        <li>Headless browsers (Chrome, Firefox)</li>
                        <li>Selenium and Playwright automation</li>
                        <li>JavaScript rendering and execution</li>
                        <li>AJAX request interception</li>
                        <li>Single Page Application (SPA) handling</li>
                        <li>API reverse engineering</li>
                    </ul>
                </div>
            </div>
        </div>

        <!-- Pricing and Timeline -->
        <div class="faq-category">
            <h2>Pricing and Timeline</h2>
            
            <div class="faq-item">
                <button class="faq-question">
                    How much do your services cost?
                    <span class="faq-icon">▼</span>
                </button>
                <div class="faq-answer">
                    <p>Pricing varies based on project complexity and requirements:</p>
                    <ul>
                        <li><strong>Simple extraction:</strong> £500 - £2,000</li>
                        <li><strong>Medium complexity:</strong> £2,000 - £10,000</li>
                        <li><strong>Enterprise projects:</strong> £10,000+</li>
                        <li><strong>Ongoing services:</strong> Monthly retainers available</li>
                    </ul>
                    <p>Factors affecting cost include data volume, website complexity, delivery timeline, and custom requirements. Contact us for a detailed quote.</p>
                </div>
            </div>

            <div class="faq-item">
                <button class="faq-question">
                    How long does a typical project take?
                    <span class="faq-icon">▼</span>
                </button>
                <div class="faq-answer">
                    <p>Project timelines depend on scope and complexity:</p>
                    <ul>
                        <li><strong>Simple extraction:</strong> 1-3 days</li>
                        <li><strong>Medium projects:</strong> 1-2 weeks</li>
                        <li><strong>Complex solutions:</strong> 2-6 weeks</li>
                        <li><strong>Enterprise implementations:</strong> 6+ weeks</li>
                    </ul>
                    <p>We provide detailed timelines during the project planning phase and offer rush services when needed.</p>
                </div>
            </div>

            <div class="faq-item">
                <button class="faq-question">
                    Do you offer ongoing data collection services?
                    <span class="faq-icon">▼</span>
                </button>
                <div class="faq-answer">
                    <p>Yes, we provide various ongoing service options:</p>
                    <ul>
                        <li>Daily, weekly, or monthly data updates</li>
                        <li>Real-time monitoring and alerts</li>
                        <li>Automated report generation</li>
                        <li>API access for instant data retrieval</li>
                        <li>Custom scheduling based on your needs</li>
                        <li>Flexible retainer agreements</li>
                    </ul>
                </div>
            </div>
        </div>

        <!-- Getting Started -->
        <div class="faq-category">
            <h2>Getting Started</h2>
            
            <div class="faq-item">
                <button class="faq-question">
                    How do I start a project with UK Data Services?
                    <span class="faq-icon">▼</span>
                </button>
                <div class="faq-answer">
                    <p>Starting a project is simple:</p>
                    <ul>
                        <li><strong>1. Contact us</strong> via phone, email, or quote form</li>
                        <li><strong>2. Consultation</strong> to understand your requirements</li>
                        <li><strong>3. Proposal</strong> with detailed scope and pricing</li>
                        <li><strong>4. Agreement</strong> and project kick-off</li>
                        <li><strong>5. Delivery</strong> according to agreed timeline</li>
                    </ul>
                    <p>We typically respond to enquiries within 2 hours during business hours.</p>
                </div>
            </div>

            <div class="faq-item">
                <button class="faq-question">
                    What information do you need to provide a quote?
                    <span class="faq-icon">▼</span>
                </button>
                <div class="faq-answer">
                    <p>To provide an accurate quote, we need:</p>
                    <ul>
                        <li>Target websites or data sources</li>
                        <li>Specific data fields required</li>
                        <li>Expected data volume</li>
                        <li>Preferred delivery format</li>
                        <li>Timeline requirements</li>
                        <li>Any specific constraints or requirements</li>
                    </ul>
                    <p>Don't worry if you're unsure about technical details - we'll help clarify requirements during our consultation.</p>
                </div>
            </div>

            <div class="faq-item">
                <button class="faq-question">
                    Do you provide training or support?
                    <span class="faq-icon">▼</span>
                </button>
                <div class="faq-answer">
                    <p>Yes, we offer comprehensive support:</p>
                    <ul>
                        <li>Data interpretation and analysis guidance</li>
                        <li>Integration support for your systems</li>
                        <li>Training on using extracted data effectively</li>
                        <li>Ongoing technical support</li>
                        <li>Documentation and best practices</li>
                        <li>Regular check-ins for ongoing projects</li>
                    </ul>
                </div>
            </div>
        </div>

        <!-- Call to Action -->
        <div class="contact-cta">
            <h3>Still Have Questions?</h3>
            <p>Our data experts are ready to help. Get in touch for personalised advice on your data project.</p>
            <div style="margin-top: 30px;">
                <a href="quote" class="btn btn-secondary" style="margin-right: 20px;">Request Quote</a>
                <a href="/#contact" class="btn btn-secondary">Contact Us</a>
            </div>
        </div>
    </main>

    <!-- Footer -->
    <footer class="footer">
        <div class="container">
            <div class="footer-content">
                <div class="footer-section">
                    <div class="footer-logo">
                        <img src="assets/images/logo-white.svg" alt="UK Data Services">
                    </div>
                    <p>Enterprise data intelligence solutions for modern British business. Transform your operations with accurate, actionable insights and regulatory-compliant data services.</p>
                </div>
                
                <div class="footer-section">
                    <h3>Our Services</h3>
                    <ul>
                        <li><a href="/services/competitive-intelligence">Competitive Intelligence</a></li>
                        <li><a href="/services/price-monitoring">Price Monitoring</a></li>
                        <li><a href="/services/data-cleaning">Data Cleaning</a></li>
                        <li><a href="/#services">All Services</a></li>
                    </ul>
                </div>

                <div class="footer-section">
                    <h3>Locations</h3>
                    <ul>
                        <li><a href="/locations/london">London</a></li>
                        <li><a href="/locations/manchester">Manchester</a></li>
                        <li><a href="/locations/birmingham">Birmingham</a></li>
                    </ul>
                </div>

                <div class="footer-section">
                    <h3>Resources & Insights</h3>
                    <ul>
                        <li><a href="/blog/">Data Intelligence Blog</a></li>
                        <li><a href="/case-studies/">Case Studies</a></li>
                        <li><a href="/about">About UK Data Services</a></li>
                        <li><a href="/project-types">Project Types</a></li>
                        <li><a href="/faq">FAQ</a></li>
                        <li><a href="/quote">Request Consultation</a></li>
                    </ul>
                </div>

                <div class="footer-section">
                    <h3>Legal</h3>
                    <ul>
                        <li><a href="/privacy-policy">Privacy Policy</a></li>
                        <li><a href="/terms-of-service">Terms of Service</a></li>
                        <li><a href="/cookie-policy">Cookie Policy</a></li>
                        <li><a href="/gdpr-compliance">GDPR Compliance</a></li>
                    </ul>
                </div>
            </div>
            
            <div class="footer-bottom">
                <p>&copy; <?php echo date('Y'); ?> UK Data Services. All rights reserved.</p>
                <div class="social-links">
                    <a href="https://linkedin.com/company/uk-data-services" aria-label="LinkedIn" target="_blank" rel="noopener noreferrer"><img src="assets/images/icon-linkedin.svg" alt="LinkedIn"></a>
                    <a href="https://twitter.com/ukdataservices" aria-label="Twitter" target="_blank" rel="noopener noreferrer"><img src="assets/images/icon-twitter.svg" alt="Twitter"></a>
                </div>
            </div>
        </div>
    </footer>

    <!-- Scripts -->
    <script src="assets/js/main.js"></script>
    <script>
        // FAQ Accordion functionality
        document.addEventListener('DOMContentLoaded', function() {
            const faqQuestions = document.querySelectorAll('.faq-question');
            
            faqQuestions.forEach(question => {
                question.addEventListener('click', function() {
                    const answer = this.nextElementSibling;
                    const isActive = this.classList.contains('active');
                    
                    // Close all other FAQ items
                    faqQuestions.forEach(q => {
                        q.classList.remove('active');
                        q.nextElementSibling.classList.remove('active');
                    });
                    
                    // Toggle current item
                    if (!isActive) {
                        this.classList.add('active');
                        answer.classList.add('active');
                    }
                });
            });
        });
    </script>
</body>
</html>