Beruflich Dokumente
Kultur Dokumente
(a)
HTML Basic
(b)
aa
Physical Tags
Physical tags are used to indicate exactly how specific characters are to be formatted.
The syntax or format for using a PHYSICAL TAG is as follows:
<Tag Name> Characters to be formatted. </Tag Name>
<B>
</B>
<I>
</I>
<TT>
</TT>
<BIG>
</BIG>
<SMALL>
</SMALL>
<SUB>
</SUB>
<SUP>
</SUP>
<U>
</U>
Logical Tags
Logical tags are used to indicate to the visually impaired that there is some emphasizes on
the text. Each browser has its own technique as to how to indicate to its viewer that the
text between the tags are different.
The syntax or format for using a LOGICAL TAG is as follows:
<Tag Name> Character/s to be formatted. </Tag Name>
</EM>
<STRONG>
</STRONG>
<CODE>
</CODE>
<KBD>
</KBD>
<VAR>
</VAR>
<CITE>
</CITE>
1.
(c)
Theory
Bold text
Important text
Italic text
Emphasized text
Marked text
Small text
Deleted text
Inserted text
Subscripts
Superscripts
Tag
Description
<b>
<em>
<i>
<small>
<strong>
<sub>
<sup>
<ins>
<del>
<mark>
Pre tag:
Theory:
The HTML <pre> element (or HTML Preformatted Text) represents preformatted text. Text within this
element is typically displayed in a non-proportional font exactly as it is laid out in the file. Whitespaces
inside this element are displayed as typed.
Code:
<html>
<head><title>MyClassTimeTable</title>
</head>
<body>
<pre>
MyClassTimeTable
Days
First
Sunday
HSN
Monday
HSN
Tueday
HSN
Wedenesday HSN
Thursday
WebTech
Fridaty
HSN
</pre>
</body>
</html>
Second
WebTech
WebTech
WebTech
WebTech
OOAD
WebTech
Output:
MyClassTimeTable
Days
Sunday
Monday
Tueday
Wedenesday
Thursday
Fridaty
First
HSN
HSN
HSN
HSN
WebTech
HSN
Second
WebTech
WebTech
WebTech
WebTech
OOAD
WebTech
Third
OSS
OSS
OSS
WebTech
OSS
OSS
Third
OSS
OSS
OSS
WebTech
OSS
OSS
3 .b.
sets the horizontal space between the image and surrounding text. VSPACE sets the
vertical space between the image and surrounding text.
Theory: HSPACE
has the most pronounced effect when it is used in conjunction with ALIGN to right or left align
the image. The following examples show HSPACE when it is not used, when it is set to 10, and when it
is set to 50.
HSPACE
Example:
4.a.
4.b.
Intradocument linking is linking to a location on the same page and to specific locations on another
web page.
To link to a specific location on a web page, use an anchor tag and the id attribute.
<a href="#destination"></a>
<h1 id="destination">Heading Text</h1>
The id attribute must be a unique value and can not contain spaces.
The id can be added to any web page element that accepts global attributes.
The name specified in the id is preceded by a pound sign in the href and must match exactly.