<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1024689869977468433</id><updated>2011-11-27T15:37:18.446-08:00</updated><title type='text'>.DIV</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://divuser.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024689869977468433/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://divuser.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Muzammil</name><uri>http://www.blogger.com/profile/03262716727917990867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1024689869977468433.post-2343877283290858829</id><published>2009-02-10T01:46:00.000-08:00</published><updated>2009-02-10T01:52:32.293-08:00</updated><title type='text'>Differences and default behavior</title><content type='html'>div and span differ from each other in one regard. In standard HTML, a div is a block-level element (and so visually isolates a section of a document on the page, in the same way as a paragraph example) whereas a span is an inline element (for containing a piece of information inline with the surrounding text example). In practice, even this feature can be changed by the use of CSS.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Practical usage:&lt;br /&gt;&lt;/strong&gt;span and div elements are used purely to imply a logical grouping of enclosed elements.&lt;br /&gt;&lt;br /&gt;When they are labeled with class or id attributes, span and div elements can denote types of information otherwise indescribable with HTML. For example,&lt;br /&gt;&lt;div id="byline"&gt;Fred Smith&lt;/div&gt;may be used to indicate the author's name in a document, and &lt;span class="date"&gt;21st Jan 2006&lt;/span&gt; may be used specifically to indicate a date.&lt;br /&gt;&lt;br /&gt;There are three main reasons to use spans and divs with class or id attributes:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[edit&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Styling with CSS&lt;/strong&gt;&lt;br /&gt;&lt;p&gt;Perhaps the most common use of span and div elements in order to apply class or id attributes is when this is done in conjunction with &lt;a title="Cascading Style Sheets" href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets"&gt;Cascading Style Sheets&lt;/a&gt; (CSS) to apply layout, typographic, color and other presentation attributes to the page's content. CSS does not just apply to visual styling: when spoken out loud by a &lt;a title="Voice browser" href="http://en.wikipedia.org/wiki/Voice_browser"&gt;voice browser&lt;/a&gt;, CSS styling can affect speech-rate, stress, richness and even position within a &lt;a class="mw-redirect" title="Stereophonic" href="http://en.wikipedia.org/wiki/Stereophonic"&gt;stereophonic&lt;/a&gt; image.&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1024689869977468433-2343877283290858829?l=divuser.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://divuser.blogspot.com/feeds/2343877283290858829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://divuser.blogspot.com/2009/02/differences-and-default-behavior.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024689869977468433/posts/default/2343877283290858829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024689869977468433/posts/default/2343877283290858829'/><link rel='alternate' type='text/html' href='http://divuser.blogspot.com/2009/02/differences-and-default-behavior.html' title='Differences and default behavior'/><author><name>Muzammil</name><uri>http://www.blogger.com/profile/03262716727917990867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1024689869977468433.post-8120055237290369376</id><published>2009-02-08T23:55:00.001-08:00</published><updated>2009-02-08T23:55:52.826-08:00</updated><title type='text'>Span and div</title><content type='html'>In HTML and XHTML, span and div tags are used to describe content that cannot be properly described by other, more semantic tags. The div tag defines a section within an HTML or XHTML document.&lt;br /&gt;&lt;br /&gt;Proper HTML markup language requires that all elements describe the type of data contained within. For example, in HTML and XHTML, a p (paragraph) element should contain a paragraph of text, and an h1 element should contain the highest-level header of the page. In HTML and XHTML, span and div are the only elements that carry no innate semantic meaning, besides the logical grouping of the enclosed elements.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1024689869977468433-8120055237290369376?l=divuser.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://divuser.blogspot.com/feeds/8120055237290369376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://divuser.blogspot.com/2009/02/span-and-div.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024689869977468433/posts/default/8120055237290369376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024689869977468433/posts/default/8120055237290369376'/><link rel='alternate' type='text/html' href='http://divuser.blogspot.com/2009/02/span-and-div.html' title='Span and div'/><author><name>Muzammil</name><uri>http://www.blogger.com/profile/03262716727917990867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1024689869977468433.post-2394920334706617081</id><published>2009-02-08T07:51:00.000-08:00</published><updated>2009-02-08T08:02:31.760-08:00</updated><title type='text'>DIV Tag</title><content type='html'>Example&lt;br /&gt;A section in a document that will be displayed in green:&lt;br /&gt;&lt;br /&gt;&lt;div style="color:#00FF00"&gt;&lt;br /&gt;  &lt;h3&gt;This is a header&lt;/h3&gt;&lt;br /&gt;  &lt;p&gt;This is a paragraph.&lt;/p&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt; &lt;br /&gt;Definition and Usage&lt;br /&gt;The &lt;div&gt; tag defines a division or a section in an HTML document.&lt;br /&gt;&lt;br /&gt;The &lt;div&gt; tag is often used to group block-elements to format them with styles.&lt;br /&gt;&lt;br /&gt;Tips and Notes&lt;br /&gt;Tip: The div element is very often used with CSS to layout a web page.&lt;br /&gt;&lt;br /&gt;Note: Browsers usually place a line break before and after the div element. &lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1024689869977468433-2394920334706617081?l=divuser.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://divuser.blogspot.com/feeds/2394920334706617081/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://divuser.blogspot.com/2009/02/div-tag.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1024689869977468433/posts/default/2394920334706617081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1024689869977468433/posts/default/2394920334706617081'/><link rel='alternate' type='text/html' href='http://divuser.blogspot.com/2009/02/div-tag.html' title='DIV Tag'/><author><name>Muzammil</name><uri>http://www.blogger.com/profile/03262716727917990867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
