html Copy code
<!-- 1. HTML code with nested SVG -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Nested SVG Example</title>
</head>
<body>
<div>
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
<circle cx="100" cy="100" r="80" fill="lightblue"/>
<svg x="50" y="50" width="100" height="100" xmlns="http://www.w3.org/2000/svg">
<rect width="100" height="100" fill="green" />
<circle cx="50" cy="50" r="30" fill="yellow" />
</svg>
</svg>
</div>
</body>
</html>
html Copy code
<!-- 2. Just HTML code without any SVG -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>HTML Only Example</title>
</head>
<body>
<div style="width:200px; height:200px; background-color:lightblue; position: relative;">
<div style="position: absolute; top: 50px; left: 50px; width: 100px; height: 100px; background-color: green;">
<div style="width: 60px; height: 60px; background-color: yellow; border-radius: 50%; margin: 20px auto;"></div>
</div>
</div>
</body>
</html>
xml Copy code
<!-- 3. Just SVG code -->
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
<circle cx="100" cy="100" r="80" fill="lightblue"/>
<svg x="50" y="50" width="100" height="100" xmlns="http://www.w3.org/2000/svg">
<rect width="100" height="100" fill="green" />
<circle cx="50" cy="50" r="30" fill="yellow" />
</svg>
</svg>
xml Copy code
<!-- Multiple independent SVGs with large and varied dimensions, each in one code block: -->
<svg width="5000" height="3000" xmlns="http://www.w3.org/2000/svg">
<rect width="5000" height="3000" fill="#f0f0f0"/>
<circle cx="2500" cy="1500" r="1000" fill="red" opacity="0.5"/>
</svg>
<svg width="8000" height="4000" xmlns="http://www.w3.org/2000/svg">
<rect width="8000" height="4000" fill="black"/>
<rect x="2000" y="1000" width="4000" height="2000" fill="orange" />
</svg>
<svg width="10000" height="1000" xmlns="http://www.w3.org/2000/svg">
<rect width="10000" height="1000" fill="lightgreen"/>
<ellipse cx="5000" cy="500" rx="3000" ry="400" fill="purple" />
</svg>
<svg width="7000" height="7000" xmlns="http://www.w3.org/2000/svg">
<rect width="7000" height="7000" fill="white"/>
<polygon points="3500,500 6000,6500 1000,6500" fill="blue"/>
</svg>
xml Copy code
<!-- Multiple independent micro SVGs with varied dimensions from 1 to 100: -->
<svg width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<rect width="10" height="10" fill="red"/>
</svg>
<svg width="25" height="25" xmlns="http://www.w3.org/2000/svg">
<circle cx="12.5" cy="12.5" r="10" fill="blue" />
</svg>
<svg width="50" height="70" xmlns="http://www.w3.org/2000/svg">
<rect x="0" y="20" width="50" height="30" fill="green" />
</svg>
<svg width="100" height="15" xmlns="http://www.w3.org/2000/svg">
<line x1="0" y1="7.5" x2="100" y2="7.5" stroke="black" stroke-width="3" />
</svg>
<svg width="75" height="75" xmlns="http://www.w3.org/2000/svg">
<polygon points="37.5,0 75,75 0,75" fill="orange"/>
</svg>