Revision for “HTML Attributes” created on January 29, 2015 @ 09:34:28
|
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: <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. |