
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
Working with tag in HTML5
You can try to run the following code to learn how to work with the <polygon> tag in HTML5:
<html> <head> <style> #svgelem{ position: relative; left: 50%; -webkit-transform: translateX(-40%); -ms-transform: translateX(-40%); transform: translateX(-40%); } </style> <title>SVG</title> <meta charset="utf-8" /> </head> <body> <h2 align="center">HTML5 SVG Star</h2> <svg id="svgelem" height="200" xmlns="http://www.w3.org/2000/svg"> <polygon points="100,10 40,180 190,60 10,60 160,180" fill="red"/> </svg> </body> </html>
- Related Articles
- HTML5 tag not working in Android Webview
- HTML5 tag
- Detect compatibility of the new HTML5 tag with jQuery.
- Why big tag is not in HTML5 while small tag exists?
- Play local (hard-drive) video file with HTML5 video tag?
- Why to use canvas tag in HTML5?
- canvas.style.display = “block” not working in HTML5
- HTML5 video not working with jquery bxSlider plugin on iPad
- HTML5 Server-Sent Events working
- HTML5 tag on Android for PhoneGap application
- Is it possible to style HTML5 audio tag?
- How to define media type of style tag in HTML5?
- The:last-child selector not working as expected in HTML5
- Why formaction attribute is not working outside of tag?
- What HTML5 tag should be used for filtering search results.

Advertisements