HTML/CSS Vocabulary and Syntax

Here is a summary of the most important vocabulary terms that pertain to the structure and appearance of web pages. The following code snippet illustrates each of the terms:

<h2 id="s1" style="font-size:20px; text-align:center;">Section 1</h2>

Click or tap on any of the boldface terms below to highlight the corresponding portion of the example:

So in the code snippet above, there are two CSS properties that are specified in the style attribute, which is one of two attributes specified in the opening tag of the h2 HTML element. Got it? :)

Copyright © 2014, Daniel V. Schroeder More HTML5 resources