html Copy code
<!-- 1. Strictly HTML code with nested SVG -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>HTML with Nested SVG</title>
</head>
<body>
<div>
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
<rect width="200" height="200" fill="lightblue"/>
<circle cx="100" cy="100" r="80" fill="orange"/>
<text x="100" y="115" font-size="30" font-family="Arial" text-anchor="middle" fill="white">SVG</text>
</svg>
</div>
</body>
</html>
html Copy code
<!-- 2. Just HTML code without any SVG -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>HTML without SVG</title>
</head>
<body>
<div style="width: 200px; height: 200px; background-color: lightblue; display:flex; align-items:center; justify-content:center; font-size:30px; font-family: Arial; color: orange;">
HTML Content Only
</div>
</body>
</html>
svg Copy code
<!-- 3. Just SVG -->
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Just SVG example">
<rect width="200" height="200" fill="lightgreen"/>
<circle cx="100" cy="100" r="90" fill="purple"/>
<text x="100" y="110" font-family="Verdana" font-size="35" fill="white" text-anchor="middle">SVG</text>
</svg>
svg Copy code
<!-- Multiple independent SVGs in varied dimensions, width and height in range up to 10000 -->
<svg width="5000" height="3000" xmlns="http://www.w3.org/2000/svg" style="border:1px solid black;">
<rect width="5000" height="3000" fill="#a1c4fd" />
<circle cx="2500" cy="1500" r="1000" fill="#6574cd" />
</svg>
<svg width="7500" height="2500" xmlns="http://www.w3.org/2000/svg" style="border:1px solid black;">
<rect width="7500" height="2500" fill="#f6d365" />
<ellipse cx="3750" cy="1250" rx="2000" ry="1000" fill="#fda085" />
</svg>
<svg width="10000" height="5000" xmlns="http://www.w3.org/2000/svg" style="border:1px solid black;">
<rect width="10000" height="5000" fill="#ff9a9e"/>
<polygon points="5000,1000 7000,4000 3000,4000" fill="#fad0c4"/>
</svg>
<svg width="6000" height="6000" xmlns="http://www.w3.org/2000/svg" style="border:1px solid black;">
<rect width="6000" height="6000" fill="#a18cd1"/>
<line x1="0" y1="0" x2="6000" y2="6000" stroke="#fbc7a4" stroke-width="300"/>
</svg>
<svg width="9000" height="4000" xmlns="http://www.w3.org/2000/svg" style="border:1px solid black;">
<rect width="9000" height="4000" fill="#667eea"/>
<path d="M 0 4000 Q 4500 0 9000 4000" fill="#764ba2"/>
</svg>
svg Copy code
<!-- Multiple independent micro SVGs in varied dimensions, width and height in range 1-100 -->
<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg" style="border:1px solid black;">
<rect width="20" height="20" fill="red"/>
</svg>
<svg width="35" height="40" xmlns="http://www.w3.org/2000/svg" style="border:1px solid black;">
<circle cx="17.5" cy="20" r="15" fill="blue"/>
</svg>
<svg width="50" height="30" xmlns="http://www.w3.org/2000/svg" style="border:1px solid black;">
<ellipse cx="25" cy="15" rx="20" ry="10" fill="green"/>
</svg>
<svg width="75" height="75" xmlns="http://www.w3.org/2000/svg" style="border:1px solid black;">
<polygon points="37.5,0 75,75 0,75" fill="purple"/>
</svg>
<svg width="100" height="20" xmlns="http://www.w3.org/2000/svg" style="border:1px solid black;">
<line x1="0" y1="10" x2="100" y2="10" stroke="orange" stroke-width="5"/>
</svg>
<svg width="10" height="10" xmlns="http://www.w3.org/2000/svg" style="border:1px solid black;">
<rect width="10" height="10" fill="pink"/>
</svg>
<svg width="15" height="50" xmlns="http://www.w3.org/2000/svg" style="border:1px solid black;">
<rect width="15" height="50" fill="yellow"/>
</svg>
<svg width="40" height="60" xmlns="http://www.w3.org/2000/svg" style="border:1px solid black;">
<circle cx="20" cy="30" r="15" fill="cyan"/>
</svg>