HTML or Hyper Text
Mark up Language is the
main mark up
language for
creating web
pages and other
information that can be displayed in a web
browser.
HTML is written in the form of HTML
elements consisting
of tags enclosed
in angle
brackets (like ADDING STYLE TO HTML
Note. The
sample default style sheet for HTML 4 that is included in [CSS2] expresses
generally accepted default style information for each element. Authors
and implementers alike might find this a useful resource.
HTML documents may contain style sheet rules directly in them or they
may import style sheets.
Any style sheet language may be used with HTML. A simple style sheet
language may suffice for the needs of most users, but other languages
may be more suited to highly specialized needs. This specification uses
the style language "Cascading Style Sheets" ([CSS1]),
abbreviated CSS, for examples.
The syntax
of style data depends
on the style sheet language. SETTING THE DEFAULT STYLE SHEET LANGUAGE
Authors must specify the style sheet language of style information
associated with an HTML document.
Authors should use the META element
to set the default style sheet language for a document. For example, to
set the default to CSS, authors should put the following declaration in
the
HEAD of
their documents: <META http-equiv="Content-Style-Type" content="text/css">
The default style sheet language may also be set with HTTP headers. The
above META declaration
is equivalent to the HTTP header: The general form of an HTML element is therefore:
|
|