Replaced elements (elements Replaced)
Another distinction to remember is that between non-replaced elements and replaced elements. The first are the items in a user agent (the "engine" and the mind of a browser) knows only the intrinsic dimensions. That is, those whose height and width are defined by the element itself and not by what surrounds it. The most characteristic element is replaced <img> (image tag). Other elements are replaced: <input>, <textarea>, <select> and <object> . All other elements are generally considered not replaced. The distinction is important because some properties are different for the treatment of one or the other category, while other support is only the first but not the second.
Tree of a document
Another fundamental concept is to assimilate and profit from the tree of a document. The basic mechanism of CSS is in fact the inheritance. It means that many properties that are set for an item automatically be inherited by his descendants. Knowing how to unravel in the tree well means mastering the mechanism and harness the power of language. Presenting a snippet of HTML code:
Code:
<html>
<head>
<title> Document Structure </ title>
</ Head>
<body>
<h1> Title </ h1>
<div>
<p> <a href="page.htm"> First paragraph </ a> </ p>
</ Div>
According <p> <b> paragraph </ b> </ p>
</ Body>
</ Html>
Bookmarks