Jayneahl

Jayneahl

Monday, July 18, 2011

I learn on July 11-15

This week I learned different types of span inline elemenets.
The <span> tag is used to group inline-elements in a document.
The <span> tag provides no visual change by itself.
The <span> tag provides a way to add a hook to a part of a text or a part of a document.
When the text is hooked in a span element you can add styles to the content, or manipulate the content with for example JavaScript.
In this Web Standards Curriculum article, I am going to explain to you how and when to use the two elements in HTML that are not used to describe the content. The span anddiv elements do not actually confer any meaning to the content they envelop; instead, they are a generic mechanism that allows you to create custom structure or groupings of elements where no other HTML element is really appropriate, and that can be then styled with CSS or manipulated via JavaScript. Although divs don’t add any semantic meaning, they could be considered to represent a structural division of the mark-up, along with the appropriate semantic class or ID name.
They are the “tag of the last resort” and should only be used where no other HTML element fits the bill, because they have no meaning to assistive techologies, search engines, 

No comments:

Post a Comment