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 inline SVG embedded in HTML:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>SVG in HTML Example</title> </head> <body> <h1>Simple SVG Example</h1> <!-- Inline SVG --> <svg width="200" height="200" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" aria-label="A red circle"> <circle cx="100" cy="100" r="80" fill="red" /> </svg> </body> </html>This code renders a red circle with a radius of 80 units centered in a 200x200 SVG canvas. You can modify shapes, colors, sizes easily by editing the SVG element. Let me know if you'd like a more complex SVG example!
- User
just html
- Assistant
Sure! Here's a minimal HTML file with an inline SVG element:
<!DOCTYPE html> <html> <head> <title>SVG Example</title> </head> <body> <svg width="100" height="100"> <rect width="100" height="100" fill="blue" /> </svg> </body> </html>This displays a blue square inside the page. Let me know if you want a different shape or style!
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.