HTML Basics

At the heart of HTML are tags and properties associated with tags. See the example below:

<tagname style="property:value;">

You can apply styling to any tag, including styles such as background color and color:

<h1 style="background-color:powderblue;">This is a heading</h1>
<p style="background-color:tomato;">This is a paragraph.</p>
<h1 style="color:blue;">This is a heading</h1>
<p style="color:red;">This is a paragraph.</p>

Try it out yourself:

on jsbin.com
Lesson Content