<?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>Cascading Style Sheets Syntax &#187; ID Selector</title>
	<atom:link href="http://csssyntax.com/tag/id-selector/feed" rel="self" type="application/rss+xml" />
	<link>http://csssyntax.com</link>
	<description>CSS BASIC REFERENCE</description>
	<lastBuildDate>Sat, 31 Jul 2010 08:26:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>CSS ID Selector and Class Selector</title>
		<link>http://csssyntax.com/css-id-selector-and-class-selector.html</link>
		<comments>http://csssyntax.com/css-id-selector-and-class-selector.html#comments</comments>
		<pubDate>Fri, 25 Sep 2009 00:42:22 +0000</pubDate>
		<dc:creator>gusdwi</dc:creator>
				<category><![CDATA[CSS Basic]]></category>
		<category><![CDATA[Class Selector]]></category>
		<category><![CDATA[css code]]></category>
		<category><![CDATA[css selector]]></category>
		<category><![CDATA[css style]]></category>
		<category><![CDATA[ID Selector]]></category>

		<guid isPermaLink="false">http://csssyntax.com/?p=79</guid>
		<description><![CDATA[Set CSS with ID Selector and Class Selector, how to write css code ?]]></description>
			<content:encoded><![CDATA[<p>In addition to the standard way of writing CSS style or giving properties inherent in the HTML selector, we can also provide their own name on a particular element by making the <strong>ID selector</strong> and <strong>Class selector</strong>.</p>
<p><span style="color: #800080;"><strong>ID Selector</strong></span> is a selector that can be used only once in an element, while the <span style="color: #3366ff;"><strong>Class Selector</strong></span> can be used several times on an element.<br />
Writing ID Selector in CSS begins with the symbol <strong># (octothorpe)</strong>, while writing the CSS class selector begins with a <strong>dot (.)</strong><br />
Example:</p>
<blockquote><p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;CSS ID Selector&lt;/title&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
#header_title {<br />
font-size:24px; font-weight:bold; color:#CC0000;}<br />
#header_desc {<br />
font-size:18px; font-weight:bold; color:#000066;}<br />
.main {<br />
font-family:Arial, Helvetica, sans-serif; line-height: 9px; }<br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;div&gt;<br />
&lt;p id=&#8221;header_title&#8221;&gt;CSS Syntax&lt;br/&gt;&lt;span id=&#8221;header_desc&#8221;&gt;About CSS Id Selector and Class &lt;/span&gt;&lt;/p&gt;<br />
&lt;/div&gt;<br />
&lt;div&gt;<br />
&lt;p&gt;Fill Your Stuff here&lt;/p&gt;<br />
&lt;p&gt;Fill Your Stuff here 2&lt;/p&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></blockquote>
<p>When viewed in a browser will be like this:<br />
<img class="size-full wp-image-87 alignnone" title="css-id-selector-result" src="http://csssyntax.com/wp-content/uploads/2009/09/css-id-selector-result.gif" alt="css-id-selector-result" width="263" height="279" /></p>
]]></content:encoded>
			<wfw:commentRss>http://csssyntax.com/css-id-selector-and-class-selector.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
