Units Attribute Example – HTML Syntax – HTML Units Example

Units Attribute Example – HTML Syntax – HTML Units Example

Purpose: – Illustrates the for the .

You can download an excellent free html editor at nvu. This HTML editor will allow you to easily experiment with these examples. You can view an 8-minute video tutorial that I did at NVU HTML Editor

Function: units=”unitstype” Specify units for height and witdh.

Restrictions: None

View Example In Browser

< !DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>Units Example</title>
</head>
<body>
<a href="http://www.LearnVisualStudio.NET/119.html" target="_blank"><img id="lvs"
 src="http://idealprogrammer.com/wp-photos/LearnVisualStudio.png"
 units="px" height="82" width="290"/></a>
</body>
</html>