SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 61 | Next

Craig Grannell

"The Essential Guide to CSS and HTML Web Design"

In some browsers (notably Internet Explorer), however, this can cause a
???flash??? of unstyled content before the page is loaded. This flash doesn??™t occur when a link
element is also present. In the full site designs in Chapter 10, you??™ll note that both methods
are used??”@import for importing the main style sheet for screen and link for linking
to a print style sheet.
Remember that we??™re working with XHTML in this book, hence the trailing slash on
the link tag, a tag that has no content.
There are other types of selectors used for specific tasks. These will be covered as relevant
later in the book.
AN INTRODUCTION TO WEB DESIGN
15
1
The style tag can also be used to embed CSS directly into the head section of a specific
HTML document, like this:



You??™ll find that many visual web design tools create CSS in this manner, but adding rules to
a style element is only worth doing if you have a one-page website, or if you want to
affect tags on a specific page, overriding those in an attached style sheet (see the next section
for more information). There??™s certainly no point in adding styles like this to every
page, because updating them would then require every page to be updated, rather than
just an external style sheet.
The third method of applying CSS is to do so as an inline style, directly in an element??™s
HTML tag:

This paragraph will be displayed in blue.


Pages:
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73

hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6