<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Singular they &#8211; stoimen&#039;s web log</title>
	<atom:link href="/tag/singular-they/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>on web development</description>
	<lastBuildDate>Tue, 13 Feb 2018 08:18:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>HTML Tag Semantics. STRONG vs. B!</title>
		<link>/2010/03/11/html-tag-semantics-strong-vs-b/</link>
		<comments>/2010/03/11/html-tag-semantics-strong-vs-b/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 12:09:17 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[web development]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Cross-platform software]]></category>
		<category><![CDATA[Curly bracket programming languages]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Label]]></category>
		<category><![CDATA[Markup languages]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Procedural programming languages]]></category>
		<category><![CDATA[Singular they]]></category>
		<category><![CDATA[Span and div]]></category>
		<category><![CDATA[Technology/Internet]]></category>
		<category><![CDATA[web project]]></category>

		<guid isPermaLink="false">/?p=1246</guid>
		<description><![CDATA[Do You Use LABEL? Have you ever mentioned the existence of the LABEL tag? Have you ever used it? I guess the majority of us don&#8217;t. Let&#8217;s take a look of the following chunk of code: &#60;label&#62;username:&#60;/label&#62; &#60;input type="text" name="username" /&#62; It looks familiar to every web developer, but the most common usage in web &#8230; <a href="/2010/03/11/html-tag-semantics-strong-vs-b/" class="more-link">Continue reading <span class="screen-reader-text">HTML Tag Semantics. STRONG vs. B!</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2010/09/24/2xjquery-select-a-selector/" rel="bookmark" title="2xjQuery: Select a Selector">2xjQuery: Select a Selector </a></li>
<li><a href="/2010/01/12/faster-html-why-not/" rel="bookmark" title="Faster HTML! Why not?">Faster HTML! Why not? </a></li>
<li><a href="/2010/03/02/fast-way-to-manage-the-arabic-version-of-a-web-form/" rel="bookmark" title="Fast way to manage the Arabic version of a web form">Fast way to manage the Arabic version of a web form </a></li>
<li><a href="/2010/03/10/php-if-else-endif-statements/" rel="bookmark" title="PHP if-else-endif Statements">PHP if-else-endif Statements </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>Do You Use LABEL?</h2>
<p>Have you ever mentioned the existence of the <strong>LABEL</strong> tag? Have you ever used it? I guess the majority of us don&#8217;t. Let&#8217;s take a look of the following chunk of code:</p>
<pre lang="html4strict" escaped="true">&lt;label&gt;username:&lt;/label&gt; &lt;input type="text" name="username" /&gt;</pre>
<p>It looks familiar to every web developer, but the most common usage in web forms is:</p>
<pre lang="html4strict" escaped="true">&lt;div&gt;username:&lt;/div&gt;</pre>
<p>or</p>
<pre lang="html4strict" escaped="true">&lt;span&gt;username:&lt;/span&gt;</pre>
<h2>How Looks a LABEL Tag?</h2>
<p>In fact if you use LABEL for the form instead of DIV or SPAN you&#8217;ll get the exactly same result as layout, beside that most common usage is a DIV or SPAN in place of the forgotten LABEL?! Why is that?</p>
<blockquote style="text-align: center;"><p><a href="/wp-content/uploads/2010/03/label.vs_.span_.png"><img class="size-full wp-image-1258" title="label.vs.span" src="/wp-content/uploads/2010/03/label.vs_.span_.png" alt="html tags. Label vs Span" width="288" height="120" /></a><br />
Can you see the difference between LABEL and SPAN?</p></blockquote>
<p>For me the usage of DIV has become critically enormous. It may sound strange that there is a debate about the usage of one or another HTML tag, but don&#8217;t you think every little text label in a web project is surrounded by a DIV. Actually that makes clear that if you&#8217;d like to be semantically correct, than you should use LABEL.</p>
<p>The funny thing is that almost every project is loading its labels in a PHP array or object or whatever and there they are called &#8220;Labels&#8221;, but when it comes to HTML they are put into a DIVs.</p>
<h2>Why Semantics Matters?</h2>
<p>In fact this is important because this is really good for web robots. If this is not important for the human eye it is for a machine &#8220;eye&#8221;. That&#8217;s why there are two tags for bold text.</p>
<h2>STRONG vs. B</h2>
<p>You can see that most of the browsers display both tags exactly the same by default.</p>
<blockquote style="text-align:center"><p><a href="/wp-content/uploads/2010/03/bold.vs_.strong.png"><img class="aligncenter size-full wp-image-1265" title="bold.vs.strong" src="/wp-content/uploads/2010/03/bold.vs_.strong.png" alt="Bold vs Strong HTML tags" width="177" height="39" /></a></p></blockquote>
<p>Why&#8217;s that? Because STRONG is semantically more important than &lt;B&gt;.</p>
<p>So if you want to make a text simply looking bold, wrap it in &lt;B&gt;, but if you want to make it important both for the human eye and for the machines, than use STRONG.</p>
<p><em><strong>Source:</strong> complete <a title="HTML tag semantics demo" href="http://www.stoimen.com/projects/html.tag.semantics/" target="_blank">demo</a>.</em></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2010/09/24/2xjquery-select-a-selector/" rel="bookmark" title="2xjQuery: Select a Selector">2xjQuery: Select a Selector </a></li>
<li><a href="/2010/01/12/faster-html-why-not/" rel="bookmark" title="Faster HTML! Why not?">Faster HTML! Why not? </a></li>
<li><a href="/2010/03/02/fast-way-to-manage-the-arabic-version-of-a-web-form/" rel="bookmark" title="Fast way to manage the Arabic version of a web form">Fast way to manage the Arabic version of a web form </a></li>
<li><a href="/2010/03/10/php-if-else-endif-statements/" rel="bookmark" title="PHP if-else-endif Statements">PHP if-else-endif Statements </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2010/03/11/html-tag-semantics-strong-vs-b/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
