I'm Dudley Storey, the author of Pro CSS3 Animation. This is my blog, where I talk about web design and development with HTML, CSS and SVG. To receive more information, including news, updates, and tips, you should follow me on Twitter or add me on Google+.

my books

Pro CSS3 Animation, Apress, 2013

Using SVG with CSS3 and HTML5, O'Reilly, 2017

my other blogs

Massive Head Canon: Intelligent discussion of movies, books, games, and technology.

my projects

The New Defaults — A Sass color keyword system for designers. Replaces CSS defaults with improved hues and more memorable, relevant color names.

CSSslidy — an auto-generated #RWD image slider. 3.8K of JS, no JQuery.

HTML

The doctype goes first in the code of every page you do from now on. The code that follows it will be HTML, so we need to discuss that next.

HTML is specified through the use of tags, also known as elements. A tag is specified between < (less than) and > (greater than) symbols. Tags specify what content is. The thing influenced by the tag – the content – is either inside the tag itself, or between opening and closing tags. With very few exceptions, the closing version of a tag is always the first word used in the opening tag with a slash (/) in front of it. For example, a paragraph would be specified as follows:

  1. <p>This is a paragraph</p>

Note that the closing tag shows where the thing being talked about (a paragraph, in this case) ends. Without the closing tag, everything that occurred after the opening <p> would be assumed to be a paragraph, unless it had specific markup of its own.

Most tags have attributes. Attributes are always written inside the opening tag, and almost always (with very few exceptions) take the form x="y". Attributes add more information to the tag: specifying how it appears, but adding information on what it means. In the example above, we have defined the word SAIT to be an acronym by using the appropriate tag. The title attribute for the tag defines what SAIT stands for.

This site helps millions of visitors while remaining ad-free. For less than the price of a cup of coffee, you can help pay for bandwidth and server costs while encouraging further articles.