Discover Africa through a Safari


What you need to know about CSS!

What you need to know about CSS! Style sheetquicker page downloads. For example, the HTML
is a progressive breakthrough for theelement h2 specifies that the text contained
advancement of web. Today, more and morewithin it is a level two heading. It has a
browsers are implementing style sheets,lower level of importance than h1 headings,
opening authors' eyes to unique features thatbut a higher level of importance than h3
allow influence over presentation whileheadings. This aspect of the h2 element is
preserving platform independence. Thestructural . Customarily, headings are
advantages of style sheets have become -rendered in decreasing order of size, with h1
apparent -- and the disadvantage ofas the largest, because larger headings are
continually creating more HTML tags -- galoreusually interpreted to have greater
-- for presentation effects with the gradualimportance than smaller ones. Headings are
development of CSS. Let's understand CSS inalso typically rendered in a bold font in
the right perspective. Style sheets inorder to give them additional emphasis. The
retrospect Style sheets have been around inh2 element may be rendered in bold face, and
one form or another since the beginnings ofin a font larger than h3 but smaller than h1
HTML in the early 1990s . As the HTML. This aspect of the h2 element is
language grew, however, it came to encompasspresentational . Prior to CSS, document
a wider variety of stylistic capabilities toauthors who wanted to assign a specific
meet the demands of web developers . Withcolor, font, size, or other characteristic to
such capabilities, style sheets became lessall h2 headings had to use the HTML font
important, and an external language for theelement for each occurrence of that heading
purposes of defining style attributes was nottype. Moreover, CSS can be used with XML, to
widely accepted until the development of CSS.allow such structured documents to be
Teething problems with implementation of CSSrendered with full stylistic control over
Many implementations of CSS are fraught withlayout, typography, color, and so forth in
inconsistencies, bugs and other quirks .any suitable user agent or web browser. CSS
Authors have commonly had to use hacks andhas its share of inconsistencies as well CSS
workarounds in order to obtain consistentmay at times be misused, particularly by the
results across web browsers and platforms .author of web documents. Some developers who
One of the most well-known CSS bugs is theare accustomed to designing documents
Internet Explorer box model bug; box widthsstrictly in HTML may overlook or ignore the
are interpreted incorrectly in severalenabling features of CSS. For instance, a
versions of the browser, resulting in blocksdocument author who is comfortable with HTML
which appear as expected in most browsers,markup that mixes presentation with structure
but are too narrow when viewed in Internetmay opt to use strictly embedded CSS styles
Explorer. The bug can be avoided, but notin all documents. While this may be an
without some cost in terms of functionality.improvement over using deprecated HTML
This is just one of hundreds of CSS bugs thatpresentational markup, it suffers from some
have been documented in various versions ofof the same problems that mixed-markup HTML
Internet Explorer, Netscape, Mozilla, anddoes; specifically, it entails a similar
Opera many of which reduce the legibility ofamount of document maintenance. Discrepancies
documents. The proliferation of such bugs incompared: CSS vs programming languages CSS
CSS implementations has made it difficult foralso shares some pitfalls common with
designers to achieve a consistent appearanceprogramming languages. In particular, the
across platforms. Currently there is strongproblem of choosing appropriate names for CSS
competition between Mozilla's Gecko layoutclasses and identifiers may afflict CSS
engine, Opera's Presto layout engine , andauthors. In the attempt to choose descriptive
the KHTML engine used in both Apple's Safarinames for CSS classes, authors might
and the Linux Konqueror browsers - each ofassociate the class name with desired
them is leading in different aspects of CSS.presentational attributes; for example, a CSS
Internet Explorer remains the worst atclass to be applied to emphasized text might
rendering CSS by standards set down by Worldbe named "bigred," implying that it is
Wide Web Consortium as of 2005 . Somerendered in a large red font. While such a
breakthroughs … These problems havechoice of naming may be intuitive to the
preisely led the W3C to revise the CSS2document author, it can cause problems if the
standard into CSS2.1, which may be regardedauthor later decides that the emphasized text
as something of a working snapshot of currentshould instead be green; the author is left
CSS support. CSS2 properties which no browserwith a CSS class called "bigred" that
had successfully implemented were dropped,describes something that is green. In this
and in a few cases, defined behaviours wereinstance, a more appropriate class name might
changed to bring the standard into line withhave been "emphasized," to better describe
the predominant existing implementations..the purpose or intent of the class, rather
What makes style sheets significant enough?than the appearance of elements of that
et representsStyle she an enormous stepclass. In a programming language, such a
forward for the Web. With the separation ofmisuse might be analogous to using a variable
content and presentation between HTML andname "five" for a variable which contains the
style sheets, the Web no longer needs tovalue 5; however, if the value of the
drift away from the strong ideal of platformvariable changes to 7, the name is no longer
independence that provided the medium withappropriate. CSS in a nutshell CSS is used by
its initial push of popularity. Authors canboth the authors and readers of web pages to
finally influence the presentation ofdefine colors, fonts, layout and other
documents without leaving pages unreadable toaspects of document presentation. It is
users A style sheet is made up of style rulesdesigned primarily to enable the separation
that tell a browser how to present aof document structure (written in HTML or a
document. There are various ways of linkingsimilar markup language) from document
these style rules to your HTML documents, butpresentation (written in CSS). This
the simplest method for starting out is toseparation provides a number of benefits,
use HTML's STYLE element. This element isincluding improved content accessibility,
placed in the document HEAD, and it containsgreater flexibility and control in the
the style rules for the page. Functionalityspecification of presentational
and Usage of CSS CSS is well-designed tocharacteristics, and reduced complexity of
allow the separation of presentation andthe structural content. CSS is also capable
structure. Prior to CSS, nearly all of theof controlling the document's style
presentational attributes of an HTML documentseparately in alternative rendering methods,
were contained within the HTML code; all fontsuch as on-screen in print, by voice (when
colors, background styles, elementread out by a speech-based browser or screen
alignments, borders and sizes had to bereader) and on braille-based, tactile
explicitly described, often repeatedly, indevices. CSS allows complete and total
the midst of the HTML code. CSS allowscontrol over the style of a hypertext
authors to move much of that information to adocument. The only way this can be
stylesheet, resulting in considerably simplerillustrated in a way that gets people excited
HTML code. The HTML documents become muchis by demonstrating what it can truly be,
smaller and web browsers will usually cacheonce the reins are placed in the hands of
sites' CSS stylesheets. This leads to athose able to create beauty from structure.
reduction in network traffic and noticeably



1 A B C D E 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111