Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Session Objectives
Explain what a Web page is List the purpose of a website Design Web pages
Introduction
The basic unit of information displayed over the net is a Web Page. A Web site is a collection of web pages, which are interlinked
The link for a Web Page is basically its URL (Uniform Resource Locator) that is the address of the computer where the page is present
The First Page of a Website is meant to welcome the user. This Page is called the Home Page. All Sites necessarily have this Page. The user can navigate to other Pages through Hyperlinks.
A Website should ideally incorporate : Information about the business that it has been built for
Text, Graphics, Photo & Multimedia as or when required
Simplicity in presenting the matter A layout that facilitates easy access to all the information
Markup languages
Markup languages are mainly required for performing typical formatting functions like :
First introduced in 1980 Main objective was to ensure consistent display of documents It was named SGML or Standard Generalized Markup Language HTML has evolved from SGML
HTML
HTML stands for Hyper Text Markup Language HTML evolved from SGML HTML is used to construct formatted Pages on the Web For this, it uses Tags These tags tell the Browser how to display information on the Pages These pages subsequently can be viewed on any Browser
Header Section
<HTML> <HEAD>
</HEAD>
<BODY> </BODY> </HTML>
Actual Body
Tags are enclosed within a Left Bracket < and a Right Bracket >
These Brackets differentiate the Tags from the rest of the Text Opening Tag is denoted as <> and Closing Tag is denoted as </> Example of this : <h1> for beginning a heading and </h1> for closing it Tag names, though not case-sensitive should be written in Caps This is advised, so that the Tag names stand out among other Text
HeadlineTag
Used to display Headings & Sub-headings of different Sizes 6 Levels of Headings are supported : <H1> to <H6> <H1> is the biggest and <H6> is the smallest size
<HTML> <HEAD></HEAD> <BODY> <H1> This Heading is created with H1 tag </H1> <H2> This Heading is created with H2 tag </H2> <H3> This Heading is created with H3 tag </H3> <H4> This Heading is created with H4 tag </H4>
Paragraph Tag
The HTML Tags <P>.</P> are used to format Text into paragraphs
By default, the <P> tag displays a blank line at the top and bottom
To insert Blank lines within a Paragraph, the <BR> Tag is used The ALIGN attribute is used to align the Paragraph on the page The values for the ALIGN attribute are Center, Left and Right The <CENTER> tag can also be used instead of <ALIGN=CENTER>
<HTML> <HEAD></HEAD> <BODY> <P ALIGN=RIGHT> Right Aligned Text </P> </BODY> </HTML>
Font Tag
The tag is <FONT>..</FONT>
Used for Text style specifications The FACE Attribute is used to set the Font of the Text The SIZE Attribute is used to specify the Size of the Text The COLOR Attribute is used to specify the Color of the Text The <B></B> Tag is used with Text/Paragraph to mark Bold text The <I></I> Tag is used to mark Italic text
</FONT>
MULTICOL Tag
The <MULTICOL> Tag places the text of the document into multiple, equal-width columns.
<HTML> <HEAD></HEAD> <BODY> <MULTICOL COLS=5 GUTTER=2 WIDTH=5 The Text to be written in the document </MULTICOL> </BODY></HTML>
Cols
Specifies the number of text columns for the text
Gutter
Specifies the distance / gap between the text columns
Width
Specifies the width of every column. Incidentally, the width of all the columns should be the same
Horizontal line
It can be added to a HTML document using the <HR> tag The Syntax is as below : <BODY> <HR>
Paragraph Specification
<HR> </BODY>
Width
The Width of the Line can be specified in terms of Percentage of the Page Width
Size
The Thickness of the Line can be specified in terms of Pixels
Body Attributes
BGCOLOR
Specifies the Background Color for the Page
<BODY BGSOUND=MYSOUND.WAV>
IMG tag
Images play a major role in enhancing the Look of a page The Look on its part, attracts the users to visit and explore the Page Images put into Web pages are called Inline Images Images are mainly used as Buttons, Bullets, Photographs, Banners etc. Most common formats are JPEG and GIF Images for a Page should be in the same Folder as the HTML document The <IMG> Tag is used to incorporate an Image into the document
<IMG SRC=IMAGE1.GIF>
ALIGN
Used for aligning the text description with respect to the Image. Possible values are TOP, BOTTOM & MIDDLE
BORDER
This attribute adds a Border around the Image <IMG SRC=IMAGE1.GIF ALIGN=MIDDLE BORDER=2>