0% found this document useful (0 votes)
28 views16 pages

1.WEB PUBLICATION - Tags

Uploaded by

anilgelani4444
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views16 pages

1.WEB PUBLICATION - Tags

Uploaded by

anilgelani4444
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 16

Reference book for IT

Web Publishing
In following table the keyword ‘Optional’ indicates that respective tag is not necessary to use to create a web page. ‘Required’ means the tag
is necessary to provide the effect to the web page. ‘Forbidden’ means the tag is not allowed in HTML language.

HTML Tags

Basic structure tags (elements) in HTML


Tag Syntax Tag description Type Start/End Tag
The topmost container of an HTML document. It indicates the start
<HTML> Paired Optional/Optional
of HTML document.
Defines the header area of page, which is not displayed within the
<HEAD> page itself in the browser. It includes the information such as title, Paired Optional/Optional
comments for the document.
<TITLE> Displays the text on the browser title bar. Paired Required/Required
Represents the start of actual document. It contains the content of
<BODY> Paired Optional/Optional
document, which is displayed to the user.
Attributes of <BODY> tag:
BACKGROUND To insert image as background to the document. <HTML>
BGCOLOR To apply background color to the document. <HEAD>
TEXT (M-2005) To set foreground color of whole text in a document. <TITLE> Birth Day </TITLE>
</HEAD>
LINK To set the color of all hyperlinks in a document.
<BODY BACKGROUND="Image1.gif"
ALINK (M-2005,06) To set the color of active links (the moment user click on link). TEXT=Red LINK=Orange ALINK=White
VLINK To set the color of visited links in a document. VLINK=Green TOPMARGIN=50
LEFTMARGIN=50 BGPROPERTIES=Fixed
LEFTMARGIN To insert extra spaces to the left side of document.
SCROLL=Yes>
TOPMARGIN To insert extra spaces to the top of the document. <H1> The Birth day Event </H1>
BGPROPERTIES Allows the background image to fix in a document. (Only
</BODY>
(M-2005) foreground text will be scrolled & image will be fixed.)
</HTML>
SCROLL Enable/disable the scrolling properties of document.

1
Reference book for IT
Web Publishing
To hide the information in HTML document
Contains information that is not to be displayed in a web page. It
<COMMENT> Paired Required/Required
works only in Internet Explorer.
<!-- … --> Contains information that is not to be displayed in a web page. It
--- None
(Comments) works in all browsers.

Physical Style Tags


<B> Displays text in a web page with boldface font style. Paired Required/Required
<I> Displays text in italics. Paired Required/Required
<U> Displays text as underlined. Paired Required/Required
<STRIKE> or <S> Strike through a text i.e. a line is drawn through the middle of text. Paired Required/Required
<TT> Typewriter tag. It converts text into a monospaced font. (Mar-2005) Paired Required/Required
Allows displaying of preformatted text including the white space
<PRE> Paired Required/Required
and line breaks. (Mar-2006)
<BIG> Text appears in a bigger font. (Mar-2005,2006) Paired Required/Required
<SMALL> Text appears in a smaller font. Paired Required/Required
<SUB> Subscripts the font. (Mar-2005,2006) Paired Required/Required
<SUP> Superscripts the font. (Mar-2005) Paired Required/Required
Displays web page’s information such as page URL, author name,
<ADDRESS> Paired Required/Required
date of last revision etc.

Logical Style Tags


<STRONG> Displays text with strong emphasis (bold). Paired Required/Required
<EM> Displays text with emphasis in italics. Paired Required/Required

Creating a lists

2
Reference book for IT
Web Publishing
<LI> Defines a list item within a bullet list. Attributes: TYPE,VALUE Paired Required/Optional
<UL> Creates an unordered list. Attributes: TYPE, COMPACT Paired Required/Required
Creates an ordered or numbered list.
<OL> Paired Required/Required
Attributes: TYPE, COMPACT, START
<DL> Creates a definition list. Attributes: COMPACT Paired Required/Required
<DT> Gives a definition label (term) and is used within a DL statement. Paired Required/ Optional
<DD> This contains a definition list description used in a DL. Paired Required/Optional
Attributes:
Common to <LI>, <UL>, and <OL> tag. TYPE attribute decides a <OL TYPE="I" START= "3" COMPACT>
type of list. The values of type attribute for ordered list are: 1 <LI> CPU
TYPE (Arabic), i (Small case Roman), I (Upper case Roman), a (Small <LI> MONITOR
Alphabet), A (Upper case Alphabet). For unordered list, the values <LI VALUE=10> KEYBOARD
of TYPE attributes are: DISC, CIRCLE, and SQUARE. </OL>
<LI> Tag. It is used to make a particular list item have a certain <UL TYPE= "CIRCLE">
VALUE
number. <LI> RICE
Common to <UL>, <OL>, and <DL> tag. It allows the browser to <LI> SUGAR
COMPACT
show a compact list. <LI TYPE = "DISC"> TEA
START Allows you to establish the beginning of list’s number sequence. </UL>

Creating a Table
<TABLE> Creates a table structure within a web page. Paired Required/Required
Attributes:
ALIGN Decides the alignment of the table in the browser window
Draws an outline around table row and cell. By default tables have <HTML>
BORDER <BODY>
no borders.
Defines how wide your table will appear across the width of the <TABLE BORDER="7" ALIGN="Center"
WIDTH WIDTH="50%" BACKGROUND
screen.
BGCOLOR Specifies background color within all table cells in table. ="Paper.jpg" BORDERCOLOR="Blue"

3
Reference book for IT
Web Publishing
BACKGROUND Specifies the location of image as a background for table.
BORDERCOLOR Specifies color of the borders of all the table cells in table.
BORDERCOLORD Indicates the darker color used to form 3-D borders around the table
ARK cell. (only supported by IE)
BORDERCOLORLI Indicates the lighter color used to form 3-D borders around the table
GHT cell. (only supported by IE)
Decides the amount of spacing between each cell border and the CELLPADDING="20" CELLSPACING="30"
CELLPADDING BORDERCOLORDARK="Red"
actual content of cell.
BORDERCOLORLIGHT="Green"
CELLSPACING Creates space between the cells in a table.
RULES=All FRAMES=VSides>
FRAME Specifies external border lines around the table. <TR ALIGN=CENTER>
RULES Specifies where rule lines appear inside the table. <TD BGCOLOR=Red>Physics
<TD BGCOLOR=Blue>Chemistry

<CAPTION> Displays a table caption. Paired Required/Required


Attributes:
Indicates whether the caption appears at the top, bottom, left, or <CAPTION ALIGN=Top>List of Items
ALIGN
right of the table. </CAPTION>

<TR> Defines a row within a table. Paired Required/Optional


Attributes:
ALIGN, VALIGN, NOWRAP, BGCOLOR, BORDERCOLOR, BORDERCOLORDARK, BORDERCOLORLIGHT

<TH> Displays a table cell heading. Paired Required/Optional


<TD> Creates a table cell data. Paired Required/Optional
Attributes (Common to <TH> & <TD>):
ALIGN, VALIGN, WIDTH, BACKGROUND, BORDERCOLOR, BGCOLOR, BORDERCOLORDARK, BORDERCOLORLIGHT,
NOWRAP, ROWSPAN, COLSPAN
Description of some attributes:

4
Reference book for IT
Web Publishing
Specifies the horizontal alignment of row or column to left right or
ALIGN <TABLE BORDER=1 WIDTH=150>
center. Default value is left.
<TR>
Specifies the vertical alignment of row or column to top, bottom or <TD ROWSPAN = 2 VALIGN=Top>
VALIGN
center. Computer Subjects
Disables the default word-wrapping within table cell, thus <TD> Information Technology
NOWRAP
maximizing the amount of the cells horizontal space. <TR>
COLSPAN Number of columns that a cell spans. <TD NOWRAP> Computer Science
ROWSPAN Number of rows that a cell spans. </TABLE>

Creating a Frames
<FRAMESET> Creates a frame i.e. splits the window into two or more spans. Paired Required/Required
Attributes:
Specifies how many rows the frameset needs to be split in and
ROWS
what should be the size of each. <FRAMESET ROWS = '200,500,*'
Specifies how many cols the frameset needs to be split in and what BORDER=3 BORDERCOLOR=Green
COLS FRAMESPACING=30>
should be the size of each.
Specifies the thickness of borders (in pixel) around frames defined
BORDER <FRAMESET COLS = '50%,*'
within the frameset.
BORDERLOLOR Sets the color of the frame borders. BORDER=3 BORDERCOLOR=Green
FRAMESPACING=30>
FRAMESPACING Specifies the space between frames within the browser window.

<FRAME> Defines a single frame or a sub-window. Paired Required/Forbidden


Attributes:
SRC, NAME, BORDER, BORDERCOLOR, FRAMEBORDER, MARGINWIDTH, MARGINHEIGHT, NORESIZE, SCROLLING

<IFRAME> Creates an inline or floating frame within a document. (Mar-2004) Paired Required/Required
Attributes:
SRC, ALIGN, NAME, HEIGHT, WIDTH, BORDER, BORDERCOLOR, FRAMEBORDER, FRAMESPACING, HSPACE, VSPACE,

5
Reference book for IT
Web Publishing
MARGINWIDTH, MARGINHEIGHT, NORESIZE, SCROLLING

Attributes:
Specifies the thickness of borders (in pixel) around frame or floating
BORDER
frame.
BORDERLOLOR Sets the color of the frame or floating frame borders. <FRAMESET COLS = '400,*'>
Specifies the space (in pixel) between adjacent frames or floating <FRAME SRC = "Intro.htm" NAME =
FRAMESPACING
frames. "Frame1" FRAMEBORDER=1
Specifies the location of a document that you want to load within MARGINHEIGHT=10 MARGINWIDTH=10
SRC
the defined frame. NORESIZE SCROLLING= No>
NAME Gives the frame you are defining a name.
<FRAME SRC = "Test.htm" NAME =
FRAMEBORDER Indicates whether the frame’s border is visible (1) or not (0). "2" FRAMEBORDER=0
Specifies the vertical dimension of the top and bottom margin in a MARGINHEIGHT=10 MARGINWIDTH=10
MARGINWIDTH
frame. NORESIZE SCROLLING= No>
Specifies the horizontal dimension of the left and right margin in a </FRAMESET>
MARGINHEIGHT
frame.
NORESIZE Makes the frame’s dimensions unchangeable.
<IFRAME SRC= "js.htm" ALIGN=Center
SCROLLING Indicates whether a scrollbar is present within a frame or not. FRAMEBORDER =1 BORDER=3
HEIGHT Specifies the vertical dimension of the floating frame. BODERCOLOR=Yellow HEIGHT= 500
WIDTH= 600 VSPACE= 30 HSPACE= 30
WIDTH Specifies the horizontal dimension of floating frame.
NORESIZE SCROLLING=Yes>
VSPACE Indicates size of top & bottom margins within frame.
HSPACE Specifies size of left & right margins within frame.

Allows the user to define alternative content where frames may not
<NOFRAMES> Paired Required/Required
be supported.

Designing a Forms

6
Reference book for IT
Web Publishing
<FORM> Creates a form in a web page, which takes user input. Paired Required/Required
Attributes:
NAME Assigns name to the form.
Gives the URL (Address) of the application that is to receive and <FORM NAME = "form1" METHOD = GET
ACTION
process the form’s data. (Mar-2005) ACTION = '/ProcessApplication.cgi'
Sets the method (GET or POST) by which the browser sends the TARGET = 'output'>
METHOD
form’s data to the server for processing. (Mar-2005)
TARGET Redirects the result of a form to another window or frame. <FORM METHOD=POST ACCEPT =
'image/gif, image/jpeg'>
Specifies list of MIME types, separated by commas, that server
ACCEPT
processing the form will handle correctly.

<INPUT> Used within a form to define controls for user input. (Mar-2005) Unpaired Required/Forbidden
Attributes:
NAME Assigns name to the form element. <INPUT TYPE=text NAME =T1
Indicates the type of form element. Valid types are TEXT (default), MAXLENGTH=20 SIZE=30 TABINDEX=5>
TYPE PASSWORD, RADIO, CHECKBOX, FILE, SUBMIT, RESET,
IMAGE, BUTTON, HIDDEN. <INPUT TYPE=text NAME =T2
VALUE Sets the default input value method. VALUE=Ranju READONLY>
ALIGN Line up a graphical submit button (TYPE=IMAGE).
<INPUT TYPE=password NAME =T3
Use with TYPE=RADIO or TYPE=CHECKBOX to set the default VALUE=Sonu NOTAB>
CHECKED
state of those elements to True.
Indicates the maximum number of characters you can enter into a <INPUT TYPE=checkbox NAME=T1
MAXLENGTH
TEXT or PASSWORD field. CHECKED>
NOTAB Removes the input element from the tab order.
<INPUT TYPE=file NAME =T2>
SIZE Specifies the width of TEXT or PASSWORD element.
SRC Specifies the location of image for SUBMIT button. <INPUT TYPE=image SRC= "p1.gif"
TABINDEX Specifies where the form element appears the tab order. ALIGN =right>

7
Reference book for IT
Web Publishing
READONLY Indicates that changes to form element data cannot occur.

Displays a menu (selection list) where the choices are displayed


<SELECT> Paired Required/Required
using the OPTION element. (Mar-2006)
Attributes:
NAME Assigns name to the element.
SIZE Specifies the number of visible items in the selection list. <SELECT NAME=DT1 SIZE=3 MULTIPLE>

MULTIPLE Indicates that a visitor can select more than one item at a same time. <SELECT NAME =DT1 DISABLED>
DISABLE Denies access to the selection list.

<OPTION> Allows specifying choices a SELECT element. Paired Required/Optional


Attributes:
LABEL
<OPTION VALUE=1 SELECTED>
Indicates which data is sent to the form processor if you choose a
VALUE
selection list item. <OPTION VALUE=1 DISABLED> CPU
SELECTED Makes a selection list item as preselected. </OPTION>
DISABLED Denies access to the selection list.

<TEXTAREA> Defines a multiple-line text input field within a form. Paired Required/Required
Attributes:
NAME Names the value you pass to the form processor. <TEXTAREA NAME=ta1 ROWS=5 COLS=25
ROWS Indicates the height (in lines of text) of the text input field. TABINDEX=2> </TEXTAREA>
COLS Indicates the width (in character width) of the text input field.
<TEXTAREA NAME=story READONLY>
READONLY Specifies that visitor cannot change the contents of text input field. Tikekar Road, Dhantoli</TEXTAREA>
TABINDEX Indicates where <TEXTAREA> appears in tabbing order.

8
Reference book for IT
Web Publishing
Image Mapping
<MAP> Defines a client-side image map. (Mar-2005,06) Paired Required/Required
Attributes:
Establish a name for map information you can later reference by the
NAME <MAP NAME=map1>
USEMAP attribute of the <IMG> tag.

Specifies the geometric regions of a client-side image map and


<AREA> Unpaired Required/Forbidden
associated link map.
Attributes:
Identified the coordinates within an imagemap that define the <MAP NAME = "map">
COORDS
imagemap area. <AREA SHAPE = POLY COORDS =
Provides a textual description for visitors who have text-only "103, 29, 13, 207, 192, 208, 103, 29"
ALT
browsers. HREF= "chanda.htm"
Identifies the location of the document you want to load when the
HREF <AREA SHAPE = CIRCLE COORDS =
indicated imagemap area is selected.
SHAPE Specifies the type of shape used to represent the imagemap area. "300, 125, 25" HREF= "nagpur.htm"
TARGET=leftframe ALT= "Nagpur
Identifies which named frame the linked document selected should
TARGET City">
load.
<AREA SHAPE = RECT COORDS =
NOHREF Defines an imagemap area that does not link to another document. "450, 29, 650, 208" NOHREF>
</MAP>

<IMG> Places an inline image in a document. Unpaired Required/Forbidden


Attributes:
ALIGN Specifies the appearance of text that is near an inline image.
SRC Specifies the location of image you want to embed in a document. <IMG SRC="icon.gif" ALIGN=right
BORDER=2 VSPACE=50 HSPACE=25
BORDER Specifies the width (in pixel) of a border around an image. HEIGHT=300 WIDTH=300>
VSPACE Establish a margin of white space (in pixel) above and below image.

9
Reference book for IT
Web Publishing
HSPACE Establish a margin of white space (in pixel) left and right image.
ALT Provides a textual description of image useful for visitors.
HEIGHT Specifies the vertical dimension of the image (in pixel).
WIDTH Specifies the horizontal dimension of the image (in pixel).
Specifies a name by which bookmarks, scripts, and applets can <IMG SRC="map1.gif" NAME="img_1"
NAME ALT="Image" USEMAP="#map2">
reference the image.
USEMAP Specifies the location of the client-side imagemap data.
<IMG SRC="main.gif" ISMAP>
Indicates that the graphical image functions as a clickable
ISMAP
imagemap.

Adding Applets to the web page


<APPLET> Embeds a Java Applet object into an HTML document. Paired Required/Required
Attributes:
ALIGN Specifies the horizontal alignment of the Java applet displayed.
ALT Displays a textual description of a Java applet, if necessary.
<APPLET CODE="Clock2.class" ALIGN =
CODE Specifies the location of the Java bytecode file on the server Center WIDTH=170 HEIGHT=150 HSPACE
Specifies the directory where you can find sll necessary Java class = 50 VSPACE=50 ALT = "Clock" TITLE =
CODEBASE
files on the WWW server. "Animated Clock">
NAME Assigns a name to the applet to identify it separately in document. <PARAM NAME=bgcolor VALUE =
WIDTH Specifies the width of a Java applet within a document. "000000">
<PARAM NAME=fgcolor VALUE =
HEIGHT Specifies the height of a Java applet within a document.
"ff0000">
HSPACE Fills a blank space to the left and right of a Java applet. </APPLET>
VSPACE Fills a blank space to the top and bottom of a Java applet.
TITLE Specifies text assigned to the tag.

10
Reference book for IT
Web Publishing
<PARAM> Supplies parameters for applets within <APPLET> tag Unpaired Required/Forbidden
Attributes:
NAME Indicates the name of the parameter passed to the embedded object.
<PARAM NAME=fgcolor VALUE =
Specifies the value associated with the parameter passed to the "ff00ff">
VALUE
embedded object.

Cascading Style Sheets


<STYLE> Contains style sheet definitions and appears in the document head. Paired Required/Required

Asks the browser to refer to the external style sheet for all
<LINK> Unpaired Required/Forbidden
formatting other styling elements.
Attributes:
Defines the relationship you are establishing between the current
REL
document and another resource.
TYPE Specifies the MIME type of style sheet to import with <LINK> tag. <LINK REL="STYLESHEET" TYPE=
Indicates the location of the resource you are establishing a "text/css" HREF= "/style/main.css"
HREF NAME="style">
relationship.
Specifies the name by which bookmarks, scripts and applets can
NAME
reference the relationship.

Inserting audio and video in HTML pages


<BGSOUND> Plays a sound track in the background. Unpaired Required/Forbidden
Attributes:
SRC References the URL for the related sound file.
Repeats the sound certain number of times. Setting loop=True or -l <BGSOUND SRC = "I.mid" LOOP=5>
LOOP
or infinite, plays the sound file continuously. (Mar-2005)

<EMBED> Includes video as well as variety of audio formats on a web page. Unpaired Required/Forbidden

11
Reference book for IT
Web Publishing
(Mar-2006)
Attributes:
Supplies the URL of the data object that you embed in the HTML
SRC document.

Setting value to TRUE allows the sound, music, or voice to begin


AUTOSTART
playing automatically when page is loaded. The default is FALSE.
LOOP Setting value to TRUE allows the sound to play continuously.
<EMBED SRC = "GLOBE.AVI"
Indicates starting of sound. If you want to begin sound at 30 AUTOSTART="Infinite" LOOP="-1"
STARTTIME
seconds, you set the value to 00:30. STARTTIME="00:30" ENDTIME="0:1:30"
Indicates end of playback. If you want to stop sound at 1.5 minutes, VOLUME="50" WIDTH="200" HEIGHT="200"
ENDTIME
set the value 0:1:30. ALIGN="Center" CONTROLS= "Console">
VOLUME Represents 0 to 100 percent. It sets volume for sound that is playing.
It displays the width of the console or console element. The default <EMBED SRC = "CLOCK.AVI"
WIDTH
width is 144 pixels. AUTOSTART="True" LOOP="True"
HEIGHT Displays height of console. The default height is 60 pixels. HIDDEN=True CONTROLS= "Console">
ALIGN Aligns text as it flows around the console.
It should be TRUE or it should not be included. If it is true, sound
HIDDEN
will act as a background sound and no controls will load.
CONTROLS Defines which control a content creator wishes to use.

1. To include extra information about a web page that is normally


invisible to visitors. (M-2005)
<META> 2. Also used to create an automatic slide show presentation.(M- Unpaired Required/Forbidden
2005)
3. Also helps the visitor to find your web page. (M-2006)

Other important HTML tags

12
Reference book for IT
Web Publishing
<A> The anchor tag and is used to reference a hyperlink. Paired Required/Required
Attributes:
NAME Marks a location within the current document with a name.
Specifies the location of a file which you want to provide a <A NAME = "India">India</A>
HREF
hyperlink. (Mar-2004,2005) <A HREF= "#india">
Indicates the name of specific frame into which you load the linked
TARGET
document. <A SHAPE = RECT COORDS= "20,8,46,30"
SHAPE Specifies the type of shape used to represent the clickable area. HREF= "food.htm" TARGET= "page1">
COORDS Identifies the coordinates that define a clickable area.

<BR> Inserts line break in HTML document. (Mar-2005) Unpaired Required/Forbidden


Attributes:
CLEAR= “All/Left/Right/None”. Discontinues alignment of text to <IMG SRC= "pop.gif" ALIGN=right>
CLEAR
inline graphics image. <BR CLEAR=All><P>This is my photo.

<CENTER> Centers the content of a page. Paired Required/Required


Alters or sets font characteristics of the font the browser uses to
<FONT> Paired Required/Required
display text.
Attributes:
SIZE Specifies size of the text (from 1 to 7) affected by the <FONT> tag.
<FONT SIZE = "+5" FACE ="Helvetica" COLOR=
COLOR Indicates the color the browser uses to display text.
“Lightblue”>You’re Invited!</FONT >
FACE Specifies a font names the browser uses to render text.

Used for displaying headings in a web document. <H1> is the


<H1> to <H6> Paired Required/Required
largest level of heading and <H6> is lowest. (Mar-2005,2006)
Attributes:
ALIGN Positions the heading in the left, right, or center of a document. <H1 ALIGN="Center">Birthday</H1>

13
Reference book for IT
Web Publishing

<HR> Displays horizontal lines (rules) in a web page. (Mar-2005) Unpaired Required/Forbidden
Attributes:
ALIGN Positions the line flush left, flush right, or in center of the document. <HR ALIGN = Center SIZE = 5 WIDTH = 50%
COLOR = Red NOSHADE>
SIZE Specifies the thickness of the line (in pixels).
WIDTH Specifies the length of the line in a document.
<HR ALIGN = Left SIZE = 6 WIDTH = 500
NOSHADE Specifies that the browser not shade the line.
COLOR = Blue>
COLOR Specifies the color of the line. (Mar-2005)

Scrolls the text over horizontal line on a web page. Only Internet
<MARQUEE> Paired Required/Required
Explorer recognizes this tag. (M-2005, 2006)
Attributes:
ALIGN Specifies the alignment of text outside the marquee. When BEHAVIOR = scroll, the text starts at one
BGCOLOR Specifies background color of the marquee. side of screen and disappears off the other.

HEIGHT Specifies the vertical dimension of the marquee. When BEHAVIOR = slide, the text starts at one
side of screen and stop when it reaches the other.
WIDTH Specifies the horizontal dimension of the marquee. (Mar-2005)
DIRECTION Indicates the direction in which the marquee text scrolls.
When BEHAVIOR = alternate, the text starts at
BEHAVIOR Determines the type of marquee as scroll, slide or alternate. one side of screen and bounces back when it
SCROLLAMOUNT Indicates how far (in pixel) the marquee text shifts between redraws. reaches the other. (Mar-2006)
SCROLLDELAY Indicates how often (in milliseconds) the marquee text redraws.
<MARQUEE ALIGN=Bottom LOOP=4
HSPACE Specifies the size of margins to the left and right of the marquee. GBCOLOR=Yellow DIRECTION=Left
VSPACE Specifies the size of margins at the top and bottom of the marquee. BEHAVIOR=alternate SCROLLDELAY= 150
SCROLLAMOUNT = 50 HEIGHT = 300>
LOOP Specifies the number of time of marquee to scroll. (Mar-2005) VIDYA NIKETAN</MARQUEE>
Attributes:

14
Reference book for IT
Web Publishing
Specifies the name of association you are defining, such as <META NAME = "Author" CONTENT = "Liz
NAME
keywords, Authors, or Description. Castro">
Gives user agents more contexts for interpreting the information in
SCHEME <META HTTP-EQUIV = "refresh" content
the content attribute.
= "5; URL = "I.mid">
CONTENT Assigns values to the HTTP header field.
<META NAME = "keywords" CONTENT =
Indicates the HTTP header value you want to define, such as "shop, shap, market, selling, celling,
HTTP-EQUIV
Refresh, Expires, or content-LANGUAGE. shopping, sold, purchase, sell">

<P> Creates a paragraph with the document. (Mar-2005) Paired Required/Optional


Attributes:
ALIGN Aligns paragraph text flush left, right, or center of the document. <P ALIGN=Center> Enjoy fun and games</P>

<SCRIPT> Include the scripting language in HTML. (Mar-2006) Paired Required/Required


Attributes:
LANGUAGE Indicates the type of script. (Mar-2006) <SCRIPT LANGUAGE= "JavaScript">
SRC Specifies the location of a script to include in the document.
<SCRIPT TYPE= "text/javascript" SRC=
Indicates the MIME type of the script. This is an alternative to the "http://www.somw.com/sc/script.js">
TYPE
LANGUAGE attribute for declaring the type of scripting.

Displaying special characters in HTML pages


Named Entities Number Entities
Number entities are also within & and; but they contain a number and a
Named entities begin with (&) and end with (;)
# sign.
Entities Display/Output Entities Display/Output
&quot; " (quote character) &#064; @ (At symbol)
&nbsp; Gives blank space (Mar-2004,05) &#033; ! (Exclamatory sign )
&lt; < (less than) &#034; " (quote character)

15
Reference book for IT
Web Publishing
&gt; > (greater than) &#174; ® (Registration)
&amp; & (ampersand)
&copy; © (Copy right)
&reg; ® (Registration)

16

You might also like