Html Attributes

Attributes and Values

HTML attributes generally appear as name-value pairs, separated by "=", and are written within the start tag of an element, after the element's name.

Syntax
<tag attribute="value">(content to be modified by the tag)</tag>

For example, to specify the size of an image or graphic on your page, you would use the image element <img /> along with the height and width attributes. "200" and "300" are the values.

<img height="200" width="300" />
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +