Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0613· OpenAIAi2 WildChat-4.8M (AI2)

i need to html code about reviews in the website

  1. User

    i need to html code about reviews in the website

  2. Assistant

    Sure! Here's a basic HTML code for displaying reviews on a website:

    <!DOCTYPE html>
    <html>
    <head>
      <title>Reviews</title>
      <style>
        body {
          font-family: Arial, sans-serif;
        }
        
        .review {
          margin-bottom: 20px;
        }
        
        .review .author {
          font-weight: bold;
        }
        
        .review .rating {
          color: #FFC300;
        }
        
        .review .content {
          margin-top: 5px;
        }
      </style>
    </head>
    <body>
      <h1>Customer Reviews</h1>
      
      <div class="review">
        <div class="author">John Doe</div>
        <div class="rating">★★★★★</div>
        <div class="content">
          <p>Great product! I highly recommend it. The customer service was also excellent.</p>
        </div>
      </div>
      
      <div class="review">
        <div class="author">Jane Smith</div>
        <div class="rating">★★★☆☆</div>
        <div class="content">
          <p>Decent product but the delivery was delayed. It took a week longer than expected.</p>
        </div>
      </div>
      
      <!-- Add more reviews as needed -->
      
    </body>
    </html>
    

    You can customize the style of the reviews by modifying the CSS code within the <style> element. Feel free to add more reviews by duplicating the review <div> section and updating the author, rating, and content accordingly.