0% found this document useful (0 votes)
17 views5 pages

Fit Seesional 2

The document contains questions and answers about HTML tags and elements. It discusses topics like creating ordered and unordered lists, image tags, changing link colors, defining tables, forms, frames, and more. Examples are provided for many answers to demonstrate how to implement different HTML structures and components.

Uploaded by

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

Fit Seesional 2

The document contains questions and answers about HTML tags and elements. It discusses topics like creating ordered and unordered lists, image tags, changing link colors, defining tables, forms, frames, and more. Examples are provided for many answers to demonstrate how to implement different HTML structures and components.

Uploaded by

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

Q1 HOW TO CREATE AN ORDERED LIST IN HTML

ANS <OL>

Q2 EACH CELL OF THE TABLE CAN BE REPRESENTEDD BY USING

ANS <TD>

Q3 WHICH TAG DEFINES AN IMAGE IN HTML

ANS <IMG>

Q4 THE COLOUR OF THE LINK CAN BE CHANGED IN< BODY> TAG

ANS TRUE

Q5 WHAT ISA LIST?NAME DIFFERENT TYPES OF LINE.

ANS list denotes a series of names, items, or figures arranged in a


row or rows
TYPE 1 ORDERED
2 UNORDERED
3 DESCRIPTION
Q6 THE ___ TAG IN HTML IS USED FOR CREATING A TAG TO FORM
ELEMENT

ANS <FORM>

Q7 WHAT DO YOU MEAN BY TABLE ?HOW TO YOU CREATE A


TABLE.

ANS A TABLE IS SET OF DATA THAT IS IN THE FORM OF ROW AND


COLUMNS.IT GIVES A QUICK WAY TO FIND AND TYPE DIFFERENT
TYPES OF DATA

<HTML>
<HEAD>
<TITLE>CREATING TABLE</TABLE>
<BODY BG COLOUR=CYAN>
<H1>TABLE WITH THREE ROW AND THREE COLUMNS</H1>
<TABLE BORDER=1>
<TR>
<TD>ROW1,CELL1</TD
<TD>ROW 2,CELL2 </TD>
<TD>ROW3,CELL3</TD>
</TR>
<TR>
<TD>ROW2,CELL1</TD>
<TD>ROW2,CELL2</TD>
<TD>ROW2,CELL3</TD>
</TR>
<TR>
<TD>ROW3,CELL1</TD>
<TD>ROW3,CELL2</TD.
<TD>ROW3,CELL3</TD>
</TR>
</TABLE>
</BODY>
</HTML>

Q8. What is the difference between internal and external link?

ANS EXTERNAL LINK INTERNAL LINK

1 IT IS DIFFICULT TO CONTROL 1 IT IS EASY ,FAST TO CONTROL.

2 IT HAS MORE VALUE 2 IT HAS LESS VALUE

3 IT CONNECTS TO YOU 3 IT CONNECTS TO YOUR

EXTERNAL PAGES INTERNAL PAGES

4 IT IMPROVES THE QUALITY 4 IT HELPS BOTS TP FIND OTHER

OF WEB PAGES WEB PAGES ON YOUR SITE

5 IT APPEARS WITHIN THE 5 IT APPEARS IN WEBSITE

BODY TEXT ,IN CONTENT . NAVIGITION AS WELL AS IN THE


CONTENT

Q11. What do you mean by HTML forms? Explain

ANS AN HTML FORM IS USED TO COLLECT USER INPUT. THE USER


INPUT IS MOST OFTEN SENT TO A SERVERFROM PROCESSING .
<HTML>
<HEAD>
<TITLE>PAGE TITLE</TITLE>
</HEAD>
<BODY>
<HE> SELECT YOUR GENDER</H2>
<FORM>
<LABEL>MALE<INPUT TYPE =
"RADIO"NAME="GENDER"VALUE="MALE"/></LABEL>
LABEL>FEMALE<INPUT TYPE =
"RADIO"NAME="GENDER"VALUE="FEMALE"/></LABEL>
<FORM>
</BODY>
</HTML>
OUTPUT

MALE FEMALE

Q13. Create a web page to display horizontal and vertical frames

ANS
Example: Create a web page to display horizontal frames.
<HTML>
<HEAD>
<TITLE>HTML FRAMES</TITLE>
</HEAD>
<FRAMESET ROWS = “30%, 40%, 30%>
<FRAME NAME = “TOP” SRC = “C:\FONTS.HTML”/>
<FRAME NAME = “MAIN” SRC = “C:\FONTS1.HTML”/>
<FRAME NAME = “BOTTOM” SRC = “C:\PARAGRAPHS.HTML”/>
<NOFRAMES>
<BODY>HORIZONTAL FRAMES</BODY>
</NOFRAMES>
</FRAMESET>
</HTML>
Example: Create a web page to display VERTICAL frames.
<HTML>
<HEAD>
<TITLE>HTML FRAMES</TITLE>
</HEAD>
<FRAMESET ROWS = “30%, 40%, 30%>
<FRAME NAME = “TOP” SRC = “C:\FONTS.HTML”/>
<FRAME NAME = “MAIN” SRC = “C:\FONTS1.HTML”/>
<FRAME NAME = “BOTTOM” SRC = “C:\PARAGRAPHS.HTML”/>
<NOFRAMES>
<BODY>VERTICAL FRAMES</BODY>
</NOFRAMES>
</FRAMESET>
</HTML>

09. What do you mean by frames? Explain

ANS HTML frames are used to divide the browser window into multiple sections
where each section can load a separate HTML document. A collection of frames
in the browser window is known as a frameset. The browser is divided into
frameset in a similar way, the table is organized into rows and columns.
Example: Create a web page to display VERTICAL frames.
<HTML>
<HEAD>
<TITLE>HTML FRAMES</TITLE>
</HEAD>
<FRAMESET ROWS = “30%, 40%, 30%>
<FRAME NAME = “TOP” SRC = “C:\FONTS.HTML”/>
<FRAME NAME = “MAIN” SRC = “C:\FONTS1.HTML”/>
<FRAME NAME = “BOTTOM” SRC = “C:\PARAGRAPHS.HTML”/>
<NOFRAMES>
<BODY>VERTICAL FRAMES</BODY>
</NOFRAMES>
</FRAMESET>
</HTML>

Q10. Difference between (1) Cellspacing & Cellpadding (ii) Rowspan &
Colspan

ANS 1 Cell Spacing


The spacing between the cells can be increased with the cellspacing="p" attribute where p
equals the number of pixels to put between cells.
Cell Padding

The spacing around an item within each cell can be increased with the cellpadding = "p"
attribute where p equals the number of pixels to put between the item and the end of the cell

2 COLSPAN

The COLSPAN attribute can be used in a cell to make cell’s contents merge with another
cell.

ROWSPAIN
ROWSPAN attribute can be used to merge two rows in a table.

You might also like