Explanation/example
<select name="catsndogs">
<optgroup label="Cats">
<option>Tiger</option>
<option>Leopard</option>
<option>Lynx</option>
</optgroup>
<optgroup label="Dogs">
<option>Grey Wolf</option>
<option>Red Fox</option>
<option>Fennec</option>
</optgroup>
</select>
Answer/Explanation
Normally, when you run an applet, you have several class files, and an
html file that calls your main class like this:
<APPLET CODE="MyMainClass.class"
WIDTH=200 HEIGHT=200>< /APPLET>
Answer/Explanation
The <colgroup>
tag is used to group columns in a table for formatting.
The <colgroup>
tag is useful for applying styles to entire columns, instead of repeating the
styles for each cell, for each row.
Answer/Explanation
<table border=2>
<th>customer name</th>
<th colspan=3>Contact</th>
<tr>
<td></td>
<td>Fixed line</td>
<td>
<td>Email</td>
</tr>
</table>
Answer/Explanation
Answer/Explanation
Answer/Explanation
The HTML
colgroup tag is used in tables to group columns. This allow author to group
columns, define default attributes for them as well as to set a visual format
for the table (with "rules" attribute for the HTML table tag).
The number of columns grouped by this element can be set with the
"span" attribute.
Example:
<table border="1"
summary="Example table used to show the use of the HTML colgroup
tag.">
<colgroup span="2" style="width: 3.8em">
</colgroup>
<colgroup span="4" style="width: 2.28em"
align="right">
</colgroup>
<tr>
<td>Sean</td>
<td>Male</td>
<td>5</td>
<td>4</td>
<td>2</td>
<td>Yes</td>
</tr>
<tr>
<td>Anne</td>
<td>Female</td>
<td>4</td>
<td>1</td>
<td>5</td>
<td>Yes</td>
</tr>
<tr>
<td>Cynthia</td>
<td>Female</td>
<td>2</td>
<td>0</td>
<td>1</td>
<td>No</td>
</tr>
</table>
Answer/Explanation
The HTML iframe tag allow authors to
insert a frame inside a document. It works similar to the HTML frame tag
but the HTML iframe tag can be inserted in between the document's content.
The HTML iframe tag is inserted inside the text just like a table and is
rendered as a window containing the HTML document
Answer/Explanation
The
"align" and "bgcolor" attributes of the table element were deprecated
in HTML 4.01
Answer/Explanation
Using external CSS-files it is possible do the same
effects as HTML attributes without using any attribute in the body parts of
HTML-documents.
When you use external files, give
to the file name like basic_stylesheet.css
and link it to your HTML-document. Below is an
example of the format of the link relation:
<LINK
rel="stylesheet" type="text/css" href="styleSheetFile.css">
The code must be in the HEAD-part
of the document
Answer/Explanation
This attribute have been deprecated
Specifies the horizontal
alignment of its element. Possible values are (case-insensitive):
left: Text is
aligned to the left margin.
Answer/Explanation
The <blockquote>
tag defines a long quotation.
A browser inserts white space before and after
a blockquote element. It also insert margins for the blockquote element.
Answer/Explanation
You can tell if a
link is relative if the path isn't a full Website address.
Absolute Path
http://www.mysite.com
Relative path
/images/beach.bmp
Answer/Explanation
The shape attribute specifies the shape of an
area.
The shape attribute is used together with the coords attribute
to specify the size, shape, and placement of an area.
Value |
Description |
default |
Specifies the entire region |
rect |
Defines a rectangular region |
circle |
Defines a circular region |
poly |
Defines a polygonal region |
Answer/Explanation
This DTD contains all HTML elements and
attributes, but does not include presentational or deprecated elements (like
font). Framesets are not allowed.
<!DOCTYPE
HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
This DTD contains all HTML elements and
attributes, including presentational and deprecated elements (like font).
Framesets are not allowed.
<!DOCTYPE
HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"> |
This DTD is equal to HTML 4.01 Transitional,
but allows the use of frameset content.
<!DOCTYPE
HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd"> |
Explanation
Below is al list of all events available for the HTML 4.01 Standard.
onblur: The
onblur event is triggered when an element loses focus either by the pointing
device or by tabbing navigation
c
onchange: The onchange
event occurs when a control loses the input focus and its value has
: The onchange event occurs when
a control loses the input focus and its value has been modified since gaining
focus.
Explanation
RADIO
is used to create a series of choices of
which only one can be selected. The term "radio button" comes from the
buttons for the radio in an automobile, where selecting one radio station
automatically de-selects all the others. HTML radio buttons are created by
using several <INPUT
TYPE=RADIO>
buttons, all with the same name, but with different values.
For example, this series of buttons allows you to choose one size for a cake:
<FORM
ACTION="../cgi-bin/mycgi.pl">
What
size cake?<P>
<INPUT
TYPE=RADIO NAME="cake" VALUE="S">small<BR>
<INPUT
TYPE=RADIO NAME="cake" VALUE="M">medium<BR>
<INPUT
TYPE=RADIO NAME="cake" VALUE="L">large<P>
<INPUT
TYPE=SUBMIT VALUE="submit">
</FORM>
Example:
<Applet> tag is used to include Java
applets in web pages. Java applets are files with ".class" extension.
Attributes of <applet> tag:
Code: Used to
specify the name of the Java applet file.
Width: Used to
specify the width of the applet.
Height: Used to
specify the height of the applet.
Example:
<applet
code="japplet" width=400 height =250></applet>
This code specifies that
the applet to be used is "japplet.class".
An applet can be
customized with parameters. Parameters of an applet let us pass information to
the applet. <Param> tag is used to pass parameters to the applet.
Example:
<applet
code="japplet" width=400 height =250>
<param
name="label" value="This is a java applet with
parameter">
</applet>
Explanation
If a
frame has visible borders, the user can resize it by dragging the border. To
prevent a user from doing this, you can add noresize="noresize" to
the <frame> tag.