 
    
<?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>background-color Archives - Complete, Concrete, Concise</title>
	<atom:link href="https://complete-concrete-concise.com/tag/background-color/feed/" rel="self" type="application/rss+xml" />
	<link>https://complete-concrete-concise.com/tag/background-color/</link>
	<description>Practical Information Without The Bloat</description>
	<lastBuildDate>Mon, 09 Apr 2018 14:49:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>Introducing CSS</title>
		<link>https://complete-concrete-concise.com/tutorials/webdev/front-end-basics/introducing-css/</link>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Mon, 09 Apr 2018 14:49:15 +0000</pubDate>
				<category><![CDATA[Front-End Basics]]></category>
		<category><![CDATA[background-color]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[webdev]]></category>
		<guid isPermaLink="false">https://complete-concrete-concise.com/?p=3562</guid>

					<description><![CDATA[<p>Add a little colour to your pages.</p>
<p>The post <a href="https://complete-concrete-concise.com/tutorials/webdev/front-end-basics/introducing-css/">Introducing CSS</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="preamble">
<p>HTML gives your document structure. CSS gives it style.</p>
</div>
<p>Up to now, the web pages you have created are plain looking, that’s because HTML is only about structuring the contents of your document.</p>
<p>CSS &#8211; Cascading Style Sheets &#8211; allows you to style the presentation of the various HTML elements in your document.</p>
<p>Separating the formatting from the content makes it possible to present the same document in different ways. For example, presentation on a mobile phone might be different from a desktop display; layout for an e-book might be different from the layout for a desktop display, which might be different from the layout for a printed document; text-to-speech might also have its own layout.</p>
<p>CSS allows you to control aspects such as layout, colors, and fonts.</p>
<p>Having the CSS in a separate file, you can apply the styles to multiple HTML documents. Change the contents of the style sheet and you automatically update the styling of all the HTML documents referring to that style sheet. In other words, you can update the look and feel of your website without having to update all the content documents &#8211; just the style sheet.</p>
<p>If you have only one HTML document, this might not make much sense, but if you have hundreds or thousands of documents, changing one (or a few) style sheets is much easier than changing all the documents.</p>
<p>I cannot stress enough the importance of keeping your content and presentation separate.</p>
<h2>
Contents<br />
</h2>
<ol type="1">
<li><a href="#a-css-example">A CSS Example</a></li>
<li><a href="#css-syntax">CSS Syntax</a></li>
<li><a href="#some-css-properties">Some CSS Properties</a>
<ol type="1">
<li><a href="#hexadecimal">Hexadecimal</a></li>
<li><a href="#rgb">RGB</a></li>
</ol>
</li>
<li><a href="#conclusion">Conclusion</a></li>
<li><a href="#playing-around">Playing Around</a></li>
<li><a href="#references">References</a></li>
</ol>
<h2 id="a-css-example">A CSS Example</h2>
<p>Let’s update the <a href="https://complete-concrete-concise.com/tutorials/webdev/front-end-basics/your-first-webpage-hello-world">Hello World!</a> example to style “Hello World!” so it is rendered in yellow on a blue background:</p>
<div class="sourceCode" id="cb1">
<pre class="sourceCode html"><code class="sourceCode html"><a class="sourceLine" id="cb1-1" data-line-number="1"><span class="dt">&lt;!DOCTYPE </span>HTML<span class="dt">&gt;</span></a>
<a class="sourceLine" id="cb1-2" data-line-number="2"><span class="kw">&lt;html&gt;</span></a>
<a class="sourceLine" id="cb1-3" data-line-number="3">  <span class="kw">&lt;head&gt;</span></a>
<a class="sourceLine" id="cb1-4" data-line-number="4">    <span class="kw">&lt;title&gt;</span>Hello World<span class="kw">&lt;/title&gt;</span></a>
<a class="sourceLine" id="cb1-5" data-line-number="5">    <span class="kw">&lt;meta</span><span class="ot"> charset=</span><span class="st">&quot;utf-8&quot;</span>  <span class="kw">/&gt;</span></a>
<a class="sourceLine" id="cb1-6" data-line-number="6"></a>
<a class="sourceLine" id="cb1-7" data-line-number="7">    <span class="kw">&lt;style&gt;</span></a>
<a class="sourceLine" id="cb1-8" data-line-number="8"></a>
<a class="sourceLine" id="cb1-9" data-line-number="9">      p {</a>
<a class="sourceLine" id="cb1-10" data-line-number="10">        <span class="kw">color</span>: <span class="dv">yellow</span>;</a>
<a class="sourceLine" id="cb1-11" data-line-number="11">        <span class="kw">background-color</span>: <span class="dv">blue</span>;</a>
<a class="sourceLine" id="cb1-12" data-line-number="12">      }</a>
<a class="sourceLine" id="cb1-13" data-line-number="13"></a>
<a class="sourceLine" id="cb1-14" data-line-number="14">    <span class="kw">&lt;/style&gt;</span></a>
<a class="sourceLine" id="cb1-15" data-line-number="15"></a>
<a class="sourceLine" id="cb1-16" data-line-number="16">  <span class="kw">&lt;/head&gt;</span></a>
<a class="sourceLine" id="cb1-17" data-line-number="17">  <span class="kw">&lt;body&gt;</span></a>
<a class="sourceLine" id="cb1-18" data-line-number="18">    <span class="kw">&lt;p&gt;</span>Hello World!<span class="kw">&lt;/p&gt;</span></a>
<a class="sourceLine" id="cb1-19" data-line-number="19">  <span class="kw">&lt;/body&gt;</span></a>
<a class="sourceLine" id="cb1-20" data-line-number="20"><span class="kw">&lt;/html&gt;</span></a></code></pre>
</div>
<p>The first things you should notice are:</p>
<ol type="1">
<li>that there is a new HTML tag: <span class="html-tag">style</span><a href="#fn1" class="footnote-ref" id="fnref1"><sup>1</sup></a></li>
<li>
<p>it goes in the <span class="html-tag">head</span> section of the document. This is because it is meta-information for the document (how to render it) and not content.</p>
<p>You can put it in the <span class="html-tag">body</span> section, but this can cause problems. The HTML document is processed as it is being read. Everything in the <span class="html-tag">head</span> is processed first. Content is rendered as it is being read from the <span class="html-tag">body</span> section. When you place styles in the body, they will be applied when they are encountered. If (as an extreme example), you put the styles at the bottom of the body, the content will be first rendered using the default styling and then the new styling will be applied to it. For large or complex documents, or on slow systems this may result in the user noticing the layout or appearance changing &#8211; which is annoying.</li>
<li>
<p>the syntax for CSS (the stuff between the <span class="html-tag">style</span>) tags doesn’t look anything like HTML</p>
</li>
</ol>
<p>The <span class="html-tag">style</span> tag has a number of attributes, one of which is <strong>type</strong>. For HTML5, there is only <strong>text/css</strong>.<a href="#fn2" class="footnote-ref" id="fnref2"><sup>2</sup></a> It is not necessary to include it (since the default is <strong>type/css</strong>), but you might sometimes encounter it written as:</p>
<div class="sourceCode" id="cb2">
<pre class="sourceCode html"><code class="sourceCode html"><a class="sourceLine" id="cb2-1" data-line-number="1"><span class="kw">&lt;style</span><span class="ot"> type=</span><span class="st">&quot;text.css&quot;</span><span class="kw">&gt;</span></a></code></pre>
</div>
<h2 id="css-syntax">CSS Syntax</h2>
<p>All CSS elements have the following syntax (form):</p>
<div class="sourceCode" id="cb3">
<pre class="sourceCode css"><code class="sourceCode css"><a class="sourceLine" id="cb3-1" data-line-number="1">selector {</a>
<a class="sourceLine" id="cb3-2" data-line-number="2">  property-1<span class="in">:</span> value;</a>
<a class="sourceLine" id="cb3-3" data-line-number="3">  <span class="fu">.</span>   <span class="fu">.</span>   <span class="fu">.</span>   <span class="fu">.</span></a>
<a class="sourceLine" id="cb3-4" data-line-number="4">  <span class="fu">.</span>   <span class="fu">.</span>   <span class="fu">.</span>   <span class="fu">.</span></a>
<a class="sourceLine" id="cb3-5" data-line-number="5">  <span class="fu">.</span>   <span class="fu">.</span>   <span class="fu">.</span>   <span class="fu">.</span></a>
<a class="sourceLine" id="cb3-6" data-line-number="6">  property-n</a>
<a class="sourceLine" id="cb3-7" data-line-number="7">}</a></code></pre>
</div>
<p>Each style begins with a <strong>selector</strong>. For now, simply consider this to be the name of the HTML element without the angle brackets (<strong>&lt;</strong> and <strong>&gt;</strong>). In the example above, we styled the <strong>paragraph</strong> element:</p>
<div class="sourceCode" id="cb4">
<pre class="sourceCode css"><code class="sourceCode css"><a class="sourceLine" id="cb4-1" data-line-number="1">p {</a>
<a class="sourceLine" id="cb4-2" data-line-number="2">  <span class="kw">color</span>: <span class="dv">yellow</span>;</a>
<a class="sourceLine" id="cb4-3" data-line-number="3">  <span class="kw">background-color</span>: <span class="dv">blue</span>;</a>
<a class="sourceLine" id="cb4-4" data-line-number="4">}</a></code></pre>
</div>
<p>The style is applied to <strong>all</strong> matching HTML elements. This means that <strong>all</strong> paragraphs will be rendered with yellow text on a blue background.</p>
<p>The <strong>selector</strong> is followed by an opening curly brace (<strong>{</strong>). The element properties to be styled go between the curly braces (there are hundreds of properties).</p>
<p>Each <strong>property</strong> name is followed by a colon (<strong>:</strong>), which is followed by a value, which is followed by a semicolon (<strong>;</strong>). The semicolon is important &#8211; it indicates the end of the property definition. If you omit it, your CSS style will (probably) not work.<a href="#fn3" class="footnote-ref" id="fnref3"><sup>3</sup></a>, this is because, like HTML, unnecessary white space doesn’t matter. So the following are equivalent:</p>
<div class="sourceCode" id="cb5">
<pre class="sourceCode css"><code class="sourceCode css"><a class="sourceLine" id="cb5-1" data-line-number="1">p {</a>
<a class="sourceLine" id="cb5-2" data-line-number="2">  <span class="kw">color</span>: <span class="dv">yellow</span>;</a>
<a class="sourceLine" id="cb5-3" data-line-number="3">  <span class="kw">background-color</span>: <span class="dv">blue</span>;</a>
<a class="sourceLine" id="cb5-4" data-line-number="4">}</a>
<a class="sourceLine" id="cb5-5" data-line-number="5"></a>
<a class="sourceLine" id="cb5-6" data-line-number="6">p{<span class="kw">color</span>:<span class="dv">yellow</span>;<span class="kw">background-color</span>:<span class="dv">blue</span>;}</a></code></pre>
</div>
<p>Finally, the entire style definition ends with a closing curly brace (<strong>}</strong>).</p>
<p>The value a property takes depends on the property.</p>
<h2 id="some-css-properties">Some CSS Properties</h2>
<p>To begin with, we will only play with the two properties introduced so far:</p>
<ul>
<li><strong>color</strong>: this sets the colour<a href="#fn4" class="footnote-ref" id="fnref4"><sup>4</sup></a> of the text</li>
<li><strong>background-color</strong>: this sets the background colour of the element</li>
</ul>
<p>Each of them takes a colour as a value. The colour can be specified as a name (there are 147 different named colours) or as a number.</p>
<p>When represented as a number, colours can take a number of forms, but, for now, we will only consider the following two:</p>
<ul>
<li>hexadecimal (this is the most common)</li>
<li>rgb (short for Red-Green-Blue)</li>
</ul>
<h3 id="hexadecimal">Hexadecimal</h3>
<p>Examples of colours in hexadecimal notation (using the same colours as in the previous example):</p>
<div class="sourceCode" id="cb6">
<pre class="sourceCode css"><code class="sourceCode css"><a class="sourceLine" id="cb6-1" data-line-number="1">p {</a>
<a class="sourceLine" id="cb6-2" data-line-number="2">  <span class="kw">color</span>: <span class="dv">#FFFF00</span>;</a>
<a class="sourceLine" id="cb6-3" data-line-number="3">  <span class="kw">background-color</span>: <span class="dv">#0000FF</span>;</a>
<a class="sourceLine" id="cb6-4" data-line-number="4">}</a></code></pre>
</div>
<p>Hexadecimal notation is very common and it is worth learning.</p>
<p>We are most familiar with decimal which is a <strong>base 10</strong> positional number system composed of the 10 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.</p>
<p>The first group is called units, the second group is 10s of units, the third group is 10s of 10s (or hundreds):</p>
<pre><code>  1 - 1 unit
 12 - 1 ten and 2 units
123 - 1 hundred, 2 tens and 3 units</code></pre>
<p>Hexadecimal is a similar positional system, except that it is <strong>base 16</strong> and composed of the 16 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F.</p>
<p>The first group is units (0 to F = 0 to 15 in decimal), the second group is 16s of units (10 in hexadecimal is equal to 16 in decimal), the third group is 16s of 16s (or 256 in decimal):</p>
<pre><code>  1 - 1 unit
 12 - 1 16 and 2 units (18 in decimal)
123 - 1 256 and 2 16s and 3 units (291 in decimal)</code></pre>
<p>In general, you don’t need to be able to count more than FF (255 in decimal) in hexadecimal.</p>
<p>To distinguish hexadecimal numbers from decimal numbers, they are prefixed with the pound (<strong>#</strong>) sign:</p>
<pre><code>#33 = 51 decimal
#0A = 10 decimal
#FE = 254 decimal</code></pre>
<p>Colours in hexadecimal are written in the form <strong>#RRGGBB</strong>, the R stands for the red colour, G for the green colour, B for the blue colour. The colours take a value between #00 (minimum colour value) and #FF (maximum colour value). Consider the following:</p>
<pre><code>#000000 - black
#FFFFFF - white
#FF0000 - maximum red value
#00FF00 - maximum green value
#0000FF - maximum blue value
#FFFF00 - maximum red and green values (yellow)
#FF00FF - maximum red and blue values (purple)
#00FFFF - maximum green and blue values (cyan)
#F0F8FF - a pale blue (aliceblue)</code></pre>
<p>Most of the time, colours are given in hexadecimal.</p>
<p>There is a shorthand version of this notation: you can write the colour in the form #RGB if the two digits of each colour are the same, so #FFF is the same as #FFFFFF, #707 is the same as #770077</p>
<h3 id="rgb">RGB</h3>
<p>Another way to represent colours is to use RGB values (Red-Green-Blue). These are represented in decimal notation instead of hexadecimal (using the same example as above):</p>
<div class="sourceCode" id="cb11">
<pre class="sourceCode css"><code class="sourceCode css"><a class="sourceLine" id="cb11-1" data-line-number="1">p {</a>
<a class="sourceLine" id="cb11-2" data-line-number="2">  <span class="kw">color</span>: RGB(<span class="dv">255</span>, <span class="dv">255</span>, <span class="dv">0</span>);</a>
<a class="sourceLine" id="cb11-3" data-line-number="3">  <span class="kw">background-color</span>: RGB(<span class="dv">0</span>, <span class="dv">0</span>, <span class="dv">255</span>);</a>
<a class="sourceLine" id="cb11-4" data-line-number="4">}</a></code></pre>
</div>
<p>In hexadecimal, individual colour values go from #00 to #FF. In RGB, individual colour values go from 0 to 255.</p>
<p>You need to use the RGB function to convert RGB values into a value the property can use.</p>
<p>The same colour examples from above written using RGB:</p>
<pre><code>RGB(0, 0, 0) - black
RGB(255, 255, 255) - white
RGB(255, 0, 0) - maximum red value
RGB(0, 255, 0) - maximum green value
RGB(0, 0, 255) - maximum blue value
RGB(255, 255, 0) - maximum red and green values (yellow)
RGB(255, 0, 255) - maximum red and blue values (purple)
RGB(0, 255, 255) - maximum green and blue values (cyan)
RGB(240, 248, 255) - a pale blue (aliceblue)</code></pre>
<p>The hexadecimal notation is much more compact.</p>
<h2 id="conclusion">Conclusion</h2>
<ol type="1">
<li>HTML provides the structure for your document. CSS provides the styling: layout, colours, typography, etc.</li>
<li>Styling can be placed in the <span class="html-tag">head</span> section of your document.</li>
<li>Because document processing is linear, placing styling in the <span class="html-tag">body</span> section of your document will cause the web browser (<em>user-agent</em>) to start with the default styling and then update with the new styling &#8211; that may cause an annoying page refresh.</li>
<li>Styling appears between <span class="html-tag">style</span> tags.</li>
<li>CSS syntax is different from HTML syntax.</li>
<li>CSS styling begins with a <strong>selector</strong> &#8211; in this section, we have only used HTML tag names as selectors.</li>
<li>The style applies to <strong>all</strong> elements matching the selector. If we style the <span class="html-tag">p</span> tag, <strong>all</strong> <span class="html-tag">p</span> elements in the document will be styled.</li>
<li>
<p>All CSS styling consists of a list of properties followed by a value for that property:</p>
<div class="sourceCode" id="cb13">
<pre class="sourceCode css"><code class="sourceCode css"><a class="sourceLine" id="cb13-1" data-line-number="1">selector {</a>
<a class="sourceLine" id="cb13-2" data-line-number="2">  property-1<span class="in">:</span> value;</a>
<a class="sourceLine" id="cb13-3" data-line-number="3">  <span class="fu">.</span>   <span class="fu">.</span>   <span class="fu">.</span>   <span class="fu">.</span></a>
<a class="sourceLine" id="cb13-4" data-line-number="4">  <span class="fu">.</span>   <span class="fu">.</span>   <span class="fu">.</span>   <span class="fu">.</span></a>
<a class="sourceLine" id="cb13-5" data-line-number="5">  <span class="fu">.</span>   <span class="fu">.</span>   <span class="fu">.</span>   <span class="fu">.</span></a>
<a class="sourceLine" id="cb13-6" data-line-number="6">  property-n</a>
<a class="sourceLine" id="cb13-7" data-line-number="7">}</a></code></pre>
</div>
</li>
<li>Each element in the list must be terminated with a semicolon (<strong>;</strong>).</li>
<li>The <strong>color</strong> property sets the colour of the text contained by the HTML tags. It takes a colour value, which can be:
<ol type="1">
<li>A named colour (e.g. <strong>aliceblue</strong>)</li>
<li>A hexadecimal colour value (e.g. #F0F8FF)</li>
<li>An RGB colour value (e.g. RGB(240, 248, 255))</li>
</ol>
</li>
<li>The <strong>background-color</strong> property sets the colour of the background of the HTML element. It takes a colour value, which can be:
<ol type="1">
<li>A named colour (e.g. <strong>yellow</strong>)</li>
<li>A hexadecimal colour value (e.g. #FFFF00)</li>
<li>An RGB colour value (e.g. RGB(255, 255, 0))</li>
</ol>
</li>
<li>All selectors, property names, hexadecimal colours are case-insensitive.</li>
<li>The <strong>RGB</strong> function is case-insensitive. You can use <strong>rgb</strong> instead.</li>
<li>Hexadecimal colours are more common and more compact than RGB colours.</li>
<li>
<p>Hexadecimal colours can be written using the shorter form <strong>#RGB</strong> if each of the colour components consists of doubled values. e.g. #11FF44 can be written as #1F4.</p>
</li>
</ol>
<p>These are 16 basic, named CSS colours:</p>
<ol type="1">
<li><span style="background:black;"> </span> black</li>
<li><span style="background:silver;"> </span> silver</li>
<li><span style="background:gray;"> </span> gray</li>
<li><span style="background:white;"> </span> white</li>
<li><span style="background:maroon;"> </span> maroon</li>
<li><span style="background:red;"> </span> red</li>
<li><span style="background:purple;"> </span> purple</li>
<li><span style="background:fuchsia;"> </span> fuchsia</li>
<li><span style="background:green;"> </span> green</li>
<li><span style="background:lime;"> </span> lime</li>
<li><span style="background:olive;"> </span> olive</li>
<li><span style="background:yellow;"> </span> yellow</li>
<li><span style="background:navy;"> </span> navy</li>
<li><span style="background:blue;"> </span> blue</li>
<li><span style="background:teal;"> </span> teal</li>
<li><span style="background:aqua;"> </span> aqua</li>
</ol>
<h2 id="playing-around">Playing Around</h2>
<p>The best way to learn is to play around with what you have learned.</p>
<p>This tutorial is a very basic introduction to CSS. Two very important concepts we will cover in the next few tutorials are HTML flow and the CSS Box Model.</p>
<p>I recommend you create a webpage using the tags you have learned so far. I strongly recommend styling different background colours for each element (it will make them stand out better) and see what is happening as you intermingle and nest various elements.</p>
<p>You can use the following sample code as a starting point:</p>
<ul>
<li>Style one element at a time and see what happens.</li>
<li>Then style multiple elements and see what happens.</li>
<li>Try using named colours, hexadecimal, and RGB colours.</li>
<li>Style only the <strong>color</strong>.</li>
<li>Style only the <strong>background-color</strong>.</li>
<li>Style the <strong>color</strong> of an enclosing element (parent) and style the <strong>background-color</strong> of an enclosed element (child)</li>
</ul>
<div class="sourceCode" id="cb14">
<pre class="sourceCode html"><code class="sourceCode html"><a class="sourceLine" id="cb14-1" data-line-number="1"><span class="dt">&lt;!DOCTYPE </span>HTML<span class="dt">&gt;</span></a>
<a class="sourceLine" id="cb14-2" data-line-number="2"><span class="kw">&lt;html&gt;</span></a>
<a class="sourceLine" id="cb14-3" data-line-number="3">  <span class="kw">&lt;head&gt;</span></a>
<a class="sourceLine" id="cb14-4" data-line-number="4">    <span class="kw">&lt;title&gt;</span>Hello World<span class="kw">&lt;/title&gt;</span></a>
<a class="sourceLine" id="cb14-5" data-line-number="5">    <span class="kw">&lt;meta</span><span class="ot"> charset=</span><span class="st">&quot;utf-8&quot;</span>  <span class="kw">/&gt;</span></a>
<a class="sourceLine" id="cb14-6" data-line-number="6"></a>
<a class="sourceLine" id="cb14-7" data-line-number="7">    <span class="kw">&lt;style&gt;</span></a>
<a class="sourceLine" id="cb14-8" data-line-number="8"></a>
<a class="sourceLine" id="cb14-9" data-line-number="9">      body {</a>
<a class="sourceLine" id="cb14-10" data-line-number="10"></a>
<a class="sourceLine" id="cb14-11" data-line-number="11">      }</a>
<a class="sourceLine" id="cb14-12" data-line-number="12"></a>
<a class="sourceLine" id="cb14-13" data-line-number="13">      h1 {</a>
<a class="sourceLine" id="cb14-14" data-line-number="14"></a>
<a class="sourceLine" id="cb14-15" data-line-number="15">      }</a>
<a class="sourceLine" id="cb14-16" data-line-number="16"></a>
<a class="sourceLine" id="cb14-17" data-line-number="17">      h2 {</a>
<a class="sourceLine" id="cb14-18" data-line-number="18"></a>
<a class="sourceLine" id="cb14-19" data-line-number="19">      }</a>
<a class="sourceLine" id="cb14-20" data-line-number="20"></a>
<a class="sourceLine" id="cb14-21" data-line-number="21">      p {</a>
<a class="sourceLine" id="cb14-22" data-line-number="22"></a>
<a class="sourceLine" id="cb14-23" data-line-number="23">      }</a>
<a class="sourceLine" id="cb14-24" data-line-number="24"></a>
<a class="sourceLine" id="cb14-25" data-line-number="25">      li {</a>
<a class="sourceLine" id="cb14-26" data-line-number="26"></a>
<a class="sourceLine" id="cb14-27" data-line-number="27">      }</a>
<a class="sourceLine" id="cb14-28" data-line-number="28"></a>
<a class="sourceLine" id="cb14-29" data-line-number="29">      ol {</a>
<a class="sourceLine" id="cb14-30" data-line-number="30"></a>
<a class="sourceLine" id="cb14-31" data-line-number="31">      }</a>
<a class="sourceLine" id="cb14-32" data-line-number="32"></a>
<a class="sourceLine" id="cb14-33" data-line-number="33">      ul {</a>
<a class="sourceLine" id="cb14-34" data-line-number="34"></a>
<a class="sourceLine" id="cb14-35" data-line-number="35">      }</a>
<a class="sourceLine" id="cb14-36" data-line-number="36"></a>
<a class="sourceLine" id="cb14-37" data-line-number="37">      strong {</a>
<a class="sourceLine" id="cb14-38" data-line-number="38"></a>
<a class="sourceLine" id="cb14-39" data-line-number="39">      }</a>
<a class="sourceLine" id="cb14-40" data-line-number="40"></a>
<a class="sourceLine" id="cb14-41" data-line-number="41">      mark {</a>
<a class="sourceLine" id="cb14-42" data-line-number="42"></a>
<a class="sourceLine" id="cb14-43" data-line-number="43">      }</a>
<a class="sourceLine" id="cb14-44" data-line-number="44"></a>
<a class="sourceLine" id="cb14-45" data-line-number="45">      a {</a>
<a class="sourceLine" id="cb14-46" data-line-number="46"></a>
<a class="sourceLine" id="cb14-47" data-line-number="47">      }</a>
<a class="sourceLine" id="cb14-48" data-line-number="48"></a>
<a class="sourceLine" id="cb14-49" data-line-number="49">    <span class="kw">&lt;/style&gt;</span></a>
<a class="sourceLine" id="cb14-50" data-line-number="50"></a>
<a class="sourceLine" id="cb14-51" data-line-number="51">  <span class="kw">&lt;/head&gt;</span></a>
<a class="sourceLine" id="cb14-52" data-line-number="52">  <span class="kw">&lt;body&gt;</span></a>
<a class="sourceLine" id="cb14-53" data-line-number="53">    <span class="kw">&lt;h1&gt;</span>This is a heading (for testing purposes)<span class="kw">&lt;/h1&gt;</span></a>
<a class="sourceLine" id="cb14-54" data-line-number="54"></a>
<a class="sourceLine" id="cb14-55" data-line-number="55">    <span class="kw">&lt;p&gt;</span>Paragraphs are the bread and butter of HTML.<span class="kw">&lt;/p&gt;</span></a>
<a class="sourceLine" id="cb14-56" data-line-number="56"></a>
<a class="sourceLine" id="cb14-57" data-line-number="57">    <span class="kw">&lt;p&gt;</span>They can include <span class="kw">&lt;strong&gt;</span>strong<span class="kw">&lt;/strong&gt;</span> tags.</a>
<a class="sourceLine" id="cb14-58" data-line-number="58">    <span class="kw">&lt;/p&gt;</span></a>
<a class="sourceLine" id="cb14-59" data-line-number="59"></a>
<a class="sourceLine" id="cb14-60" data-line-number="60">    <span class="kw">&lt;ol&gt;</span></a>
<a class="sourceLine" id="cb14-61" data-line-number="61">      <span class="kw">&lt;li&gt;</span>Lists are cool!<span class="kw">&lt;/li&gt;</span></a>
<a class="sourceLine" id="cb14-62" data-line-number="62">      <span class="kw">&lt;li&gt;</span>The list things.<span class="kw">&lt;/li&gt;</span></a>
<a class="sourceLine" id="cb14-63" data-line-number="63">      <span class="kw">&lt;li&gt;</span>This one has an <span class="kw">&lt;i&gt;</span>i<span class="kw">&lt;/i&gt;</span> inside.<span class="kw">&lt;/li&gt;</span></a>
<a class="sourceLine" id="cb14-64" data-line-number="64">      <span class="kw">&lt;li&gt;&lt;p&gt;</span>This one contains a <span class="dv">&amp;lt;</span>ul<span class="dv">&amp;gt;</span>:<span class="kw">&lt;/p&gt;</span></a>
<a class="sourceLine" id="cb14-65" data-line-number="65">        <span class="kw">&lt;ul&gt;</span></a>
<a class="sourceLine" id="cb14-66" data-line-number="66">          <span class="kw">&lt;li&gt;</span>Item 1<span class="kw">&lt;/li&gt;</span></a>
<a class="sourceLine" id="cb14-67" data-line-number="67">          <span class="kw">&lt;li&gt;&lt;mark&gt;</span>Marked item<span class="kw">&lt;/mark&gt;&lt;/li&gt;</span></a>
<a class="sourceLine" id="cb14-68" data-line-number="68">          <span class="kw">&lt;li&gt;</span>Final item<span class="kw">&lt;/li&gt;</span></a>
<a class="sourceLine" id="cb14-69" data-line-number="69">        <span class="kw">&lt;/ul&gt;</span></a>
<a class="sourceLine" id="cb14-70" data-line-number="70">        <span class="kw">&lt;li&gt;&lt;h2&gt;</span>What happens with an h2?<span class="kw">&lt;/h2&gt;&lt;/li&gt;</span></a>
<a class="sourceLine" id="cb14-71" data-line-number="71">      <span class="kw">&lt;li&gt;</span>Final order<span class="kw">&lt;/li&gt;</span></a>
<a class="sourceLine" id="cb14-72" data-line-number="72">    <span class="kw">&lt;/ol&gt;</span></a>
<a class="sourceLine" id="cb14-73" data-line-number="73"></a>
<a class="sourceLine" id="cb14-74" data-line-number="74">    <span class="kw">&lt;p&gt;</span>A final paragraph with a dummy</a>
<a class="sourceLine" id="cb14-75" data-line-number="75">      <span class="kw">&lt;a</span><span class="ot"> href=</span><span class="st">&quot;#&quot;</span><span class="kw">&gt;</span>link<span class="kw">&lt;/a&gt;</span> inside it.<span class="kw">&lt;/p&gt;</span></a>
<a class="sourceLine" id="cb14-76" data-line-number="76"></a>
<a class="sourceLine" id="cb14-77" data-line-number="77">  <span class="kw">&lt;/body&gt;</span></a>
<a class="sourceLine" id="cb14-78" data-line-number="78"><span class="kw">&lt;/html&gt;</span></a></code></pre>
</div>
<h2 id="references">References</h2>
<ol type="1">
<li><a href="https://www.w3.org/TR/css-color-3/#svg-color">List of all 147 named CSS colours</a></li>
<li><a href="https://www.w3.org/TR/css-color-3/#foreground">Color property</a></li>
<li><a href="https://www.w3.org/TR/css-backgrounds-3/#the-background-color">Background-color property</a></li>
</ol>
<div class="prev">
<p><a href="https://complete-concrete-concise.com/tutorials/webdev/front-end-basics/html-basic-conclusion">Prev</a></p>
</div>
<div class="next">
<p><a href="%22https://complete-concrete-concise.com/tutorials/webdev/front-end-basics/a-basic-css-example%22">Next</a></p>
</div>
<div class="clear">
</div>
<section class="footnotes">
<hr />
<ol>
<li id="fn1">
<p>For simplicity, we include the CSS in our HTML files. A future tutorial will show you how to place the CSS in its own separate file.<a href="#fnref1" class="footnote-back">↩</a></p>
</li>
<li id="fn2">
<p>For <strong>xml</strong>, there is <strong>text/xsl</strong>. However, we are not covering <strong>xml</strong> in this tutorial series.<a href="#fnref2" class="footnote-back">↩</a></p>
</li>
<li id="fn3">
<p>The semicolon is optional for the last property in a style definition because the closing curly brace marks the end of the style. Even so, it is always better to include it.<a href="#fnref3" class="footnote-back">↩</a></p>
</li>
<li id="fn4">
<p>Notice that property names use American spelling, not Canadian or British spelling.<a href="#fnref4" class="footnote-back">↩</a></p>
</li>
</ol>
</section>
<p>The post <a href="https://complete-concrete-concise.com/tutorials/webdev/front-end-basics/introducing-css/">Introducing CSS</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
