Author: Derek Duban
http://upwithabang.com/, for how-to docs on web development and free plug-in services for your site.
Ideally, the HTML of a web page tells the browser only the message of a page (example 'Buy Discount carpets!') how the message appears in the browser, it's formatting such as font colours, are not given by the HTML. The appearance of HMTL is dedicated by "style". You attach style to each element of the HTML.
Let's cut to the chase. In the left-hand box is HTML, in the right-hand box is style.
<p> <strong>The Frost</strong> performs its secret ministry, | p { font-size: 12px; color: blue; } strong { font-weight: bold; font-size: 14px; } em { font-decoration: underline; color: red; } |
The Frost performs its secret ministry, |
Note that each browser has default styles that it applies to each HMTL element type. For example: the <strong> element is usually shown in bold.![]()
