gpt-4.1-mini-2025-04-14· OpenAI
WildChat-4.8M (AI2)
show html and svg in it
- User
show html and svg in it
- Assistant
Sure! Here is an example of an HTML file that includes inline SVG:
<!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> </head> <body> <h1>Example of SVG inside HTML</h1> <!-- Inline SVG --> <svg width="200" height="200" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"> <!-- Circle --> <circle cx="100" cy="100" r="80" fill="lightblue" stroke="blue" stroke-width="4" /> <!-- Text inside the circle --> <text x="100" y="110" font-family="Arial" font-size="24" fill="darkblue" text-anchor="middle"> SVG Circle </text> </svg> </body> </html>You can save the above code to a
.htmlfile (e.g.,index.html) and open it in a web browser to see the SVG graphic rendered inside the HTML page.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.