gpt-4.1-mini-2025-04-14· OpenAI
WildChat-4.8M (AI2)
generate svg in html
- User
generate svg in html
- Assistant
Certainly! Here's a simple example of an SVG embedded directly in HTML:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>SVG Example</title> </head> <body> <h1>Simple SVG in HTML</h1> <svg width="200" height="200" xmlns="http://www.w3.org/2000/svg" style="border: 1px solid black;"> <!-- A red circle --> <circle cx="100" cy="100" r="80" fill="red" /> <!-- A blue rectangle --> <rect x="50" y="50" width="100" height="50" fill="blue" /> <!-- Some text --> <text x="100" y="110" font-family="Arial" font-size="20" fill="white" text-anchor="middle">Hello SVG</text> </svg> </body> </html>You can save this as
example.htmland open it in a browser to see the SVG rendering. Let me know if you'd like a specific shape or pattern!
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.