Professional Documents
Culture Documents
The "Cascading Style Sheets Level 1" recommendation is edited and maintained by
Håkon Lie and Bert Bos of the W3C. The CSS2 recommendation is is edited and
maintained by Håkon Lie, Bert Bos, Chris Lilley and Ian Jacobs.
5. What can be done with style sheets that can not be accomplished with regular HTML?
Many of the recent extensions to HTML have been tentative and somewhat crude
attempts to control document layout. Style sheets go several steps beyond, and introduces
complex border, margin and spacing control to most HTML elements. It also extends the
capabilities introduced by most of the existing HTML browser extensions. Background
colors or images can now be assigned to ANY HTML element instead of just the BODY
element and borders can now be applied to any element instead of just to tables. For more
information on the possible properties in CSS, see the Index DOT Css Property Index.
9. Do any WYSIWYG editors support the creation of Style Sheets? Any text-based HTML
editors?
As support for CSS in browsers has matured in the last year, both WYSIWYG and Text-
based HTML editors have appeared that allow the creation or the assistance of creating
Cascading Style Sheet syntax. There are now at least two dozen editors supporting CSS
syntax in some form. The W3C maintains an up-to-date list of these WYSIWYG and
text-based editors.
10. Can you use someone else's Style Sheet without permission?
This is a somewhat fuzzy issue. As with HTML tags, style sheet information is given
using a special language syntax. Use of the language is not copyrighted, and the syntax
itself does not convey any content - only rendering information.
It is not a great idea to reference an external style sheet on someone else's server. Doing
this is like referencing an in-line image from someone else's server in your HTML
document. This can end up overloading a server if too many pages all over the net
reference the same item. It can't hurt to contact the author of a style sheet, if known, to
discuss using the style sheet, but this may not be possible. In any case, a local copy
should be created and used instead of referencing a remote copy.
Cascading comes to the rescue. A document can have styles specified using all of these
methods, but all the information will be reduced to a single, cohesive "virtual" Style
Sheet. Conflict resolution is based on each style rule having an assigned weight according
to its importance in the scheme of things. A rule with a higher overall importance will
carry a higher weight. This will be used in place of a competing style rule with a lower
weight/importance. A hierarchy of competing styles is thus formed creating a "cascade"
of styles according to their assigned weights. The algorithm used to determine this
cascading weight scale is fairly complex.
For more information, see the section on cascading in the CSS1 Specification or the
Index DOT Css section on the Style Sheet Cascade process.
If you are planning on using more than one style specification method in your document,
you must also worry about Cascading Order of Style methods (see question 11.) If you
are going to use only one method, then some guidelines about the nature of each method
need to be kept in mind. The answer to this question is also very much related to the
advantages and disadvantages to using each of them (next question.)
Method 1: External Style Sheets (The LINK [-->Index DOT Html] element)
This method should be used if you want to apply the same style to multiple documents.
Each document can reference the stand-alone style sheet and use the styles contained
within. Using this method, the appearance of many documents can be controlled using a
single or small number of style sheets. This can save a LOT of time for an author.
Method 2: Embedded Style Sheets (The Style [-->Index DOT Html] element)
The syntax used with Method 2 is the same as that for Method 1. This method is a happy
medium between External Style Sheets and Inline Styles (see below.). It should be used
in place of Method 1 if you only want to specify styles for a single document. This
method should also be used when you want to specify a style for multiple tag types at
once or the list of style definitions is of larger size.
Method 3: Inline Styles (STYLE attribute to HTML elements)
If you only have to apply style to one or a few elements in a single document, your best
bet will often be an Inline Style. This method attaches a style definition within the HTML
element it is modifying.
Disadvantages
Classes can be created for use on multiple tag types in the document
Selector and grouping methods can be used to apply styles under complex
contexts
No additional downloads necessary to receive style information
Disadvantages
This method can not control styles for multiple documents at once
Inline Styles
Advantages
Useful for small quantities of style definitions
Can override other style specification methods at the local level so only
exceptions need to be listed in conjunction with other style methods
Disadvantages
Does not distance style information from content (a main goal of SGML/HTML)
Can not control styles for multiple documents at once
Author can not create or control classes of elements to control multiple element
types within the document
Selector grouping methods can not be used to create complex element addressing
scenarios
14. As a reader, how can I make my browser recognize my own style sheet?
Netscape
It is not possible to do this in Netscape yet (as of version 4.0.)
Internet Explorer 3.0 (Win95/NT)
[It is possible to do this at least in Windows95/NT, but no user interface is provided.
Unknown how this might be accomplished on other operating systems.]
HTML ( H yper T ext M arkup L anguage) is the language used to write Web pages. You are
looking at a Web page right now.
You can view HTML pages in two ways:
* One view is their appearance on a Web browser, just like this page -- colors, different text
sizes, graphics.
* The other view is called "HTML Code" -- this is the code that tells the browser what to do.
17.What is a tag?
In HTML, a tag tells the browser what to do. When you write an HTML page, you enter tags for
many reasons -- to change the appearance of text, to show a graphic, or to make a link to another
page.
Browser Display:
This is my message to the world!
An HTML comment begins with "<!--", ends with "-->", and does not contain "--" or ">"
anywhere in the comment.
The following are examples of HTML comments:
Do not put comments inside tags (i.e., between "<" and ">") in HTML markup.
Very. I don’t usually use WYSIWYG. The only occasions when I do use Dreamweaver are when
I want to draw something to see what it looks like, and then I’ll usually either take that design
and hand-modify it or build it all over again from scratch in code. I have actually written my own
desktop HTML IDE for Windows (it’s called Less Than Slash) with the intention of deploying it
for use in web development training. If has built-in reference features, and will autocomplete
code by parsing the DTD you specify in the file. That is to say, the program doesn’t know
anything about HTML until after it parses the HTML DTD you specified. This should give you
some idea of my skill level with HTML.
<table>
<tr>
<td>this is the first cell of the outer table</td>
<td>this is the second cell of the outer table,
The main caveat about nested tables is that older versions of Netscape Navigator have problems
with them if you don't explicitly close your TR, TD, and TH elements. To avoid problems,
include every </tr>, </td>, and </th> tag, even though the HTML specifications don't require
them. Also, older versions of Netscape Navigator have problems with tables that are nested
extremely deeply (e.g., tables nested ten deep). To avoid problems, avoid nesting tables more
than a few deep. You may be able to use the ROWSPAN and COLSPAN attributes to minimize
table nesting. Finally, be especially sure to validate your markup whenever you use nested tables.
16 MARK QUESTIONS
1. Expalin in detail about Client Tier using HTML and its role in brower side with respective
samples
2. Explain about Basic HTML tags ,including respective sample programs with results
3. Impact of Cascading style sheet ,illustrate its look and feel with examples.