<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged span</title>
<link>https://www.question2answer.org/qa/tag/span</link>
<description>Powered by Question2Answer</description>
<item>
<title>Why not replace all SPAN tags with DIV tags?</title>
<link>https://www.question2answer.org/qa/18202/why-not-replace-all-span-tags-with-div-tags</link>
<description>

&lt;p&gt;
	Mainly because of html validation.&lt;/p&gt;


&lt;p&gt;
	I got many validation errors, see &lt;a rel=&quot;nofollow&quot; href=&quot;http://www.gute-mathe-fragen.de/2942/strahlensatze-losen-von-x-15-x-1-x-9&quot;&gt;example&lt;/a&gt; using &lt;em&gt;tidy html&lt;/em&gt; mostly:&lt;/p&gt;


&lt;p&gt;
	line 428 column 13 - Warning: &lt;strong&gt;missing &amp;lt;/span&amp;gt; before &amp;lt;div&amp;gt;&lt;/strong&gt;
&lt;br&gt;
	
&lt;br&gt;
	line 429 column 60 - Warning: &lt;strong&gt;inserting implicit &amp;lt;span&amp;gt;&lt;/strong&gt;
&lt;br&gt;
	
&lt;br&gt;
	line 430 column 13 - Warning: &lt;strong&gt;discarding unexpected &amp;lt;/span&amp;gt;&lt;/strong&gt;
&lt;br&gt;
	
&lt;br&gt;
	line 541 column 125 - Warning: &lt;strong&gt;trimming empty &amp;lt;span&amp;gt;&lt;/strong&gt;
&lt;br&gt;
	
&lt;br&gt;
	line 389 column 11 - Warning: &lt;strong&gt;&amp;lt;a&amp;gt; cannot copy name attribute to id&lt;/strong&gt;
&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	Using DIV instead of SPAN would solve those issues. So what is the reason not to use div?&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	Related question: &lt;a rel=&quot;nofollow&quot; href=&quot;http://question2answer.org/qa/17522/why-is-q2a-using-the-span-tag-instead-of-the-div-tag&quot;&gt;Why is q2a using the span-tag instead of the div-tag?&lt;/a&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/18202/why-not-replace-all-span-tags-with-div-tags</guid>
<pubDate>Fri, 05 Oct 2012 07:40:05 +0000</pubDate>
</item>
<item>
<title>Why is q2a using the span-tag instead of the div-tag?</title>
<link>https://www.question2answer.org/qa/17522/why-is-q2a-using-the-span-tag-instead-of-the-div-tag</link>
<description>

&lt;p&gt;
	I checked if the q2a html template is &quot;html tidy&quot; (i.e. validates), and found a lot of span tags the incorporate a lot of other elements, esp. &lt;span&gt;&amp;lt;&lt;span class=&quot;start-tag&quot;&gt;span&lt;/span&gt; &lt;span class=&quot;attribute-name&quot;&gt;class&lt;/span&gt;=&quot;&lt;a class=&quot;attribute-value&quot;&gt;entry-content&lt;/a&gt;&quot;&amp;gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	Why not use a &amp;lt;div&amp;gt; tag instead and have tidy html?&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	PS: Check it yourself on &lt;a href=&quot;http://www.gute-mathe-fragen.de/1789/division-von-bruchen-mit-variablen&quot; rel=&quot;nofollow&quot;&gt;this site&lt;/a&gt;, using the Firefox Addon &lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/html-validator/&quot; rel=&quot;nofollow&quot;&gt;HTML Validator&lt;/a&gt;. You will see 131 warnings, mostly:&lt;/p&gt;


&lt;p&gt;
	+ Warning: inserting implicit &amp;lt;span&amp;gt;&lt;/p&gt;


&lt;p&gt;
	+ Warning: trimming empty &amp;lt;span&amp;gt;
&lt;br&gt;
	
&lt;br&gt;
	
&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/17522/why-is-q2a-using-the-span-tag-instead-of-the-div-tag</guid>
<pubDate>Mon, 03 Sep 2012 05:16:50 +0000</pubDate>
</item>
</channel>
</rss>