Professional Documents
Culture Documents
PiTML (Hypertext Markup Language) is a standard markup language that is designed to develop
web pages. In the previous chapter we have discussed about HTML basics, different HTML tags and
how to use these tags to create simple web pages containing only textual contents. HTML allows us to
insert and use images in a web page to make it attractive and more meaningful.lt also provides us tags
to insert tables in the web. documents to present the text on them in a concise manner. One of the
rnost important features of HTML is that we can connect web pages with each other by using the
hyperlinks in it. In this chapter we will learn about inserting images and tables and creating hyperlinks in
the HTML documents.
Using Images on Web Page
When we visit web sites \'v"2 observe that besides text, web pages contain other components such as
images, illustrations, charts, maPs, etc. 1mages,therefore,form a very important component of web pages.
They not only make the web pages more attractive,but also make the content more meaningful.
QBASIC Progmminiug for Kids
1)\ T.d Frhx
Sources of Images
For inserting an image into a web page we should first create an image or obtain it from some authentic
source and store it in the form of a file on our computer or in a portable storage medium like a CD, DVD or
USB drive.Here are a few important sources from where we can get the images for our web pages.
I. Internet: Many web sites offer 'free' downloads of images that we can use in our Webpages. For
example:google.co.iri and f1ickr.com.
2. CIipArts:Collection of ready made images are available at stores in the form of ClipArts.
3. Scanned Pictures: If we have images - photograPhs, drawings, il|ustrations;etc.- that we need to insert
in our web page,al1 we need to do is simply scan them and they are ready or use.
4· Self Created Images: Photographs and videos taken from a digital camera or mobile phone can be
inserted on a web page.You can also create images in Image Editing Programs such as Corel,PhotoshoP etc.
`Ìi`ÊÜÌ
ÊÌ
iÊ`iÊÛiÀÃÊvÊ
vÝÊ*ÀÊ*Ê
`ÌÀÊ
W /ÊÀiÛiÊÌ
ÃÊÌVi]ÊÛÃÌ\Ê
ÜÜÜ°Vi°VÉÕV°
Ì
lV
Fastrack - 10
<body backgroundµ"irrf1atab]e_boar.jpg">
_REMEMPER""
Give the location orpath of the picture file before its name in the HTML code. Itwould be prefera e
to store the picture file in the same folder as the HTML document. Then you will not be required to
give the location of the file. You can simply give its name with the background attribute.
Q)"
`Ìi`ÊÜÌ
ÊÌ
iÊ`iÊÛiÀÃÊvÊ
vÝÊ*ÀÊ*Ê
`ÌÀÊ
/ÊÀiÛiÊÌ
ÃÊÌVi]ÊÛÃÌ\Ê
ÜÜÜ°Vi°VÉÕV°
Ì
4
Ad,mc.dHTMLI
<rlL>smeMc7ral$ ro Renenber</hl>
.
HTML code in the Notepad window Page as seen in the browser window
HTML code in the Notepad window Page as seen in the browser window
REMEMPER °i
Specify the height and width of the image in pixels with the respective attributes in the <img> tag.
Specify the height and width such thatitdoes not distort the image.
`Ìi`ÊÜÌ
ÊÌ
iÊ`iÊÛiÀÃÊvÊ
vÝÊ*ÀÊ*Ê
`ÌÀÊ
a)" /ÊÀiÛiÊÌ
ÃÊÌVi]ÊÛÃÌ\Ê
ÜÜÜ°Vi°VÉÕV°
Ì
V "
Fastrack - 10
Syntax: <img src="image file path" height= 150 width=200 alt="alternate text string" >
Steps to use of the alt attribute to display an alternate text in lieu of the image
I. Write the tag "img src= "happy_holij'Pg" height=l50 width=200 align="right" ait="the image is currently
' unavailable for disphf'> in the code as shown below.Save the notepad file using the SaveAs command.
<HTML>
<HEAD> .
<title> use hspace atrr'ibute to space out "lmages</TITLE> </HEAD>
<BODY>
<fonr face="Misrra1" size=6 co1or="red">
</'fonr>
<'img src="happy,ho1i.jpg" he'ight=150 widch=250 a1ign="righr"
a1t="che image is currenrly unavailable for disp1ay">
</'forrc>
</BODY>
</HTML>
`Ìi`ÊÜÌ ÊÌ iÊ`iÊÛiÀÃÊvÊ
/ÊÀiÛiÊÌ
ÃÊÌVi]ÊÛÃÌ\Ê
ÜÜÜ°Vi°VÉÕV°
Ì
V,
Ad,m,.dHTMLI
In HTML, tables are created by using the <table" tag. The <table> tag is a container tag, therefore you need
to close it by using a closing tag </table>. Everything within a table is enclosed between these two "tags"
which are both required.
align
. window.T he value
Specifies th of thisposition
horizontal attribute
ofmay be 1eft,center
the table or web
within the right.page <table align ="1eft">
width Controls the width of the entire table. <table width ="100">
cellspacing
. in pixels.
Adds space between the cells.The spacing between cells is given <table cellspacing ="10">
`Ìi`ÊÜÌ
ÊÌ
iÊ`iÊÛiÀÃÊvÊ
ab" vÝÊ*ÀÊ*Ê
`ÌÀÊ
/ÊÀiÛiÊÌ
ÃÊÌVi]ÊÛÃÌ\Ê
ÜÜÜ°Vi°VÉÕV°
Ì
V
Fastrack - 10
... </tr></table>
2. The <th> tag is used within the <tr > tag and creates a header cell of the table. It is also a container
tag and needs to be closed with the </th> tag. It encloses the data that is there in a header celI.The
syntax of using the <th> tag within the < tr> tags is as follows:
Syntax: <tr>
<th> Header cell data forthe lst column </th>
<th> Header cell data for the 2nd column </th"
... </tr>
3. The <td> tag is also used within the <tr> tag and creates a data cell of the table.lt encloses the cjatzi
that is to appear in a data cell.The syntax of using the <td> tagwithin the <tr> tag is as follows:
Syntax: <tr>
<td>lst data cell value</td>
<td>2nd data cell value</td>
... </tr>
Steps to create a table on a web page
I. Open a Notepad file. Write the code as shown 2. Save the file using the Save As command and view
below to create a table. the page in the web browser.
0 X t- ' " -
<HTML>
<HEAD> -' C Q (D W1/Mpg-7&htmI g e i
<TITLE>Creating a table</TITLE></HEAD>
<BODY> tla« ih Lrjb, in, u mj u uS1 lo c4Lac ^ uuL
<font face="Mistra1" size=6 co1or="red">
<h2>Using the table, tr, th and td tags to create a
table</h2><(font> 1 N·m· tspom A&erem,.n
<p><table border=2> lSactm TenduUax Cnckec SI Tm md 49 qa OOh
jsmhd Kmar jsthm et Ue LoMm Ol"m k2 'nd Br=S medU al the GrwCnckm
<tr><th>Name</th><th>Sports/Game</th><th>Achievements</th><th> }AWa·" Budn L¶2£
Ch'mpn Grex Wrmkr
Remarks</'th></tr>
<tr><td>sachin Tendu1kar</td><td>cricket</td><td>51 centuries V Badmwroa ,SLl: ct Meaj m the 2016 Rio Olµnpin
Use of <table>, <tr>, <th>, <td> tags to create a table Table as seen in the web browser
m
Table data cells do not have to contain data. You can create a blank cell by coding
0 ' <TD> </TD>. The code is an HTML special character entity for non-breajdng
Y space. Use in place of datawhen the cell is to be empty.
ab"
`Ìi`ÊÜÌ
ÊÌ
iÊ`iÊÛiÀÃÊvÊ
vÝÊ*ÀÊ*Ê
`ÌÀÊ
/ÊÀiÛiÊÌ
ÃÊÌVi]ÊÛÃÌ\Ê
ÜÜÜ°Vi°VÉÕV°
Ì
r"
Advanced HTML I
Rowspan
The ROWSPAN attribute of theTABLE tag is used to stretch a column vertically across two or more
rows of a table when coding HTML forWeb pages.The value of this attribute indicates the number of
rows the column will stretch across. If ROWSPAN="3" is used, it will stretch a column vertically across
three rows.
Steps to use Rowspan to stretch a column vertically
I. Open a new notepad file and write the following code in it.
<tab1e border=2> "
<tr>
<td rowspan=3><b>Fruits I like the MOST</b>citd>
<td>Mango</td><td>Guava</td>
<tr><td>ganana</td><td>Watermelon<ltd></tr>
<tr><td>Cherries</td><td>Blackberries<ltd>
</tab1e>
2. Save the file with .html extension and view it in the web browser.
"' I
^ I
/ÊÀiÛiÊÌ
ÃÊÌVi]ÊÛÃÌ\Ê
ÜÜÜ°Vi°VÉÕV°
Ì
m"" " Fastrack - 10
<th> or <td>
Syntax: <th tag is asnfollows:
colsp = no.of columns> or <td co|span = no.of co|umns>
The following example code shows the use of the co|span attribute:
:e C:\pocum'nts and 5«1~~ V ·? X ' " : P -
P _. _
r, :y V-
Fb inew Nip " F'm" . Kds
_. .N*' "' ' "' 9 " Gil Lu' PY " O kds ·
'hZ:,¢,,je)[jndors3tndlng oDlspan<ptltle></hHd> He E& Yew
:'md,, , Lspan & aw'
<h1>cfont facB"'NtsLx0j" color·"red">Thtrd rov of the table ue co
·""'w'·'"°m""""' . ~ at'u4u
""'" """"' "'"""""'" '
nr> <eh co]3pan·2> LEFT <t'th>cth cdIs»lj·2> RIGHT ¢1th)¢ftr>
I 1'hj ~ 0( 1/4 uuL "4l4
,tr>ctd)lHcrtd><td>OUT¢ftd)ctd>lKcptd> <td)OUT<ftd)c""' LEFI RIGFIT ,
In row Leach cell is a heading cell (the text is centered) and it spans two columns.lt was' coded as:
The second row of the above table was coded like this:
<TR> <TD>IN</TD><TD>OUT"/TD>"TD>IN"/TD> "TD"OUT"/TD" "/TR"
The third row of the above table was coded like this:
<TR" "TD COLSPAN=4"This cellspans 4 columns </TD> </TR>
The use of the colspan = 2 attribute with the <th> tags in the hrst row of the table causes each header
cell to expand rightwards by two columns i.e., the width of these cells will be twice the width of any
normal cell of the table. Similarly, the use of colspan=4 attribute with the last <td> tag causes the last
column to extend rightwards by4 cells.
,
cells'of a table.lt is the wh ite space padding around the cell contents.
Cellspacing,on thewant
other
dm."""
wall in a table.lf you nohand, refers
spaces to themust
at all,you space
setleft between each cell
CELLSPACING="0", Sachin TendliEar
otherwise the default setting is CELLSPACING="1", even if you do not celjdding
even mention the CELLSPACING. ce||spacing
Note:The space between the cells across the rows will only be contro||ed if you use the ce||spacing
attribute in combination with aWlDTH settingfor each cell in the first row.
`Ìi`ÊÜÌ
ÊÌ
iÊ`iÊÛiÀÃÊvÊ
vÝÊ*ÀÊ*Ê
`ÌÀÊ
/ÊÀiÛiÊÌ
ÃÊÌVi]ÊÛÃÌ\Ê
ÜÜÜ°Vi°VÉÕV°
Ì
¶¶
Advanced HTML I
(jNDERSTANDING HYPERLINKS
Hyper|inks or Anchors are the foimdation of theWorld WideWeb or theV\NV\N. They'link' the
web pages of the different websites together into a global network of information that allows users to
surffrorn page to page. Hyperlinks also link the various elements within a web page such as Graphics,
ext and Sound,etc.The major strength of HTML is its ability to link text and/or image/s to other web
page/s or to section/s of web page/s.
A Hyperlink is a text string or an image on a web page which when clicked on,takes visitors to
ano±er section on the same web page or to a differentlinked web page.
D'pes of Hyperlinks
Hyperlinks can be of different types depending upon the type of navigation they provide (Internal or
External navigation) and the web page element used as the hyperlink (1mage,Text or E-mail 1D).Some
common types of links that we come across on the web pages are as follows:
I. Internal Links:lnternal links are the links between different elements within the same web site.
2. Local Links: Local links are the links with otherWeb pages on the sameWeb server.
3. External Links:These are the links to other web pages anywhere on the\N\N\N orto an Email box.
/ÊÀiÛiÊÌ
ÃÊÌVi]ÊÛÃÌ\Ê
ÜÜÜ°Vi°VÉÕV°
Ì
"Y
WJY
Fastrack - 10
An Internal link is a hyperlink which when clicked takes the visitor to another section on the sadi'
web page.
' '"0
. "\;
.
"
<d1 ccmpact>
<dt>keyboard
<dd>A typewriter like input device used very commonly with the computer to to enter data Ln the
form of text
<dt>Mouse
<dd>A pointing device used commonly vith the desktop computers to tnput data and instructions
<dt>CPU (Central Processing UnU)
<dd>The main processing device of the computer. It is responstble for controlKng and coorcAnattng
all the actions of the computer. and execute software programs
<dt>Monitcrr
<dd>The most CO!Ol1 output dmnce used vith the computer Shovs the output produced by the computer
after processing of data
<dt>Arithmttc and Logic Unit
<dd>The part of the central processing unit which performs operations such as addition. subtraction
and multlplicatLon of integers and bit-uzse AND. OR. LIOT. XOR and other Boolean operations
<dt>Elar code
<dd>A printed homzontal strip of vertical bars of varying vidths. groups of which represent
decimal digits and are used for identifying commercial products or parts Bar codes are read by a
bar code reader and the axle interpreted either through softvare or a harclvare decoder.
<dt>C language
<dd>A programming language designed by Dennts Ritchie at AT&T Bell Labs ca. 1972 tor systems
programming on the POP-ll and unmediately used to retmplement Unix
<dt>Oeep Blue
<dd>A super computer developed by researchers at IBK to explore the use of parallel processing to
solve complex computing problems It is knovn as the first computer to beat the current chess Vorld
Grand Kaster
</d1>
<center><tmg src""cpu jpg" height"300 vtdth"450>u'center>
<A3ODY>
<t'HTNL>
Qb"
`Ìi`ÊÜÌ
ÊÌ
iÊ`iÊÛiÀÃÊvÊ
vÝÊ*ÀÊ*Ê
`ÌÀÊ
/ÊÀiÛiÊÌ
ÃÊÌVi]ÊÛÃÌ\Ê
ÜÜÜ°Vi°VÉÕV°
Ì
Advanced HTML I
2. Type on the top of the HTML document (just below the "body" cag) the code co create rhe firsc anchor
point as follows:
<a name= "point1"> <a>
3. Create a link referring to the above created anchor point at the bottom of the HTML document by cypi"g
the following code, just before the </body> tag as follows:
Anchor point
Reference point
µ :j"
Output of the above HTML code
" 0
- a '
/The name text is case sensitive and the associated hreftext should use the same case for all letters as
does the name. If the href called for 'Super Computer' and the name is actually 'supercomputer', the
linkwil1 notwork.
K
`Ìi`ÊÜÌ
ÊÌ
iÊ`iÊÛiÀÃÊvÊ
/ÊÀiÛiÊÌ
ÃÊÌVi]ÊÛÃÌ\Ê
ÜÜÜ°Vi°VÉÕV°
Ì
,py
Fa,t,a,k-lO
Linking two web pages on the same Website
A Loca| Hnk is a link that links two web pages residing on the same web server. Since web Pages ofthe
same web site almost always lie on the same web server,links that connect the two web pages of asan)e
web site are a|ways local in nature.
Let us learn how to create a local linkfor linking two HTML documents belonging to the same website,
'" uk Fcvms9 v~
cHTMIn Fk E& Form& Y'ew Mp
<HEAD· <HTML>
<TITLE> Lmr'n to Local LtnksUTITLE> cHEAD> Learn to cregte Local [nnks</T1TLE>
<TITLE>
'"HEAD>
<BQDY bgcolor-"pink" topmmrgin-20 10ftma]rglnw20) <B0DY
A1EAD>bgcolor·"pink" topmargin·20 18ftmargln-20)
Cpj (font foce-"tUNBs new roman' siZO-5> 1">More facts about the humn body:"hl>wo
In our ongoing quest for wonderful facts about all msnner oF things. wo <hl><font Face·"mistra ' size"4> nt)
hsw put togethor this lj6t a groat ll6t of amzjng human facts. These (ol><font fbce-"comic sans ms '
are tho fifteen most wonderful things about our bodies thot. hopefully, cli>The largest organ in the body is tba skin. In an adulr nag It
are news to most of our readersi So. onwards: <iFcnt>c[p covers about ].9m2 (20sq ft). Tho skin constantly flakes away - Lb a
(dj >< font focg-"cQKllc sans ms" $ize-4> Kfetima oach person shods around 18kg (40 lb) of skin.
<1i>The stmach's digestnm acids am strong enough to dissolve zinc. <1UThe avemge porson jn the West CdtS 50 tonnes oF food 31id drjnka
For'tunotely For us. the cells ta tho stomoch lining maew so quickly 50,000 liters (11.000 gsllons) of liquid during hl3 life.
thot tbe acids don"t havo time to dl6solvg it. <1i>A single human blood cell takes only 60 seconds to make a
cji>Tbe lungs contajn over 300.1)00 mllion (tiny blood cmpjato circuit of the body.
wssels) . <11)Thg eyes receive approximate 1 y 90 p ercgnt of sll our
IF Chey were laid end to end, would strotch 2400km (1500 mlos). infomauon. mUing us basically visual creoturos.
<1i>A mans testzclm monufacture 10 milhon ngw sporm cells each doy " cli>The f omalo ovsrjes contain nearly half m -mllioa egS cells. yk
·nough that ho could mpopulote the entire planet in only 6 only 400 or so will ever get tho opportunity to create a new life,
mootbs |(1o17<lfont)
croi>C/font>
p href ""next.btml">Click hern to vlcw more amzing tact9 about human
ody</0> lo hrof- "first .html ") Click hero to go to homo pagocra>
<1BODY> C 'EODY)
'1KTML> UHTML)
first.html next.html ,
2. Open the document first.html. Insert the anchor tag in it as given below to link it to the document
next.html kept in the same folder. (If the document is kept in another folder specif)' the complete path with
the href attribute).
<a href= "next.htm1"> Click here to view more amazing facts about human body</a>
Q)"
`Ìi`ÊÜÌ
ÊÌ
iÊ`iÊÛiÀÃÊvÊ
vÝÊ*ÀÊ*Ê
`ÌÀÊ
/ÊÀiÛiÊÌ
ÃÊÌVi]ÊÛÃÌ\Ê
ÜÜÜ°Vi°VÉÕV°
Ì
r" 4
Advanced HTML I
pr"$ d Fw rp Pt
J m; " "
Tla //4' '4w' r" ~/L cah Lo ~u «tu~t m
I Xjr· J
mpstom ~ r.
, b The
"·P,jAll-New
3G ',',' F· ()"i/ " 'L!mlEL9
,
E! k Z' #d ffl 4h a¶ ! 1
' "TT ,'3i3. " E," """ ' ' " ' " " S'
,,S,N ; i S, 1[XFh ·
j% '07 :S\:' ; - ".
% S.E. Sekncr for Kids ' (km " m C~ "
·'· d . - ;r' m·., I J t
' Y~ iN ,,Uy µ n «'.¥. i
T;e a:;c= w:b page wwwp"tara.com/ will open Click this link
REMEMPER j"j" ,,'
Here, "http://www.pitara.com/" is actually "http://www.pitara.com/index.)tm". Index.htm is y
ckfault the Home page of every website and the browser automatically searches for it and loads it.
Qr
`Ìi`ÊÜÌ
ÊÌ
iÊ`iÊÛiÀÃÊvÊ
vÝÊ*ÀÊ*Ê
`ÌÀÊ
/ÊÀiÛiÊÌ
ÃÊÌVi]ÊÛÃÌ\Ê
ÜÜÜ°Vi°VÉÕV°
Ì
,,,,I "¶
F%tr.,k.,0
Use of Target attribute of the <a> tag Click this link to open the linked web page in a new tab
I P
r '
Write down the HTML source code to generate the hyperlinks to the home page of the following
websites and use the mentioned text for the hyperlinks.
Websites Textforhyperlink
a. ht1r://www.google.co.in/ Effective search
, ' b. http://in.yahoo.com/ Fast search
c. http://dsc.discovery.com/ Discover the globe
d. http://www.nationalgeographic.co.in/ Explore your world
/ÊÀiÛiÊÌ
ÃÊÌVi]ÊÛÃÌ\Ê
ÜÜÜ°Vi°VÉÕV°
Ì
4
Advanced HTML I
2, Save the file using the SaveAs command.Give it a name and then open it in the web browsek
n,
=: ~ ": """2""'--·---~n
" "" "" 4 ' Q C*
of cr7 t»q Lo a~LA Rh 1&nkc"TKLEr c'F1UD> m
TC·· r·s' 'L~ 7~· cAj4t k
,KGP C Lm m :"' ~L" ' CB' 0~"
._=Z"J · ·
Tq4 emapi0 qcUC to crmce mu 1= UA.Ab J ,
c4 hrel tom To s d
click bmre<^ 7cpmn¢oT7 en u Res m g Ilk
A
,1IQQC 7
,rHX)Y·
,,KML'
\
.
Tp_C d u
- ST-_._" here
r y . Summing Up >
0 ou can add images to a Webpage either as: Background Image, using the <BODY> Tag and
Foreground Image, using the <IMG> Tag.
· To display an image in the foreground on a Webpage, the MG tag with SRC attribute is used.
· To set an image as the background in a webpage, the <Body Background="picture name"> is used.
0 The ALT attribute specifies alternative text the browser may showif the image display is notpossible or
disabled by the user.
· The <tab1e> tag can be used for iiiSerting tables on the web pages with the help of the <th> <tr> and
<td> tags.
0 COLSPAN is an attribute of the <TH> and the <TD> tags. Itis used whenwe wantto have a particular
table cell span or cross over more than one column.
0 The ROWSPAN attribute of the TABLE element is used to stretch a column vertically across two or
more rows of a table.
0 Hyperlinks are the text strings or images on a Webpage which when clicked take a visitor to the linked
web page or section.
0 Hyperlinks can be classified into three types on the basis of the navigation they provide. These are:
Internal links, Locallinks and Externallinks.
0 Internallinks are links to differentsections in a Webpage.
0 Internallinks orBookmarks are created usingNAME and HREF attributes of the <A> tag.
0 Local links are links to different Wepages stored on the same Web Server. You need to specify the .html
file to which you wantto linkto.
0 External links are links to Web sites or Web pages stored on other Web servers. The absolute address of
the Webpage needs to be specified in the HREF attribute for creating a linkto an externalwebpage.
0 The mailto links provide access to the E-mail address mentioned through the default mail program on
(a"
`Ìi`ÊÜÌ
ÊÌ
iÊ`iÊÛiÀÃÊvÊ
vÝÊ*ÀÊ*Ê
`ÌÀÊ
/ÊÀiÛiÊÌ
ÃÊÌVi]ÊÛÃÌ\Ê
ÜÜÜ°Vi°VÉÕV°
Ì
Fastrack- 1q
S "
/ÊÀiÛiÊÌ
ÃÊÌVi]ÊÛÃÌ\Ê
ÜÜÜ°Vi°VÉÕV°
Ì
r""
Adwlnced HTML I
Answers: I) b 2) b 3) a 4) c 5) a 6) b 7) d 8) b 9) b IQ) b
1l)a 12) a 13) c 14) b IS) c
&$olved QUESTIONS
ab"
`Ìi`ÊÜÌ
ÊÌ
iÊ`iÊÛiÀÃÊvÊ
vÝÊ*ÀÊ*Ê
`ÌÀÊ
/ÊÀiÛiÊÌ
ÃÊÌVi]ÊÛÃÌ\Ê
ÜÜÜ°Vi°VÉÕV°
Ì
V
7
Fastrack- 10
Q.6. Howls the NAME attribute different ffom the HREF attribute used with the <a> tag?
Ans. The NAME attribute is used to specify the word which will serve as the Anchor and the HREF '
attribute directs the Browserto that word in the We@agc.
Q.7. Write the HTML code to create the adjacent table: Column I Column II
Ans. <tab1e> Customer ID Customer Name
<tr>
"th> Columnl</th>
<th> Column II </th>
</tr>
<tr>
<td> CustomerID </td>
<td> Customer Name </td>
</tr>
</tab1e>
Qr vÝÊ*ÀÊ*Ê `ÌÀÊ
/ÊÀiÛiÊÌ
ÃÊÌVi]ÊÛÃÌ\Ê
ÜÜÜ°Vi°VÉÕV°
Ì
' =EXERCISE TIME
I Multiple Choice Questions(MCQs):
1. Theuse of <td> and </td> addwhatto yourtables?
0 a. columns b. rows
c. steps d. None of these
2. Which attribute do you use to change the size of an image in HTML?
a. pliers b. height and width
c. bigger and smaller d. All of these
3. Which tag will you use to create hyperlinks on a web page?
a. <img> b. <a>
c. <tab1e> d. "hyperlink"
4. To add rows to your tables which tag do you use?
a. <td> and </td> b. <cr> and </cr>
c. <tr> and </tr> d. None of these
5. Choose the correct tag to left-align the content inside a table cell.
a. <td va1ign="left"> b. <td1eft"
c. "td align="left"" d. <tdleftalign"
6. How do you add a link which will allow the visitorto send an email from yourpage?
a. Add an image of an envelope b. Add <a href="sendmailtoyouraddress">
c. Add <a href="mailto:youremaUaddress"> d. None of these
' 7. Which property tells how many rows a cell should span?
a. height
. b. hspace
d. width
c. alt
9. Which of these tags are all <table> tags?
a. <thead><body><tr> b. "table><tr><td>
d. <table><tr><tt>
c. <table><head><tfoot> .
10. Which of the followingis usedto give non-breakingspaces?
b. href
a. alt
d. $nbsp
c.  
ab"
`Ìi`ÊÜÌ
ÊÌ
iÊ`iÊÛiÀÃÊvÊ
vÝÊ*ÀÊ*Ê
`ÌÀÊ
/ÊÀiÛiÊÌ
ÃÊÌVi]ÊÛÃÌ\Ê
ÜÜÜ°Vi°VÉÕV°
Ì
' V
""4
Fm'ack- 1q
II Objective Type Questions:
I. Fillintheblanks.
a. The .
.command will setthe image COMPUTER.JPG to coverthe background
of the webpage.
b. The tagis used to display animage in a Webpage.
. c. <IMG SRC= "Happy.jpg" ALIGN = LEFT> will make the text wrap to the
side of the image.
d. "A HREF= " "> click here to go to the next page </A> will make the
enclosed text, a hyperlinkto www.yahoo.com.
e. To display a message when a userpoints to an image, the attribute is used,
f. The and attributes are used to define the size of an image,
g. The pair of tags used for making a hyperlink are the andthe
h. The . and
will display "My Search Engine" as the hypertext
when clicked upon, will open the www.google.com website.
i. The attribute of the <table> tag is used to specify the alignment of the table
on the web page.
j. The hyperlinks are used to create e-maillinks.
b. You can use the ALT attribute to display the message when you point to an image
used as ahyperlink.
c. "SRC IMG = "mad.jpg"> will place the image named mad.jpg at the place where
the taghas been mentioned. a
e. Internallinks are the links with otherwebsites onthe same Web server. a
f. The text in the NAME and the HREF attributes is case insensitive. a
h. Using Internal linking a user can jump from one point to another, within the same
Webpage. [J
Qr
`Ìi`ÊÜÌ
ÊÌ
iÊ`iÊÛiÀÃÊvÊ
vÝÊ*ÀÊ*Ê
`ÌÀÊ
/ÊÀiÛiÊÌ
ÃÊÌVi]ÊÛÃÌ\Ê
ÜÜÜ°Vi°VÉÕV°
Ì
r"
Advanced HTML I
a. CELLPADDINGand CELLSPACING
b. COLSpANandROWSPANattributes
q"
`Ìi`ÊÜÌ
ÊÌ
iÊ`iÊÛiÀÃÊvÊ
vÝÊ*ÀÊ*Ê
`ÌÀÊ
/ÊÀiÛiÊÌ
ÃÊÌVi]ÊÛÃÌ\Ê
ÜÜÜ°Vi°VÉÕV°
Ì
Fastrack - 10
25. Write the HTML coding to create the following table in a web page
, to(12
26. Write the HTML code - 12:30
provide pm.)
a link _
to the Email-ll) inf)@navdeepublications.com through the
&lab EXERCISES
Exercise I: Creatinga website ontravel andtourism.
Suppose you are Rajesh studying in class X. Your class teacher has asked you to prepare a website
highlighting some important tourist destinations of India. How will you create such a website using
HTML?
Note: To create a website you need to create web pages of the website separately and then link them with
each other using the linking tags.
`Ìi`ÊÜÌ
ÊÌ
iÊ`iÊÛiÀÃÊvÊ
vÝÊ*ÀÊ*Ê
`ÌÀÊ
Q" /ÊÀiÛiÊÌ
ÃÊÌVi]ÊÛÃÌ\Ê
ÜÜÜ°Vi°VÉÕV°
Ì