XHTML - How To Write Element Attributes Properly
Interview Question Database For Software Developers
|
|
| How To Write Element Attributes Properly | | How To Write Element Attributes Properly? - XHTML Tutorials - Introduction To Tag and Attribute Syntax | | By: FYIcenter.com | If an attribute is allowed for an XHTML element, you must write
the attribute inside the opening tag of this element. Here are some rules
on writing element attributes:
- An attribute must have a name and a value, separated by the equal sign "=".
- An attribute name must be written in lower case letter.
- An attribute value must be enclosed in a pair of quotes.
- Multiple attributes can be written in any order.
- Some attributes must use predefined values.
Here are some good examples of element attributes:
- <td colspan="2"> - One attributes: "colspan".
- <input type="text" name="Phone"> - Two attributes: "type" and "name".
- <link rel="stylesheet" type="text/css" href="_local.css"/> - Three attributes: "rel", "type" and "href".
| | ID: 1470 | Rank: 1081 | Votes: 0 | Views: 54 | Submitted: 20070512 |
Copyright © 2009 FYIcenter.com
All rights in the contents of this Website are reserved by the individual author.
No part of the contents may be reproduced in any form without author's permission.
|
|
|