Skip to content
TheChatArchiveThe Chat Archive
Metallama-4-maverick-03-26-experimental· MetaHugging Face LMArena Human Preference 140K

<tr> <td data-label="No.">1</td> <td data-label="Name Of Product">Clobetasol 0.5%</td>…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Geminigemini-2.5-pro’s answer.
  1. User
  2. Meta Assistant

    You've got a snippet of HTML code for a table row (<tr>) with a "WhatsApp Inquiry" button!

    Here's the code again, formatted for readability, with explanations:

    <!-- Table Row (1st row in this case) -->
    <tr>
      <!-- Column 1: Row Number -->
      <td data-label="No.">1</td>
      
      <!-- Column 2: Product Name -->
      <td data-label="Name Of Product">Clobetasol 0.5%</td>
      
      <!-- Column 3: WhatsApp Inquiry Button -->
      <td>
        <!-- Anchor tag (<a>) for the WhatsApp link -->
        <a 
          href="https://wa.me/919723774447?text=Hello%2C%20I%20am%20interested%20in%3A%0A%0AProduct%3A%20Clobetasol%200.5%%0A" 
          class="whatsapp-btn" 
          target="_blank"
        >
          <!-- WhatsApp icon (using Font Awesome) -->
          <i class="fab fa-whatsapp"></i>
          Inquiry <!-- Button text -->
        </a>
      </td>
    </tr>
    

    Breakdown:

    1. data-label attribute: This is used for responsive table design. When the screen size is small, the table columns might collapse, and this attribute's value is displayed as a label before the cell content. Handy for mobile views!

    2. WhatsApp Link (href attribute):

      • https://wa.me/ is the base URL for WhatsApp links.
      • 919723774447 is the phone number (in international format, without + or 00).
        • 91 is the country code for India.
        • The rest is the local phone number.
      • ?text=... is the pre-filled message. URL encoding is used (%2C = comma, %20 = space, %0A = newline).
        • The message is: Hello, I am interested in:↵↵Product: Clobetasol 0.5% (↵ represents a newline).
    3. target="_blank": Opens the WhatsApp link in a new tab/window, so users don't leave your site.

    4. class="whatsapp-btn": This class is likely used in CSS to style the button (e.g., green background, rounded corners). Example:

      .whatsapp-btn {
        background-color: #25D366; /* WhatsApp green */
        color: white;
        padding: 8px 16px;
        text-decoration: none;
        border-radius: 5px;
      }
      .whatsapp-btn:hover {
        background-color: #1DA335;
      }
      
    5. Font Awesome Icon (<i class="fab fa-whatsapp"></i>): Displays the WhatsApp logo. Make sure you have Font Awesome included in your HTML (<head> section):

      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
      

    Tips for reuse:

    • To change the product name, update the text in:

      • <td data-label="Name Of Product">Clobetasol 0.5%</td>
      • And the href link: Product%3A%20Clobetasol%200.5% (URL-encoded part).
    • To change the phone number, update 919723774447 in the href link.

    • Dynamic generation: If you're using a backend (PHP, Python, etc.), you can replace hardcoded values with variables. Example (PHP):

      $products = [
        ['id' => 1, 'name' => 'Clobetasol 0.5%'],
        // More products...
      ];
      $phone = '919723774447';
      
      foreach ($products as $product) {
        $encodedMsg = urlencode("Hello, I am interested in:\n\nProduct: {$product['name']}");
        echo "<tr>
                <td data-label='No.'>{$product['id']}</td>
                <td data-label='Name Of Product'>{$product['name']}</td>
                <td>
                  <a href='https://wa.me/$phone?text=$encodedMsg' class='whatsapp-btn' target='_blank'>
                    <i class='fab fa-whatsapp'></i> Inquiry
                  </a>
                </td>
              </tr>";
      }
      

    Now you've got the power to replicate this WhatsApp Inquiry button for any product! 📱💻

    Example use case: Just copy the HTML snippet and:

    1. Paste it inside a <tbody> of your <table>.
    2. Adjust the product name and (if needed) the phone number.
    3. Ensure Font Awesome is linked for the WhatsApp icon.

    Happy coding! 👍

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