What You Need to Know About CSS!

Style sheet is a progressive breakthrough for thetwo heading. It has a lower level of importance than
advancement of web. Today, more and moreh1 headings, but a higher level of importance than h3
browsers are implementing style sheets, openingheadings. This aspect of the h2 element is structural
authors' eyes to unique features that allow influence.Customarily, headings are rendered in decreasing
over presentation while preserving platformorder of size, with h1 as the largest, because larger
independence. The advantages of style sheets haveheadings are usually interpreted to have greater
become - apparent -- and the disadvantage ofimportance than smaller ones. Headings are also
continually creating more HTML tags -- galore -- fortypically rendered in a bold font in order to give them
presentation effects with the gradual developmentadditional emphasis. The h2 element may be rendered
of CSS.Let's understand CSS in the rightin bold face, and in a font larger than h3 but smaller
perspective.Style sheets in retrospectStyle sheetsthan h1 . This aspect of the h2 element is
have been around in one form or another since thepresentational .Prior to CSS, document authors who
beginnings of HTML in the early 1990s .As the HTMLwanted to assign a specific color, font, size, or other
language grew, however, it came to encompass acharacteristic to all h2 headings had to use the HTML
wider variety of stylistic capabilities to meet thefont element for each occurrence of that heading
demands of web developers . With such capabilities,type.Moreover, CSS can be used with XML, to allow
style sheets became less important, and an externalsuch structured documents to be rendered with full
language for the purposes of defining style attributesstylistic control over layout, typography, color, and so
was not widely accepted until the development offorth in any suitable user agent or web browser.CSS
CSS.Teething problems with implementation ofhas its share of inconsistencies as wellCSS may at
CSSMany implementations of CSS are fraught withtimes be misused, particularly by the author of web
inconsistencies, bugs and other quirks . Authors havedocuments. Some developers who are accustomed
commonly had to use hacks and workarounds into designing documents strictly in HTML may
order to obtain consistent results across weboverlook or ignore the enabling features of CSS. For
browsers and platforms .One of the most well-knowninstance, a document author who is comfortable with
CSS bugs is the Internet Explorer box model bug;HTML markup that mixes presentation with structure
box widths are interpreted incorrectly in severalmay opt to use strictly embedded CSS styles in all
versions of the browser, resulting in blocks whichdocuments. While this may be an improvement over
appear as expected in most browsers, but are toousing deprecated HTML presentational markup, it
narrow when viewed in Internet Explorer. The bugsuffers from some of the same problems that
can be avoided, but not without some cost in termsmixed-markup HTML does; specifically, it entails a
of functionality.This is just one of hundreds of CSSsimilar amount of document
bugs that have been documented in various versionsmaintenance.Discrepancies compared: CSS vs
of Internet Explorer, Netscape, Mozilla, and Operaprogramming languagesCSS also shares some pitfalls
many of which reduce the legibility of documents.common with programming languages. In particular,
The proliferation of such bugs in CSS implementationsthe problem of choosing appropriate names for CSS
has made it difficult for designers to achieve aclasses and identifiers may afflict CSS authors. In the
consistent appearance across platforms.Currentlyattempt to choose descriptive names for CSS
there is strong competition between Mozilla's Geckoclasses, authors might associate the class name with
layout engine, Opera's Presto layout engine , and thedesired presentational attributes; for example, a CSS
KHTML engine used in both Apple's Safari and theclass to be applied to emphasized text might be
Linux Konqueror browsers - each of them is leading innamed "bigred," implying that it is rendered in a large
different aspects of CSS. Internet Explorer remainsred font.While such a choice of naming may be
the worst at rendering CSS by standards set downintuitive to the document author, it can cause
by World Wide Web Consortium as of 2005 .Someproblems if the author later decides that the
breakthroughs ...These problems have preisely led theemphasized text should instead be green; the author
W3C to revise the CSS2 standard into CSS2.1, whichis left with a CSS class called "bigred" that describes
may be regarded as something of a workingsomething that is green. In this instance, a more
snapshot of current CSS support. CSS2 propertiesappropriate class name might have been
which no browser had successfully implemented were"emphasized," to better describe the purpose or
dropped, and in a few cases, defined behavioursintent of the class, rather than the appearance of
were changed to bring the standard into line with theelements of that class.In a programming language,
predominant existing implementations..What makessuch a misuse might be analogous to using a variable
style sheets significant enough?et representsStylename "five" for a variable which contains the value 5;
she an enormous step forward for the Web. Withhowever, if the value of the variable changes to 7,
the separation of content and presentation betweenthe name is no longer appropriate.CSS in a
HTML and style sheets, the Web no longer needs tonutshellCSS is used by both the authors and readers
drift away from the strong ideal of platformof web pages to define colors, fonts, layout and
independence that provided the medium with its initialother aspects of document presentation. It is
push of popularity. Authors can finally influence thedesigned primarily to enable the separation of
presentation of documents without leaving pagesdocument structure (written in HTML or a similar
unreadable to usersA style sheet is made up of stylemarkup language) from document presentation
rules that tell a browser how to present a document.(written in CSS).This separation provides a number of
There are various ways of linking these style rules tobenefits, including improved content accessibility,
your HTML documents, but the simplest method forgreater flexibility and control in the specification of
starting out is to use HTML's STYLE element. Thispresentational characteristics, and reduced complexity
element is placed in the document HEAD, and itof the structural content. CSS is also capable of
contains the style rules for the page.Functionality andcontrolling the document's style separately in
Usage of CSSCSS is well-designed to allow thealternative rendering methods, such as on-screen in
separation of presentation and structure. Prior toprint, by voice (when read out by a speech-based
CSS, nearly all of the presentational attributes of anbrowser or screen reader) and on braille-based, tactile
HTML document were contained within the HTMLdevices.CSS allows complete and total control over
code; all font colors, background styles, elementthe style of a hypertext document. The only way
alignments, borders and sizes had to be explicitlythis can be illustrated in a way that gets people
described, often repeatedly, in the midst of theexcited is by demonstrating what it can truly be,
HTML code.CSS allows authors to move much ofonce the reins are placed in the hands of those able
that information to a stylesheet, resulting into create beauty from structure.Deepak Sharma is a
considerably simpler HTML code. The HTMLWeb Designer at at BlueApple, a Web Design and
documents become much smaller and web browsersDevelopment Company with a well connected
will usually cache sites' CSS stylesheets. This leads todevelopment infrastructure in India having a strong
a reduction in network traffic and noticeably quickerportfolio offering superior web services and solutions
page downloads.For example, the HTML element h2at competitive costs.
specifies that the text contained within it is a level