<?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>CSS Video Tutorials</title>
	<atom:link href="http://cssvideos.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://cssvideos.com</link>
	<description>Learn CSS</description>
	<lastBuildDate>Thu, 09 Aug 2012 20:33:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.0.11</generator>
	<item>
		<title>CSS Font-Weight (Bold)</title>
		<link>https://cssvideos.com/css-properties/css-font-weight-bold/</link>
					<comments>https://cssvideos.com/css-properties/css-font-weight-bold/#comments</comments>
		
		<dc:creator><![CDATA[Ashton Sanders]]></dc:creator>
		<pubDate>Sat, 09 Jun 2012 05:38:01 +0000</pubDate>
				<category><![CDATA[CSS Properties]]></category>
		<category><![CDATA[Text/Font]]></category>
		<guid isPermaLink="false">http://cssvideos.com/?p=193</guid>

					<description><![CDATA[<p>Hello and welcome to CSS Videos.com. My name is Ashton Sanders I&#8217;m going to explain the CSS Property: Font-Weight. Font-Weight is the CSS property to make text bold or not bold. (You would think this is the most simple, straight-forward CSS property, but it&#8217;s not. In this case, it is a bit more complicated than [&#8230;]</p>
<p>The post <a href="https://cssvideos.com/css-properties/css-font-weight-bold/">CSS Font-Weight (Bold)</a> first appeared on <a href="https://cssvideos.com">CSS Video Tutorials</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Hello and welcome to CSS Videos.com. My name is Ashton Sanders I&#8217;m going to explain the CSS Property: Font-Weight.</p>
<p>Font-Weight is the CSS property to make text bold or not bold. </p>
<p>(You would think this is the most simple, straight-forward CSS property, but it&#8217;s not. In this case, it is a bit more complicated than it needs to be, giving you just a bit more functionality than you&#8217;d expect or think you&#8217;d need. The bad news is that some browsers don&#8217;t currently pay attention to this extra functionality.)</p>
<p>CSS Font-Weight has the values you&#8217;d expect: &#8220;bold&#8221; and &#8220;normal&#8221;, and honestly, that&#8217;s all you really need to know, but here&#8217;s the&#8230; </p>
<h3>CSS Bold Details</h3>
<p>CSS Font-Weight also has a sliding scale of not-bold to bold. It starts at 100 (not bold) and increases by increments of one hundred up to 900 (bold). At this point almost none of the modern browsers care about this sliding scale, but maybe one day, you&#8217;ll be able to accurately make your text just a little bit bolder with font-weight: 300. Until then, 100 to 500 count as not bold and 600 to 900 count as bold.</p>
<p>(There is also a &#8220;lighter&#8221; and a &#8220;bolder&#8221; value, but it might as well be &#8220;normal&#8221; and &#8220;bold&#8221; for all intensive purposes.)</p>
<p>Below this video, I&#8217;ll show each of the CSS font-weight (CSS bold or not bold) values in effect (and in two fonts) so you can see how each one looks in your browser (and in this video, I&#8217;ll show you what the font-weight values looks like in Firefox 12):</p>
<table width="500" border="0" cellspacing="4" cellpadding="3" style="margin: 0 50px; text-align:center !important;">
<tr>
<td colspan="2" style="font-weight:bold">Font: Trebuchet</td>
<td colspan="2" style="font-weight:bold; font-family:arial">Font: Arial</td>
</tr>
<tr>
<td style="font-weight:normal">normal</td>
<td style="font-weight:bold">bold</td>
<td style="font-weight:normal; font-family:arial;">normal</td>
<td style="font-weight:bold; font-family:arial;">bold</td>
</tr>
<tr>
<td style="font-weight: lighter">lighter</td>
<td style="font-weight: bolder">bolder</td>
<td style="font-weight: lighter; font-family:arial;">lighter</td>
<td style="font-weight: bolder; font-family:arial;">bolder</td>
</tr>
<tr>
<td style="font-weight:100">100</td>
<td style="font-weight:600">600</td>
<td style="font-weight:100; font-family:arial;">100</td>
<td style="font-weight:600; font-family:arial;">600</td>
</tr>
<tr>
<td style="font-weight:200">200</td>
<td style="font-weight:700">700</td>
<td style="font-weight:200; font-family:arial;">200</td>
<td style="font-weight:700; font-family:arial;">700</td>
</tr>
<tr>
<td style="font-weight:300">300</td>
<td style="font-weight:800">800</td>
<td style="font-weight:300; font-family:arial;">300</td>
<td style="font-weight:800; font-family:arial;">800</td>
</tr>
<tr>
<td style="font-weight:400">400</td>
<td style="font-weight:900">900</td>
<td style="font-weight:400; font-family:arial;">400</td>
<td style="font-weight:900; font-family:arial;">900</td>
</tr>
<tr>
<td style="font-weight:500">500</td>
<td style="font-weight:900">&nbsp;</td>
<td style="font-weight:500; font-family:arial;">500</td>
<td style="font-weight:900; font-family:arial;">&nbsp;</td>
</tr>
</table>
<p>You&#8217;ll also notice in some browsers (including FireFox 12) that Font-Weight 800 and 900 for the font Arial changes from &#8220;Arial Bold&#8221; to &#8220;Arial Black&#8221;.</p>
<p>The final possible value for CSS font-weight is &#8220;inherit&#8221; which acts as all other inherit values: allowing your element to inherit its bold or not bold state from its parent element. (This is what all elements do on default.)</p>
<p>That is the long winded explanation of how to bold text with CSS.</p>
<p>Thank you for watching, and please subscribe in the left sidebar if you want to get notified when I post new CSS Tutorials. There are advanced CSS Videos in the works, so stay tuned!</p>
<p>Ashton Sanders<br />
CSSVideos.com</p><p>The post <a href="https://cssvideos.com/css-properties/css-font-weight-bold/">CSS Font-Weight (Bold)</a> first appeared on <a href="https://cssvideos.com">CSS Video Tutorials</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://cssvideos.com/css-properties/css-font-weight-bold/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
		<item>
		<title>CSS Font-Style (Italics)</title>
		<link>https://cssvideos.com/css-properties/css-font-style-italics/</link>
					<comments>https://cssvideos.com/css-properties/css-font-style-italics/#comments</comments>
		
		<dc:creator><![CDATA[Ashton Sanders]]></dc:creator>
		<pubDate>Sat, 18 Jun 2011 03:37:34 +0000</pubDate>
				<category><![CDATA[CSS Properties]]></category>
		<category><![CDATA[Text/Font]]></category>
		<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Font]]></category>
		<category><![CDATA[css property]]></category>
		<category><![CDATA[CSS Tutorial]]></category>
		<category><![CDATA[font style]]></category>
		<category><![CDATA[italic]]></category>
		<category><![CDATA[italics]]></category>
		<category><![CDATA[oblique]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">http://cssvideos.com/?p=184</guid>

					<description><![CDATA[<p>Hello again and welcome to CSSvideos.com. My name is Ashton Sanders and this CSS Tutorial will be a simple overview of the CSS Property called &#8220;Font-Style&#8220;. This is how you use CSS to make text slanted or italic. The four possible values for font-style are: normal, italic, oblique and inherit. The default value is normal [&#8230;]</p>
<p>The post <a href="https://cssvideos.com/css-properties/css-font-style-italics/">CSS Font-Style (Italics)</a> first appeared on <a href="https://cssvideos.com">CSS Video Tutorials</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Hello again and welcome to CSSvideos.com. My name is Ashton Sanders and  this CSS Tutorial will be a simple overview of the <strong>CSS Property</strong> called &#8220;<strong>Font-Style</strong>&#8220;. This is how you use CSS to make text slanted or italic.</p>
<p>The four possible values for font-style are: <em>normal</em>, <em>italic</em>, <em>oblique </em>and <em>inherit</em>. The default value is <em>normal </em>(not italic), but it does inherit the font-style of parent elements. The difference between italic and oblique is that oblique takes the &#8220;normal&#8221; font and turns it sideways, while italic font will look for the italic version of the font first. In some recent browsers these two are pretty interchangeable.</p>
<p>In this example code, I have made all of my &lt;p&gt; (paragraphs) italic with <strong>font-style</strong>:</p>
<blockquote><p>p { font-style: italic; }</p></blockquote>
<p>This CSS Property is <em>inherited</em>, which means all child elements inside of the selected element also will be italicized. So if I applied the <strong>font-style </strong>of italic to the &lt;body&gt; of the page, all the text in the body will be italic.</p>
<p>(This can easily be overwritten by applying another font-style to a child element.)</p>
<p>Thank you for watching this CSS Tutorial.</p><p>The post <a href="https://cssvideos.com/css-properties/css-font-style-italics/">CSS Font-Style (Italics)</a> first appeared on <a href="https://cssvideos.com">CSS Video Tutorials</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://cssvideos.com/css-properties/css-font-style-italics/feed/</wfw:commentRss>
			<slash:comments>13</slash:comments>
		
		
			</item>
		<item>
		<title>CSS Font-Family</title>
		<link>https://cssvideos.com/css-properties/css-font-family/</link>
					<comments>https://cssvideos.com/css-properties/css-font-family/#comments</comments>
		
		<dc:creator><![CDATA[Ashton Sanders]]></dc:creator>
		<pubDate>Wed, 15 Jun 2011 06:05:01 +0000</pubDate>
				<category><![CDATA[CSS Properties]]></category>
		<category><![CDATA[Text/Font]]></category>
		<category><![CDATA[arial]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Font]]></category>
		<category><![CDATA[css property]]></category>
		<category><![CDATA[css text]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[font-family]]></category>
		<category><![CDATA[times]]></category>
		<guid isPermaLink="false">http://cssvideos.com/?p=139</guid>

					<description><![CDATA[<p>Hello again and welcome to CSSvideos.com. My name is Ashton Sanders and this video will be a simple overview of the CSS Property called &#8220;Font-Family&#8220;. Font-Family Basics This attribute, as expected declares the font that will be used for the selector. In this example code, I have given my &#60;body&#62; the font-family of  &#8220;Arial&#8221;: body [&#8230;]</p>
<p>The post <a href="https://cssvideos.com/css-properties/css-font-family/">CSS Font-Family</a> first appeared on <a href="https://cssvideos.com">CSS Video Tutorials</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Hello again and welcome to CSSvideos.com. My name is Ashton Sanders and  this video will be a simple overview of the <strong>CSS Property</strong> called &#8220;<strong>Font-Family</strong>&#8220;.</p>
<h3>Font-Family Basics</h3>
<p>This attribute, as expected declares the font that will be used for the selector. In this example code, I have given my &lt;body&gt; the <strong>font-family</strong> of  &#8220;Arial&#8221;:</p>
<blockquote><p>body { font-family: Arial; }</p></blockquote>
<p>This CSS Property is <em>inherited</em>, which means all child elements inside of the selected element also will get the font. So by applying the <strong>font-family </strong>of &#8220;Arial&#8221; to the &lt;body&gt; of the page, we have changed all text on our page to use the font of Arial.</p>
<p>(This can easily be overwritten by applying another font to a child element.)</p>
<h3>Font-Family Complications</h3>
<p>The complications begin when someone does not have a font installed on their computer. The normal nature of this CSS property requires your computer to have the font installed if you want to view it on a website.* So if your computer does not have the font &#8220;Arial&#8221;, the websites you visit will not display Arial; it will display your default font. For this reason, it is recommended that you use what is called a &#8220;font stack&#8221;, which is simply a comma-separated list of fonts in the order of preference. This way, each visitor to your website will see the font that is closest to ideal, instead of their default font.</p>
<blockquote><p>#header { font-family:Arial, Helvetica, sans-serif; }</p></blockquote>
<p>First the computer will check for &#8220;Arial&#8221;. If that font is not installed on the computer, it will look for &#8220;Helvetica&#8221;, and then &#8220;sans-serif&#8221; if neither previous are available. Most computers these days have &#8220;Arial&#8221;, but there are still computers out there who don&#8217;t have some of the most common fonts.</p>
<p>*There are ways to get your website to display fonts from the website instead of from the visitor&#8217;s computer, and I&#8217;ll be covering that in the advanced CSS videos.</p>
<p>Please rate and comment to let me know what you think!</p>
<p>Enjoy,<br />
Ashton</p><p>The post <a href="https://cssvideos.com/css-properties/css-font-family/">CSS Font-Family</a> first appeared on <a href="https://cssvideos.com">CSS Video Tutorials</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://cssvideos.com/css-properties/css-font-family/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>CSS Font-Size</title>
		<link>https://cssvideos.com/css-properties/css-font-size/</link>
					<comments>https://cssvideos.com/css-properties/css-font-size/#comments</comments>
		
		<dc:creator><![CDATA[Ashton Sanders]]></dc:creator>
		<pubDate>Sat, 23 Apr 2011 06:07:20 +0000</pubDate>
				<category><![CDATA[CSS Properties]]></category>
		<category><![CDATA[Text/Font]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Tutorial]]></category>
		<category><![CDATA[font size]]></category>
		<category><![CDATA[learn CSS]]></category>
		<category><![CDATA[text size]]></category>
		<guid isPermaLink="false">http://cssvideos.com/?p=164</guid>

					<description><![CDATA[<p>Welcome to CSSVideos.com. My name is Ashton Sanders, and now that we&#8217;ve gotten the Basics of CSS out of the way, we&#8217;ll start with some simple CSS properties for styling text. The first property we will cover is: Font-Size This property, as expected, declares the size of the text (letters, numbers, characters, etc.) in an [&#8230;]</p>
<p>The post <a href="https://cssvideos.com/css-properties/css-font-size/">CSS Font-Size</a> first appeared on <a href="https://cssvideos.com">CSS Video Tutorials</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Welcome to CSSVideos.com. My name is Ashton Sanders, and now that we&#8217;ve gotten the <a href="/css-index/css-basics/">Basics of CSS</a> out of the way, we&#8217;ll start with some simple CSS properties for styling text. The first property we will cover is:</p>
<h3>Font-Size</h3>
<p>This property, as expected, declares the size of the text (letters, numbers, characters, etc.) in an element. Here is a simple example of making the text in all paragraphs 14 pixels tall:</p>
<blockquote><p>p { font-size: 14px;}</p></blockquote>
<p>Note: This is NOT text-size; it is font-size. Text-size is NOT a CSS property.</p>
<h3>Font-Size Values</h3>
<p>Font-Size has a many possible values besides a unit of measurement (like the first example). You can also use a percentage for the height. You can also use these preset values (comma separated):</p>
<p>xx-small, x-small, small, medium, large, x-large, xx-large, smaller, larger, inherit</p>
<p>Font-Size, by default, is set to &#8220;medium.&#8221;</p>
<p>Here&#8217;s another example of making the font in the &lt;div class=&#8221;leftcolumn&#8221;&gt; large:</p>
<blockquote><p>div.leftcolumn { font-size: large;}</p></blockquote>
<p>Thank you for watching this CSS Video. Let me know if you didn&#8217;t understand anything in this CSS tutorial.</p>
<p>Ashton Sanders<br />
CSSVideos.com</p><p>The post <a href="https://cssvideos.com/css-properties/css-font-size/">CSS Font-Size</a> first appeared on <a href="https://cssvideos.com">CSS Video Tutorials</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://cssvideos.com/css-properties/css-font-size/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
		<item>
		<title>Embedding CSS in Your Website</title>
		<link>https://cssvideos.com/css-basics/embedding-css-in-your-website/</link>
					<comments>https://cssvideos.com/css-basics/embedding-css-in-your-website/#comments</comments>
		
		<dc:creator><![CDATA[Ashton Sanders]]></dc:creator>
		<pubDate>Sun, 19 Jul 2009 23:18:30 +0000</pubDate>
				<category><![CDATA[CSS Basics]]></category>
		<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Embedding CSS]]></category>
		<category><![CDATA[external stylesheet]]></category>
		<category><![CDATA[Inline]]></category>
		<category><![CDATA[Inline styles]]></category>
		<category><![CDATA[internal stylesheet]]></category>
		<category><![CDATA[link]]></category>
		<guid isPermaLink="false">http://cssvideos.com/?p=108</guid>

					<description><![CDATA[<p>Hello again and welcome to CSSvideos.com. My name is Ashton Sanders and this video will show you how to embed CSS into your website. Now that you know the basic CSS Syntax and how to use the CSS Selector, I will describe the three ways you can embed (or use) Cascading Style Sheets in your [&#8230;]</p>
<p>The post <a href="https://cssvideos.com/css-basics/embedding-css-in-your-website/">Embedding CSS in Your Website</a> first appeared on <a href="https://cssvideos.com">CSS Video Tutorials</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Hello again and welcome to CSSvideos.com. My name is Ashton Sanders and this video will show you how to embed CSS into your website.</p>
<p>Now that you know the basic CSS Syntax and how to use the CSS Selector, I will describe the three ways you can embed (or use) Cascading Style Sheets in your website.</p>
<h3>Inline CSS</h3>
<p>The first way is called <em>Inline Cascading Style Sheets</em>. You can add CSS directly into the elements in your markup with the &#8220;style&#8221; attribute.</p>
<blockquote><p>&lt;div style=&#8221;color:red;&#8221;&gt;<br />
&lt;p style=&#8221;font-size:12px;&#8221;&gt;</p></blockquote>
<p><em>&#8220;Style&#8221;</em> is a &#8220;Core HTML Attribute&#8221; so you can apply it to any visual HTML/XHTML elements. (This excludes: html, head, title, base, meta, param, script and style.)  In other words you can use it on any HTML element that can actually be seen (the &lt;body&gt; element and its children).</p>
<p>This may seem to be the easiest way of using CSS, but it is not recommended as it completely ignores the best parts of Cascading Style Sheets. You might as well use font tags instead of CSS, but I&#8217;ll get into that more later in this video.</p>
<h3>Internal Style Sheets</h3>
<p>The second way adds CSS to a single document or web page by adding the following code into the &lt;head&gt; of your document using the &lt;style&gt; element.</p>
<blockquote><p>&lt;style type=&#8221;text/css&#8221;&gt;</p>
<p>div {color: red;}<br />
p {font-size: 12px;}</p>
<p>&lt;/style&gt;</p></blockquote>
<p>As you can see, <em>&lt;style&gt;</em> is an HTML element that is opened and closed. Within the <em>&lt;style&gt;</em> element is the CSS that will be applied to that page. There is no limit to the amount of CSS you can put inside the <em>&lt;style&gt;</em> element. You would enter this code in the &lt;head&gt; area of your web page (anywhere after &lt;head&gt; and before &lt;/head&gt; in your HTML document) and that would apply this CSS to the elements of that web page.</p>
<h3>External Style Sheets</h3>
<p>The third, and most adventagous way to embed CSS into a document uses <strong>External Cascading Style Sheets</strong> (or <em>External Style Sheets</em>).  An external CSS file is simply a text file with a &#8220;.css&#8221; extension. This file can then be included into many different pages. This allows you to make one document that has the styling for your entire website. Then you include that file into every page of your website. This is the recommended way of using CSS in your website as it lets you make global visual changes (to an entire website) by only tweaking one file.</p>
<p>For Example, lets say you have a website where all the paragraphs are black, and you want to change them to grey. Since you have an external Style Sheet, you just open up that one CSS file and change the style for paragraphs to:<em> color:grey; </em>Now all the paragraphs on your website are grey!</p>
<p>Here&#8217;s the code you would use to include an external style sheet into a webpage:</p>
<blockquote><p>&lt;link type=&#8221;text/css&#8221; rel=&#8221;stylesheet&#8221; href=&#8221;/link/to/stylesheet.css&#8221; /&gt;</p></blockquote>
<h3>Conclusion</h3>
<p>Thank you for watching this CSS Video. I hope you learned something from it and are able to apply it on your own  <a href="http://www.webhostingsearch.com/web-page-hosting.php" target="_blank">web page hosting</a> sites. This is the last of the CSS Basic Videos. Next, we will be getting into the CSS Properties!</p>
<p>See you soon,<br />
Ashton Sanders</p><p>The post <a href="https://cssvideos.com/css-basics/embedding-css-in-your-website/">Embedding CSS in Your Website</a> first appeared on <a href="https://cssvideos.com">CSS Video Tutorials</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://cssvideos.com/css-basics/embedding-css-in-your-website/feed/</wfw:commentRss>
			<slash:comments>27</slash:comments>
		
		
			</item>
		<item>
		<title>CSS Selectors Part 2</title>
		<link>https://cssvideos.com/css-basics/css-selectors-2/</link>
					<comments>https://cssvideos.com/css-basics/css-selectors-2/#comments</comments>
		
		<dc:creator><![CDATA[Ashton Sanders]]></dc:creator>
		<pubDate>Mon, 01 Jun 2009 20:25:51 +0000</pubDate>
				<category><![CDATA[CSS Basics]]></category>
		<category><![CDATA[Basics]]></category>
		<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Selectors]]></category>
		<category><![CDATA[Descendant Selector]]></category>
		<category><![CDATA[Selector]]></category>
		<category><![CDATA[Syntax]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">http://cssvideos.com/?p=59</guid>

					<description><![CDATA[<p>Hi this is Ashton Sanders with CSS Videos.com and this is the second video about CSS Selectors. In CSS Selectors Part 1, we covered how you can use HTML tags, ID&#8216;s and Classes to select what to apply your CSS to. In this video we&#8217;ll talk about Applying the same CSS to multiple elements. Using [&#8230;]</p>
<p>The post <a href="https://cssvideos.com/css-basics/css-selectors-2/">CSS Selectors Part 2</a> first appeared on <a href="https://cssvideos.com">CSS Video Tutorials</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Hi this is Ashton Sanders with CSS Videos.com and this is the second video about CSS Selectors. In <a title="CSS Selectors" href="/css-basics/css-selectors-2/">CSS Selectors Part 1</a>, we covered how you can use HTML tags, <em>ID</em>&#8216;s and <em>Classes</em> to select what to apply your CSS to.</p>
<p>In this video we&#8217;ll talk about</p>
<ol>
<li>Applying the same CSS to multiple elements.</li>
<li>Using HTML&#8217;s hierarchy to be more specific about what elements are selected.</li>
</ol>
<h3>Selecting Multiple Elements at Once</h3>
<p>To select two separate elements at the same time and apply the same styling to each, normally you&#8217;d write it as this:</p>
<blockquote><p>h1  { color: red;}<br />
h2  { color: red;}</p></blockquote>
<p>Or  you can use a comma to separate the selectors and put them together like this:</p>
<blockquote><p>h1, h2  { color: red;}</p></blockquote>
<p>Nope, not very complicated at all. This line of CSS will make all &lt;h1&gt; and &lt;h2&gt; tags red. You can apply the same styles to as many selectors as you want. There&#8217;s no limit.</p>
<blockquote><p>h1, h2, #item, .red   { color: red;}</p></blockquote>
<p>In this line of CSS, we have applied the same styling to four different selectors. All &lt;h1&gt; tags, &lt;h2&gt; tags, elements with the <em>id=&#8221;item&#8221;</em> and <em>class=&#8221;red&#8221;</em>.</p>
<h3>CSS Descendant Selector</h3>
<p>Of the CSS Basics, I probably use the CSS Descendant Selector the most. This is wher eyou use the hierarchy of your HTML to define which elements get &#8220;styled&#8221; (as opposed to assigning classes to everything. To quickly define hierarchy, here is some simple HTML:</p>
<blockquote><p>&lt;body&gt;<br />
&lt;div&gt;<br />
&lt;p&gt;Random Text&lt;/p&gt;<br />
&lt;/div&gt;<br />
&lt;p&gt;More Text&lt;/p&gt;<br />
&lt;/body&gt;</p></blockquote>
<p>We have two paragraphs (&lt;p&gt;) in this HTML. The only difference between them is that one is the &#8220;<strong>child</strong>&#8221; of a &lt;div&gt; and the other is not. It can also be said that the &lt;div&gt; is the &#8220;<strong>parent</strong>&#8221; of the &lt;p&gt;, just like how the &lt;body&gt; is the &#8220;<strong>grandparent</strong>&#8221; of the first paragraph and the  &#8220;<strong>parent</strong>&#8221; of the second paragraph. A simpler way to say this is: the &lt;body&gt; is an &#8220;<strong>ancestor</strong>&#8221; (<strong>parent</strong>, <strong>grandparent</strong>, etc.) of both paragraphs. We can use these relationships in our CSS Selectors.</p>
<p>Let&#8217;s use CSS to only change the color of all <strong>paragraphs with a div as an ancestor</strong>:</p>
<blockquote><p>div p { color: red;}</p></blockquote>
<p>Yes, it&#8217;s that simple. The space represents ancestory.</p>
<blockquote><p>body p { color: red;}</p></blockquote>
<p>This CSS would make both paragraphs red since both paragraphs  are a descendants (child, grandchild, etc.) of the &lt;body&gt; tag.</p>
<p>Note: There are more ways to use your HTML hierarchy in your CSS Selectors (like only direct, siblings, etc.) but as they don&#8217;t work in all browsers in use today *cough* IE6 *cough*&#8230; I won&#8217;t go into them in detail here.</p>
<p>That pretty well summarizes what you  can do with CSS Selectors!</p>
<p>The next video will talk about the three ways of including your Cascading Style Sheets into an HTML document.</p>
<p>Thanks for watching and rating.</p><p>The post <a href="https://cssvideos.com/css-basics/css-selectors-2/">CSS Selectors Part 2</a> first appeared on <a href="https://cssvideos.com">CSS Video Tutorials</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://cssvideos.com/css-basics/css-selectors-2/feed/</wfw:commentRss>
			<slash:comments>22</slash:comments>
		
		
			</item>
		<item>
		<title>CSS Selectors Part 1</title>
		<link>https://cssvideos.com/css-basics/css-selectors-1/</link>
					<comments>https://cssvideos.com/css-basics/css-selectors-1/#comments</comments>
		
		<dc:creator><![CDATA[Ashton Sanders]]></dc:creator>
		<pubDate>Fri, 22 May 2009 22:20:54 +0000</pubDate>
				<category><![CDATA[CSS Basics]]></category>
		<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Selectors]]></category>
		<category><![CDATA[Selector]]></category>
		<category><![CDATA[Syntax]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Video]]></category>
		<guid isPermaLink="false">http://cssvideos.com/?p=48</guid>

					<description><![CDATA[<p>Hi this is Ashton Sanders with CSS Videos.com and this CSS Video Tutorial is the first video about CSS Selectors. CSS Selectors add an incredible amount of flexibility and functionality to what you can style with Cascading Style Sheets. So far we have briefly defined what the CSS Selector does in the CSS Syntax video, [&#8230;]</p>
<p>The post <a href="https://cssvideos.com/css-basics/css-selectors-1/">CSS Selectors Part 1</a> first appeared on <a href="https://cssvideos.com">CSS Video Tutorials</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Hi this is Ashton Sanders with CSS Videos.com and this CSS Video Tutorial is the first video about CSS Selectors.</p>
<p>CSS Selectors add an incredible amount of flexibility and functionality to what you can style with Cascading Style Sheets. So far we have briefly defined what the CSS Selector does in the <a href="http://cssvideos.com/css-basics/css-syntax/">CSS Syntax video</a>, and that is:</p>
<ul>
<li><strong>Selector:</strong> is the hook used to choose what part(s) of your HTML to apply the CSS to.</li>
</ul>
<p>I have a feeling that won&#8217;t even make sense to most beginners. If it does right now, excellent; if it doesn&#8217;t you&#8217;ll soon understand in these examples. In this video I&#8217;ll give you a better understanding of <strong>how the Selector works and three types of hooks you can select with it. </strong>There are many different ways to &#8220;select&#8221; HTML elements, but I will try to cover the necessary basics.</p>
<p>I will note that CSS can be applied to many more languages other than just plain HTML, but since it&#8217;s the most common, lets start with some example HTML:</p>
<blockquote><p>&lt;h1&gt;CSS Selectors&lt;/h1&gt;</p></blockquote>
<p>Here we have a simple &lt;h1&gt; tag around the text of &#8220;CSS Selectors.&#8221; Now we are going to write our CSS to select this &lt;h1&gt; tag and make it red:</p>
<blockquote><p>h1  { color: red; }</p></blockquote>
<p>That&#8217;s pretty simple and straightforward. The selector is the <em>h1</em> and it selects all <em>&lt;h1&gt;</em> tags in your HTML document to make it red.</p>
<p>But we have one little problem, and that is that <em>this CSS will make all &lt;h1&gt; tags red</em>. If you have two &lt;h1&gt; tags on your website and you want one to be red and another to be blue, there are a couple things you can do. (Boo yea, that rhymes.) We&#8217;re going to start with assigning <em>Classes</em> and <em>ID</em>s to the HTML &lt;h1&gt; tags.</p>
<h3>CSS Classes</h3>
<p><span id="more-48"></span><br />
Here is the HTML of adding a <em>class</em> of &#8220;hdr&#8221; to one &lt;h1&gt; tag:</p>
<blockquote><p>&lt;h1 class=&#8221;hdr&#8221;&gt;CSS Selectors&lt;/h1&gt;</p></blockquote>
<p>As you can see, the class is just a simple HTML attribute we added to the H1 tag. The same class attribute of &#8220;hdr&#8221; can be used as many times as you want on the same HTML page. For CSS Selectors we use a <em>period</em> (.) to represent a class.</p>
<blockquote><p>h1.hdr {color:red;}</p></blockquote>
<p>This code selects all &lt;h1&gt; tags with the <em>class=&#8221;hdr&#8221;</em> attribute and makes it red. You can also write the class without listing the HTML element like this:</p>
<blockquote><p>.hdr {color:red;}</p></blockquote>
<p>This would select all HTML elements with the <em>class=&#8221;hdr&#8221;</em> attribute and make it red. This is useful if you want to apply the same styles to different HTML tags. You just add the <em>class=&#8221;hdr&#8221;</em> attribute to the element and it will become red. It doesn&#8217;t matter if it&#8217;s a &lt;h1&gt; tag, &lt;p&gt; (paragraph) tag, or &lt;blockquote&gt;.</p>
<p>I will also mention that the HTML attribute of &#8220;class&#8221; allows multiple values separated by spaces. So you can have an &lt;h1&gt; tag with the class of &#8220;hdr&#8221; and &#8220;main&#8221; at the same time like this:</p>
<blockquote><p>&lt;h1 class=&#8221;hdr main&#8221;&gt;CSS Selectors&lt;/h1&gt;</p></blockquote>
<p>You can apply CSS to this element using either class. You can use any of these three lines to make the color of this &lt;h1&gt; tag red.</p>
<blockquote><p>.hdr {color:red;}<br />
.main {color:red;}<br />
h1.main {color:red;}</p></blockquote>
<p>That pretty much wraps up classes. Next on the list is CSS ID&#8217;s:</p>
<h3>CSS IDs</h3>
<p>Here is the HTML code for adding an <em>ID</em> of &#8220;mainhdr&#8221; to an &lt;h1&gt; tag:</p>
<blockquote><p>&lt;h1 id=&#8221;mainhdr&#8221;&gt;CSS Selectors&lt;/h1&gt;</p></blockquote>
<p>As you can see this is just like the class attribute. The difference between the class and the ID is that the ID is only supposed to be used once on an HTML page. In CSS we use a <em>hash mark </em>(#) to represent an ID.</p>
<blockquote><p>h1#mainhdr {color:red;}</p></blockquote>
<p>This would select the &lt;h1&gt; with the ID of <em>mainhdr</em> and make it red. Just like the class selector, you can write the ID selector without the HTML element like this:</p>
<blockquote><p>#mainhdr {color:red;}</p></blockquote>
<p>This code selects any HTML element with the ID of &#8220;mainhdr&#8221; and makes it red.</p>
<p><strong>Is that it?</strong> Heck no, but that&#8217;s all I can fit into this video. The next video will be <a title="CSS Selectors" href="/css-basics/css-selectors-2/">CSS Selectors Part 2</a> and will cover applying the same CSS to multiple elements and using the hierarchy of your HTML document to specify what elements are selected.</p>
<p>Thanks for watching the video I hope you enjoyed it.</p><p>The post <a href="https://cssvideos.com/css-basics/css-selectors-1/">CSS Selectors Part 1</a> first appeared on <a href="https://cssvideos.com">CSS Video Tutorials</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://cssvideos.com/css-basics/css-selectors-1/feed/</wfw:commentRss>
			<slash:comments>19</slash:comments>
		
		
			</item>
		<item>
		<title>CSS Syntax</title>
		<link>https://cssvideos.com/css-basics/css-syntax/</link>
					<comments>https://cssvideos.com/css-basics/css-syntax/#comments</comments>
		
		<dc:creator><![CDATA[Ashton Sanders]]></dc:creator>
		<pubDate>Wed, 06 May 2009 15:15:14 +0000</pubDate>
				<category><![CDATA[CSS Basics]]></category>
		<category><![CDATA[Basics]]></category>
		<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Syntax]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Video]]></category>
		<guid isPermaLink="false">http://cssvideos.com/?p=42</guid>

					<description><![CDATA[<p>Hi this is Ashton Sanders with CSS Videos.com, and we are going to be talking about CSS Syntax. My favorite thing about CSS is that it has a very simple syntax; making it super easy to learn. In Cascading Style Sheets, you are writing a series of rules to apply to your HTML document.  Every [&#8230;]</p>
<p>The post <a href="https://cssvideos.com/css-basics/css-syntax/">CSS Syntax</a> first appeared on <a href="https://cssvideos.com">CSS Video Tutorials</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Hi this is Ashton Sanders with CSS Videos.com, and we are going to be talking about CSS Syntax.</p>
<p>My favorite thing about CSS is that it has a very simple syntax; making it super easy to learn.</p>
<p>In Cascading Style Sheets, you are writing a series of rules to apply to your HTML document.  Every rule has these things:</p>
<p>&nbsp;</p>
<p><img src="/images/videos/css-syntax-diagram.gif" alt="CSS Syntax" /></p>
<ul>
<li><strong>Selector:</strong> is the hook used to choose what part(s) of your HTML to apply the CSS to. Following the selector is the&#8230;</li>
<li><strong>Declaration Block:</strong> Everything within the curly brackets,  &#8220;{&#8221; and &#8220;}&#8221;, is called the declaration block</li>
<li><strong>Declaration:</strong> Inside a declaration block you can have as many declarations as you want and each declaration is a combination of a CSS Property and a value.</li>
<li><strong>Property:</strong> is one of the CSS Properties used to tell what part of the selector will be changed (or styled).</li>
<li><strong>Value:</strong> assigns a value to the property.</li>
</ul>
<p>(Note that the Property is always followed by a colon, and each declaration is separated with a semicolon</p>
<p>Here are some quick sample:</p>
<p>Let&#8217;s Say that title at the top of this video screen is an H1 element. The HTML code for that would look like this:</p>
<blockquote><p>&lt;h1&gt;CSS Syntax&lt;/h1&gt;</p></blockquote>
<p>Now lets use CSS to make it red.</p>
<blockquote><p>h1 { color: red }</p></blockquote>
<p>This bit of code tells the h1 to have the color of red. Boo yea, we got some red in there and we are good to go.</p>
<p>Let&#8217;s add another declaration to the declaration block to make the background color black:</p>
<blockquote><p>h1 { color: red; background: black; }</p></blockquote>
<p>You now know the basics of the CSS Syntax.</p>
<p>My next video will go into further detail about the <strong>CSS Selector</strong>, and some things you should know about it.</p>
<p>Thanks for Watching!</p>
<p>Ashton Sanders<br />
CSSVideos.com</p><p>The post <a href="https://cssvideos.com/css-basics/css-syntax/">CSS Syntax</a> first appeared on <a href="https://cssvideos.com">CSS Video Tutorials</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://cssvideos.com/css-basics/css-syntax/feed/</wfw:commentRss>
			<slash:comments>22</slash:comments>
		
		
			</item>
		<item>
		<title>What is Cascading Style Sheets?</title>
		<link>https://cssvideos.com/css-basics/what-is-cascading-style-sheets/</link>
					<comments>https://cssvideos.com/css-basics/what-is-cascading-style-sheets/#comments</comments>
		
		<dc:creator><![CDATA[Ashton Sanders]]></dc:creator>
		<pubDate>Sun, 26 Apr 2009 06:46:28 +0000</pubDate>
				<category><![CDATA[CSS Basics]]></category>
		<category><![CDATA[Basics]]></category>
		<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[What is CSS]]></category>
		<guid isPermaLink="false">http://cssvideos.com/?p=28</guid>

					<description><![CDATA[<p>*This has been recently Updated! Enjoy the new version and let me know what you think.* Welcome to CSS Videos.com. My name is Ashton Sanders and this is the first CSS video tutorial, so I will be answering a very important question: &#8220;What is Cascading Style Sheets?&#8221; But before we get to CSS, we must [&#8230;]</p>
<p>The post <a href="https://cssvideos.com/css-basics/what-is-cascading-style-sheets/">What is Cascading Style Sheets?</a> first appeared on <a href="https://cssvideos.com">CSS Video Tutorials</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>*This has been recently Updated! Enjoy the new version and let me know what you think.*</p>
<p>Welcome to CSS Videos.com. My name is Ashton Sanders and this is the first CSS video tutorial, so I will be answering a very important question: &#8220;What is  Cascading Style Sheets?&#8221;</p>
<p>But before we get to CSS, we must first quickly define HTML as CSS works with HTML to make websites faster and easier to edit.</p>
<h3>What is HTML?</h3>
<p>HTML (HyperText Markup Language) is the most basic programming language for websites. HTML consists of elements (or tags) that are used to create websites. For example, the HTML element &#8220;&lt;p&gt;&#8221; is used to create a paragraph on a web page.</p>
<blockquote><p>&lt;p&gt;Here&#8217;s an example paragraph in HTML code.&lt;/p&gt;</p></blockquote>
<p>Web pages are created with HTML elements and then CSS is used to <strong>style </strong>those HTML elements and define how they will look.</p>
<h3>What Does CSS Do?</h3>
<p>CSS allows you to style a lot of different aspects of HTML elements. You can use CSS to do things like:</p>
<ul>
<li>changing the font, size and alignment of text</li>
<li>adding a background color or background image</li>
<li>adding a border</li>
<li>create a drop down menu</li>
<li>define the width and height of an element</li>
<li>and much, much more&#8230;</li>
</ul>
<h3>How Do People Use CSS?</h3>
<p>As CSS is so versatile, people use it as much or as little as they want. Any part of a webpage that doesn&#8217;t get created with HTML can be done with CSS.</p>
<p>One recommended practice is to use HTML to:</p>
<ol>
<li>Define the different areas of your web page (ie. header, sidebar, content, footer) and</li>
<li>Fill it with content (text, images, etc.).</li>
</ol>
<p>Then you use CSS to:</p>
<ol>
<li>Format the size and placement of your web page areas</li>
<li>Style the content (color, size, bold, font, etc.) and</li>
<li>Add the design (look and feel) to the HTML.</li>
</ol>
<h3>Purpose of CSS?</h3>
<p>The purpose of CSS is to keep as much of your actual content (HTML) separated from your design styles (CSS). This allows you to make website-wide changes easily. For example, if you want to change the color of all the text on your website, you only need to change the color in your CSS file, and your entire website has been updated.</p>
<p>Cascading Style Sheets helps to keep your code clean, decreases your file size and gives you mountains of functionality.</p>
<p>I hope you enjoyed the CSS Tutorial. As I&#8217;m always looking to improve my videos, please leave a comment below with any suggestions or recommendations you may have to improve them.</p>
<p>Thank you very much for watching this CSS Video on &#8220;What is Cascading Style Sheets&#8221;.</p>
<p>Ashton Sanders<br />
CSSVideos.com</p><p>The post <a href="https://cssvideos.com/css-basics/what-is-cascading-style-sheets/">What is Cascading Style Sheets?</a> first appeared on <a href="https://cssvideos.com">CSS Video Tutorials</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://cssvideos.com/css-basics/what-is-cascading-style-sheets/feed/</wfw:commentRss>
			<slash:comments>32</slash:comments>
		
		
			</item>
	</channel>
</rss>
