Sunday, August 22, 2010

Elements and Attributes

<element_name attribute_name="attribute_value">
                Element Content
</element_name>

1) Elements(aka tags): specify the type of content - how the content will be used in a XML document. XHTML defines its own set of valid element_names (e.g. head, body, h1).

2) Attributes: give special properties to each element. Again, XHTML defines its own set of valid attribute_names (e.g. class, style, id).

No comments:

Post a Comment