Created
August 6, 2021 04:22
-
-
Save thecodemedia/8c8fa7f2ce5678d1846494dae825260b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ru" > | |
<head> | |
<meta charset="UTF-8"> | |
<title>SVG-графика</title> | |
<style type="text/css"> | |
svg{ | |
position:absolute; | |
z-index:-1; | |
display: block;} | |
</style> | |
</head> | |
<body> | |
<svg> | |
<!-- круги --> | |
<circle cx="25" cy="25" r="20" fill="green" stroke-width="5" stroke="rgb(150,110,200)"/> | |
<circle cx="250" cy="32" r="30" fill="yellow" stroke-width="3" stroke="rgb(50,90,150)"/> | |
<!-- линия --> | |
<line x1="50" y1="30" x2="250" y2="0" stroke-width="3" stroke="red"/> | |
<!-- прямоугольник --> | |
<rect width="30" height="20" fill="orange" stroke-width="1" stroke="rgb(0,0,0)"/> | |
<!-- многоугольники --> | |
<polygon points="100,140 250,118 170,60 " fill="blue" stroke-width="1" stroke="rgb(0,0,0)"/> | |
<polygon points="40,100 100,100 100,150 40,150" fill="red" stroke-width="2" stroke="rgb(100,250,110)"/> | |
</svg> | |
<h1>Привет, это журнал Код!</h1> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment