subject: HTML span and Div [print this page] HTML span and Div HTML span and Div
March 05, 2011 Web Code Master is a free online HTML Tutorial project. Web Code Master is a small team working on this online tutorial and is going to add more topics and technology such as CSS, PHP and SQL to this easy html tutorial.
HTML is a basic web designing tool which helps you to arrange and manage the content at your web pages. We can't imagine designing the web pages without learning Html.
The Web Code Master has illustrated almost every HTML tag like the Html attributes, head, heading, paragraph, span, links, html tables, div, list, form, frames, Html colors, marquee, style, css, meta tag, script etc there in tutorial and demonstrated the results of the example in the same page.
Web Code Master brought the HTML learning in an uncomplicated and effortless way that a new beginner can grab it in few days with effective way of presentation. Web Code Master Team found the HTML learning a bit complex with other tutorials. The simple format of the HTML Tutorial web pages makes a beginner more comfortable with this user friendly tutorial.
HTML span tag is an inline element that differs a bit from Div tag. Div tag is basically a block level element that can hold or contain other elements. Div tag is more frequently used for html page layout now days as it is easy to understand and takes less time to load than table structure.
The SPAN element has common attributes like highlighting text, adding a background image, mouseover etc effects by adding CSS to it. For example you want a text with certain effect like mouse over, you can use span instead of Div.
Span allows nesting likewise the Div but you can put the inline elements in it, whereas the div element can contain anything that is html element. HTML span tag is better to use for short text effect. Perhaps the most common use of span and DIV elements is to carry or attributes in conjunction with CSS to apply layout, typographic, color, and other presentation attributes to parts of the content. CSS does not just apply to visual styling: when spoken out loud by a browser, CSS styling can affect speech-rate, stress, richness and even position within an image.