Skip to content
TheChatArchiveThe Chat Archive
gpt-4.1-mini-2025-04-14· OpenAIAi2 WildChat-4.8M (AI2)

generate svg in html

  1. User

    generate svg in html

  2. Assistant

    Certainly! Here is a simple example of embedding SVG directly in HTML:

    <!DOCTYPE html>
    <html lang="en">
    <head>
      <meta charset="UTF-8" />
      <meta name="viewport" content="width=device-width, initial-scale=1" />
      <title>SVG Example</title>
    </head>
    <body>
      <h1>Simple SVG Example</h1>
      
      <svg width="200" height="200" xmlns="http://www.w3.org/2000/svg" 
           aria-label="A red circle with blue border">
        <!-- A red circle with a blue stroke -->
        <circle cx="100" cy="100" r="80" fill="red" stroke="blue" stroke-width="5" />
      </svg>
      
    </body>
    </html>
    

    You can save this as an .html file and open it in any modern browser to see a red circle with a blue border.
    If you want me to create a more complex SVG or animate it, just ask!

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.