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 HTML with inline SVG 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 Inline SVG Example</title> </head> <body> <h1>Example of HTML with SVG</h1> <p>This is a simple SVG graphic embedded inside HTML:</p> <svg width="200" height="200" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" aria-label="Example circle"> <!-- Draw a red circle --> <circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" /> <!-- Draw some text --> <text x="50" y="55" font-size="15" font-family="Arial" fill="white" text-anchor="middle">Hello SVG</text> </svg> </body> </html>You can save this as an
.htmlfile and open in a browser to see the embedded SVG circle with text inside. - User
just svg
- Assistant
Sure! Here's just an SVG example you can use directly:
<svg width="200" height="200" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" aria-label="Example circle"> <!-- Draw a red circle --> <circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" /> <!-- Draw some text --> <text x="50" y="55" font-size="15" font-family="Arial" fill="white" text-anchor="middle">Hello SVG</text> </svg>You can save this as a
.svgfile or embed it inside HTML directly.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.