HTML BASICS—Simple Use of Color

Adding background color to your web page

 

Adding text color to your web page

Aligning text:

Basic inline styles:

The preferred method of formatting web pages is through STYLES known as CSS. We will discuss this in more detail later, but for now here is what you need to know:

<style="property:value">

Examples of inline styles:

<span style="color:red">I am red!</span>

<span style=“color: red; font-size: 24pt”>Big red words!</span>

(note a semicolon between multiple properties)