HTML and CSS code syntax
We will use the following conventions in this course. Although many variations and exceptions to these rules exist, adopting these conventions will foster good coding habits that will be applicable to most coding situations in the foreseeable future. Many of these conventions will be required as web standards migrate from transitional to strict. | |
HTML syntax | <h4 align="center">This is a heading4 element aligned to the center.</h4>HTML syntax is in the format: <tag attribute="value">content goes here</tag> |
CSS syntax |
h4 { Applying this style re-defines the h4 tag's color and typographical settings. <h4 align="center">This is a heading4 element aligned to the center.</h4>CSS syntax is in the format: selector {property: value;} |