gpt-4.1-mini-2025-04-14· openai
WildChat-4.8M
show html and svg in it
- User
show html and svg in it
- Assistant
Certainly! Here's an example of an HTML file that includes SVG graphics inside it:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>HTML with SVG Example</title> <style> body { font-family: Arial, sans-serif; padding: 20px; } svg { border: 1px solid #ccc; margin-top: 20px; display: block; width: 300px; height: 200px; } </style> </head> <body> <h1>Example: SVG Inside HTML</h1> <p>This is an example showing how you can embed SVG graphic inside an HTML document.</p> <svg viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="A blue circle and a red rectangle"> <!-- Blue circle --> <circle cx="50" cy="50" r="40" fill="blue" /> <!-- Red rectangle --> <rect x="110" y="20" width="70" height="60" fill="red" /> <!-- Text label --> <text x="100" y="95" font-family="Arial" font-size="14" fill="black" text-anchor="middle"> SVG Shapes </text> </svg> </body> </html>
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.