Tuesday, March 20, 2012

HTML5 svg: text

HTML5 svg: text
<!doctype html>

<html>
<head>
<meta charset="UTF-8">
<title>Mobile-Web-App: HTML5 svg Text</title>

</head>
<body>
<h1>Mobile-Web-App: HTML5 Scalable Vector Graphics (svg)</h1>

<svg width="600" height="200">
 <rect x="0" y="0" width="600" height="200" stroke="black" stroke-width="1" fill="white" />
 
 <text 
  x="10" y="50" 
  style="font-family: sans-serif"
  font-weight="bold"
  stroke="black"
  stroke-width="2"
  fill="#f00"
  font-size="30px">Mobile-Web-App: HTML5 svg Text</text> 
 
</svg>


</body>
</html>

No comments:

Post a Comment