gpt-4.1-mini-2025-04-14· OpenAI
WildChat-4.8M (AI2)
generate svg in html
- User
generate svg in html
- Assistant
Sure! Here's a simple example of SVG embedded directly in an HTML file:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Simple SVG Example</title> </head> <body> <h1>My SVG Graphic</h1> <svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"> <!-- Draw a red circle --> <circle cx="100" cy="100" r="80" fill="red" /> <!-- Draw a blue rectangle --> <rect x="50" y="50" width="100" height="100" fill="blue" opacity="0.5" /> <!-- Draw some text --> <text x="100" y="110" font-family="Arial" font-size="20" fill="white" text-anchor="middle"> SVG Text </text> </svg> </body> </html>Save this as an
.htmlfile and open in a browser to see a red circle overlapped by a semi-transparent blue square with white text centered. Let me know if you want a different SVG!
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- gpt-4.1-mini-2025-04-14Compare side by side →
- gpt-4.1-mini-2025-04-14Compare side by side →
- gpt-4.1-mini-2025-04-14Compare side by side →
- gpt-4.1-mini-2025-04-14Compare side by side →
- gpt-4.1-mini-2025-04-14Compare side by side →
- gpt-4.1-mini-2025-04-14Compare side by side →
- gpt-4.1-mini-2025-04-14Compare side by side →
- gpt-4.1-mini-2025-04-14Compare side by side →
- gpt-4.1-mini-2025-04-14Compare side by side →
- gpt-4.1-mini-2025-04-14Compare side by side →