Prev | Current Page 1080 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


The selectors can be used to select elements by name as shown previously, to select elements that have
the same class value (the selector is prefixed with a dot, . ) or to select a specific element by id (the select
is prefixed with # ).
Selectors can be combined to define stricter rules.
td a.detail {
color: green;
}
The preceding example applies the formatting instructions to all the a elements with the class value
detail and contained in a table cell.
Style sheets can be embedded directly in a HTML document using the style element, or included in an
external resource (a file with .css extension whose content only defines CSS rules). In the latter case the
link element is used as in the following example:
< link rel=???stylesheet??? type=???text/css??? href=???/assets/main.css??? / >
Scripts are pieces of code embedded in the pages that can provide a richer and more interactive user
experience. The programming language adopted as a standard on every modern browser is JavaScript.
With JavaScript, a developer can add many functions from simple visual effects (for example interactively
showing and hiding portions of the document) to more complex and useful validation functions
for input controls.


Pages:
1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092