How to Use VML on Webpages
This topic describes VML, a feature that is deprecated as of Windows Internet Explorer 9. Webpages and applications that rely on VML should be migrated to SVG or other widely supported standards.
Note As of December 2011, this topic has been archived. As a result, it is no longer actively maintained. For more information, see Archived Content. For information, recommendations, and guidance regarding the current version of Windows Internet Explorer, see Internet Explorer Developer Center.
This document supplements the Vector Markup Language (VML) specification that was submitted to the World Wide Web Consortium (W3C). With this document and the complete VML specification, you should be able to use VML to design webpages. We have assumed that you already have a working knowledge of HTML.
Part I: Basic Topics
- Drawing Basic Shapes
- Using Predefined Shapes
- Coloring Shapes
- Scaling Shapes
- Positioning Shapes
- Grouping Shapes
Part II: Advanced Topics
- Using the Shapetype Element
- Using the Stroke Element
- Using the Fill Element
- Using the Image Element
- Using the Background Element
- Using the Shadow Element
- Using the Path Element
- Using the Textbox Element
- Using Local Coordinate Space
- Using the Formulas Element
- Using the Handles Element
- Using the Textpath Element
Note The samples provided in this reference are designed for Internet Explorer. We have also provided illustrations where possible.
Send comments about this topic to Microsoft
Build date: 2/7/2012
Using the original VML notation rather than its SVG successor in your XML or HTML output provides you with greater backwards compatibility than using the later SVG version of the standard, as SVG is only compatible with a few very recent browser versions. This is also the required notation when embedding vector graphics in Open Office XML (OOXML) documents, such as Word documents and Powerpoint presentations.
Although the VML documentation is currently being maintained by the .NET Framework documentation team, VML predates .NET by about 3 years and is compatible with the now unsupported Internet Explorer 5 products.
- 10/1/2010
- Tony Hallett
- 10/5/2010
- Thomas Lee