IT/html

html5 SVG Logo

조원태 2017. 1. 27. 15:28
반응형

SVG Logo

SVG

Example


<svg height="130" width="500">

  <defs>

    <linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="0%">

      <stop offset="0%" style="stop-color:rgb(255,255,0);stop-opacity:1" />

      <stop offset="100%" style="stop-color:rgb(255,0,0);stop-opacity:1" />

    </linearGradient>

  </defs>

  <ellipse cx="100" cy="70" rx="85" ry="55" fill="url(#grad1)" />

  <text fill="#ffffff" font-size="45" font-family="Verdana" x="50" y="86">SVG</text>

  Sorry, your browser does not support inline SVG.

</svg>




<!DOCTYPE html>

<html>

<body>


<svg height="130" width="500">

  <defs>

    <linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="0%">

      <stop offset="0%"

      style="stop-color:rgb(255,255,0);stop-opacity:1" />

      <stop offset="100%"

      style="stop-color:rgb(255,0,0);stop-opacity:1" />

    </linearGradient>

  </defs>

  <ellipse cx="100" cy="70" rx="85" ry="55" fill="url(#grad1)" />

  <text fill="#ffffff" font-size="45" font-family="Verdana"

  x="50" y="86">SVG</text>

Sorry, your browser does not support inline SVG.

</svg>


</body>

</html>



반응형

'IT > html' 카테고리의 다른 글

HTML Google Maps  (0) 2017.01.27
html5 SVG와 캔버스의 차이점  (0) 2017.01.27
html5 SVG Star  (0) 2017.01.26
html5 SVG Rounded Rectangle  (0) 2017.01.26
html5 SVG Rectangle  (0) 2017.01.26