HTML-Layout & Semantic Tags
HTML-Layout & Semantic Tags
Layout Tags
Semantic Tags
Layout Tags
Semantic Tags
The entire page is divided into two logical sections the Head and the Body
<PRE></PRE>Preformatted Text
HEADING TAGS: used to display headings; enclosed in <H>heading</H>. For content enclosed
by the Heading tags a default format is applied which is defined by the tag.
PREFORMATED TAGS: used to apply structural exactness to that of the text in the editor.
Eg.
<PRE> the text will be displayed to the right of the browser
at the same distance as it is now in the editor.
</PRE>
a. These tags are used to link text from one page to another or on the same page.
3. Lists
a. Used to display items in form of la list of terms (with and without definition).
6. Special Characters
Underline <U>Text</U>
FONT SETTINGS:
<FONT
SIZE=“12”
COLOR=“#FFOO00”
Attribute set
FACE=“Times” >
</FONT>
© 2017 Wipro wipro.com confidential 12
Semantic Tags: Links & Graphics
Anchor: <A>
The word hyper stands for “Without limits” i.e. there is no boundary. The Anchor (<A>) tag is used to
hook a link in one place which links that point to a point which can exists any where in the Internet.
An anchor can be used to create a link to another document (with the href attribute) or to create a
bookmark inside a document (with the name attribute).
Syntax:
1. Internal Links - Internal links again are of two types one links a point form one page to another page in
the same website and the other links a point from a page to another point in the same page (Bookmark).
2. External Links - External links are most similar to that of first type of Internal links only difference is
that the link is pointing to an external page (out of the scope of the current existing page. Ex. A news
link in the yahoo website)
<A HREF=“https://webmail.wipro.com”>Webmail</A>
Internal Links:
<A HREF=“\JSP\Register.jsp”>Register</A>
It has major two attributes “HREf” stands for Hyper reference and target.
The Target attribute tells the browser regarding where it has to open the newly requested page.
The various values that the TARGET attribute can take are:
“_main” to open in the same window
“_blank” to open in a new window
“_parent” to open the same window (regardless of frames in the window)
“Frame name” in case of Frame pages a custom defined frame name.
Create bookmark
<A NAME=“Book”>Bookmark</A>
Create a link to bookmark
<A HREF=“#Book”>Go to Bookmark</A>
Example:
“SRC” Attribute: used to mention the path where the image file is stored and the image file name.
“ALT” Attribute: used to display an alternate text in case the image file could not be loaded.
Allows the developer to list out the terms and important statements. There are three types of List’s
available.
i. Glossary List- If the terms are displayed in the form of Subtitle followed by a description then
the list is called as a Glossary list. The entire text on this particular page can be treated as a
Glossary list.
ii. Unordered List- If the sequence of the terms is not of much importance then the terms are
listed under Unordered list where the terms are listed with the help of bullets.
iii. Ordered List- the sequence is of much more importance or the number of terms, they are listed
with the help of numbering sequence.
The Ordered list is defined with the help of the <OL></OL> tags. It has TYPE attribute which is used
to mention what type of sequence will be used to display the terms. It can take the values such as “1”,
“A”, “I”, etc to display relevant sequence.
<p align=“Left/center/right/justify”>Text</p>
LineBreak: In case a line break is to be inserted the <BR> tag is used which works similar to carriage
return, i.e. breaks the line and starts printing from the next line.
The “BACKGROUND” attribute can be used to display an image as background. The value for this
attribute will the path to the file which is to be displayed as background.
To display these kind of characters HTML provides a unique way. i.e. Use of ampersand symbol and
the character code or a specific code Defined in HTML.
Syntax:
a. <b>Click Here<b>
b. <strong>Click Here<strong>
c. <b>Click Here</b>
d. </strong>Click Here</strong> <b>Click Here</b>
Layout Tags
Semantic Tags