HTML Attributes

Home » HTML Attributes

Revision for “HTML Attributes” created on January 29, 2015 @ 09:34:28

TitleContentExcerpt
HTML Attributes
An attribute defines a property for an <a title="HTML Element" href="http://code.emrysproductions.com/wiki/html-element/">element</a>, consists of an attribute/value pair, and appears within the element’s start tag.  An element’s start <a title="Tag" href="http://code.emrysproductions.com/wiki/tag/">tag </a>may contain any number of space separated attribute/value pairs.  Attributes can be:

When you use your tags you should do so in this order:
<blockquote>&lt;tag attribute="value"&gt;(content to be modified by the tag)&lt;/tag&gt;</blockquote>
like so:

<iframe src="http://jsfiddle.net/mapster86/ef87ezmf/embedded/html,result" width="100%" height="150" frameborder="0" allowfullscreen="allowfullscreen"></iframe>

As you can see in the example the attribute is in orange and the value is in green.

The most popular misuse of the term “tag” is referring to alt attributes as “alt tags”. There is no such thing in HTML. Alt is an attribute, not a tag.



Old New Date Created Author Actions
January 29, 2015 @ 09:34:28 Mr H
January 29, 2015 @ 09:31:58 Mr H
January 29, 2015 @ 09:31:50 [Autosave] Mr H
January 29, 2015 @ 09:30:45 Mr H
January 29, 2015 @ 09:29:51 Mr H
January 29, 2015 @ 09:26:18 Mr H
January 29, 2015 @ 09:20:27 Mr H