• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Review answers

1:How do styles differ from basic HTML formatting?
A1: HTML controls the structure of information (for example, different relative headings), but not its presentation. Style sheets let Web designers enhance HTML's formatting with precise positioning of text, control over type, and formatting of other elements on the page. For example, style sheets can be used to apply font size and color, margin widths, and even the background color to a document.
2:What does cascading mean when used to describe style sheets?
A2: One or more cascading style sheets (CSS) can be attached to a document to influence the document's presentation. For example, a browser, then a designer, and then the individual viewer can all attach style sheets to a document. The influence of several style sheets "cascades" so that only one value is applied, typically that from the designer's style sheet. Styles within a style sheet also cascade, and apply progressively to a document. In addition, if a document uses multiple style sheets, the latest style sheet can override previously applied style sheets if they share the same tags; or it can enhance previously applied style sheets .
3:Why would a browser not display styles applied to a document?
A3: A Web browser must support CSS1 selector elements to recognize and properly interpret style sheets. Currently, all version 4.0 browsers display only a few style properties, and the browsers vary in which properties they support.
4:How can you ensure that your style sheets work on the widest range of browsers?
A4: To use style sheets successfully, it's important to stay current with what style sheet properties are supported by current browsers; to experiment with applying different properties to different HTML elements; and always to preview the results in the current browsers to test your style sheet's effectiveness.
5:What tools do you use in Adobe GoLive to create a style sheet?
A5: Three Adobe GoLive tools let you create and edit style sheets and link to external style sheets: the Style Sheet window, the Style Sheet toolbar, and the CSS Selector Inspector.
6:What is the difference between an internal and external style sheet?
A6: Internal style sheets are part of a document and are saved with it. They must be defined individually for each page to which their formatting will apply. External style sheets can apply to a group of documents or to an entire site. You can then refer to this external style sheet from any page to make its style options available.
7:What is the difference between a class and element selector?
A7: Element selectors are applied automatically by Adobe GoLive to their corresponding HTML elements and are fully compatible with browsers that can't read CSS1 information. Perhaps the most flexible selectors, element selectors let you reformat the visible part of an HTML document based on its structure.

Class selectors apply style formatting to specific instances of a text block, rather than all instances that share a common HTML element. Unlike element selectors, class selectors are independent of the document's structure; they are defined by the designer but must be manually applied.

8:What's the advantage of using an external style sheet to set the color of hypertext or the page background?
A8: When you set the color or attributes of hypertext or the page background using an external style sheet, you can then change the hypertext or backgrounds of all pages that use that style sheet with a single procedure.



Not a subscriber?

Start A Free Trial

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint