Professional Documents
Culture Documents
Answer
HTML, or HyperText Markup Language, is a Universal language which allows an individual using special code to
create web pages to be viewed on the Internet.
font-style
font-variant
font-weight
font-size/line-height
font-family
caption
icon
menu
message-box
small-caption
status-bar
You can't just "add frames" to an existing document. Rather, you must create a frameset document that defines a
particular combination of frames, and then display your content documents inside those frames. The frameset
document should also include alternative non-framed content in a NOFRAMES element. The HTML 4 frames model
has significant design flaws that cause usability problems for web users.
Frames should be used only with great care.
CSS Background
CSS Text
CSS Font
CSS Border
CSS Outline
CSS Margin
CSS Padding
CSS List
CSS Table
H1 {font-size: 20pt;}
SUP {font-size: 80%;}
...then a <SUP> inside an <H1> will have a font-size of 80% times 20pt, or 16pt.
For example in P {text-indent: 10pt} the selector is P and is called type selector as it matches all instances of this
element type in the document.
in P, UL {text-indent: 10pt} the selector is P and UL (see grouping); in .class {text-indent: 10pt} the selector is .class
(see class selector).
15. Can Style Sheets and HTML stylistic elements be used in the same document?
Answer
Yes. Style Sheets will be ignored in browsers without CSS-support and HTML stylistic elements used.
<HEAD>
<STYLE TYPE="text/css">
<!--
P {text-indent: 10pt}
-->
</STYLE>
</HEAD>
Note: The styling rules are written as a HTML comment, that is, between <!-- and --> to hide the content in browsers
without CSS support which would otherwise be displayed.
The trick is that if you write a document using an XML declaration and an XHTML doctype, then the CSS class
names will be case sensitive for some browsers.
It is a good idea to avoid naming classes where the only difference is the case, for example:
div.myclass { ...}
div.myClass { ... }
If the DOCTYPE or XML declaration is ever removed from your pages, even by mistake, the last instance of the style
will be used, regardless of case.
27. What are the differences between cell spacing and cell padding?
Answer
Cell padding is used for formatting purpose which is used to specify the space needed between the edges of the cells
and also in the cell contents. Cell spacing is one also used f formatting but there is a major difference between cell
padding and cell spacing. It is as follows: Cell padding is used to set extra space which is used to separate cell walls
from their contents.
But in contrast cell spacing is used to set space between cells.
32. How do I make a frame with a vertical scrollbar but without a horizontal scrollbar?
Answer
The only way to have a frame with a vertical scrollbar but without a horizontal scrollbar is to define the frame with
SCROLLING="auto" (the default), and to have content that does not require horizontal scrolling. There is no way to
specify that a frame should have one scrollbar but not the other.
Using SCROLLING="yes" will force scrollbars in both directions (even when they aren't needed), and using
SCROLLING="no" will inhibit all scrollbars (even when scrolling is necessary to access the frame's content). There
are no other values for the SCROLLING attribute.
34. What is the difference between the HTML form methods GET and POST?
Answer
The method parameter specifies which method the client is using to send information to the WEB server. The method
determines which parameter you will find the CGI request data in:
* POST - post_args
* GET - httpargs
If you specify a background image, you should also specify text, link, and background colors since the reader's
default colors may not provide adequate contrast against your background image. The background color may be
used by those not using your background image. Authors should not rely on the specified background image since
browsers allow their users to disable image loading or to override document-specified backgrounds.
You can also use a CSS style sheet to affect all the forms on a page:
form { margin-bottom: 0 ; }