<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1039955" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1039955</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/div-and-span-question#comment-1225872</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;drew22299;225569 wrote:&lt;/strong&gt; Hi,&lt;/p&gt;
&lt;p&gt;How can I use the id selector in a web page using  and ?&lt;/p&gt;
&lt;p&gt;Also,&lt;/p&gt;
&lt;p&gt;How would you use grouped selectors and class to make all  tags green but only  green and italic?&lt;/p&gt;
&lt;p&gt;Any help will be appresiated!&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;id selector&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;#id&lt;br /&gt;{&lt;br /&gt;/*your declaration here */&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;then in your div&lt;br /&gt;&amp;lt;div id=&amp;#039;id&amp;#039;&amp;gt;&lt;br /&gt;&amp;lt;!-- rest of the code --&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;for font color purposes&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;h1, h2&lt;br /&gt;{&lt;br /&gt;color:rgb(0,200,0);&lt;br /&gt;}&lt;br /&gt;h2&lt;br /&gt;{&lt;br /&gt;font-style:oblique;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Wed, 31 Oct 2007 07:29:04 +0000</pubDate>
 <dc:creator>JennyScoth0109</dc:creator>
 <guid isPermaLink="false">comment 1225872 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/div-and-span-question#comment-1225581</link>
    <description> &lt;p&gt;You can use the id attribute on (almost) any tag. Use a specific ID only once per page, though, as Greg points out.&lt;/p&gt;
&lt;p&gt;You don&#039;t need a class to make headings green. This will do what you ask:&lt;/p&gt;
&lt;p&gt;h1, h2 {color: green;}&lt;br /&gt;
h2 {font-style: italic;}&lt;/p&gt;
 </description>
     <pubDate>Tue, 23 Oct 2007 00:20:53 +0000</pubDate>
 <dc:creator>webwiz</dc:creator>
 <guid isPermaLink="false">comment 1225581 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/div-and-span-question#comment-1225574</link>
    <description> &lt;p&gt;With most things the way you call CSS style is usually the same, whether class or id.&lt;br /&gt;
so for div &lt;/p&gt;
&lt;p&gt;the general rule is to use id for things you will only use once per page (same thing multiple pages is fine) class is really for styles you might use several times throughout a page&lt;br /&gt;
like text for example, you are usually better using a class for text as you tend to use that same text styling more than once per page&lt;/p&gt;
&lt;p&gt;an id in css styling is labelled using a #&lt;br /&gt;
so &lt;/p&gt;
&lt;p&gt;#id_name {&lt;br /&gt;
some css styling&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;stuff in the div&lt;/p&gt;
&lt;p&gt;and class simply uses a dot&lt;/p&gt;
&lt;p&gt;.class_name {&lt;br /&gt;
some css styling&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;stuff in the div&lt;/p&gt;
&lt;p&gt;for the h1 h2&lt;/p&gt;
&lt;p&gt;you can create all h1 styles with this:&lt;/p&gt;
&lt;p&gt;h1{&lt;br /&gt;
font: bold 120% Arial,sans-serif;&lt;br /&gt;
color: #000000;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;the above style will work whenever you use&lt;br /&gt;
change the colour to the green you want and the font styling to whatever you want&lt;br /&gt;
and of course add more things in there, like margins/padding&lt;br /&gt;
if you wanted a 20px gap under each h1 heading you can do that. margins will be best for blank spacing around a heading&lt;/p&gt;
&lt;p&gt;so do the same for h2 and change the styling to whatever you want h2 to have&lt;br /&gt;
if both your h1 and h2 are to be the same except italic, you could just make the h1 without itallic&lt;br /&gt;
and wherever you use the h1 you can wrap the text in &lt;/p&gt;
&lt;p&gt;eg&lt;br /&gt;
header will be green AND italic&lt;br /&gt;
but if you want to use the itallic header more than once you are better of making a second header h2 with italic&lt;/p&gt;
 </description>
     <pubDate>Mon, 22 Oct 2007 20:52:15 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1225574 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
