MCQ Questions for Class 10 Computer Applications Chapter 7 Advanced HTML

Advanced HTML Class 10 MCQ Questions with Answers

Question 1.

A can be inserted in HTML document which can act as a container for all the input elements.

(A) Text field
(B) Text area
(C) Form
(D) Command Button
Answer:
(C) Form

Explanation:
HTML Form is a document which stores information of a user on a web server using interactive controls.

MCQ Questions for Class 10 Computer Applications Chapter 7 Advanced HTML

Question 2

……… method is used to sent form data as URL variables.

(A) Get
(B) Set
(C) Post
(D) None of these
Answer:
(A) Get

Explanation:
Some other features of GET requests are:

  • GET requests can be cached.
  •  GET request remains in the browser history.

Question 3.

Which of the following tag is used to link the URL ?

(A) <hyperlink>
(B) <link>
(C) <a>
(D) <style>
Answer:
(C) <a>

Explanation:
An anchor element is used to create a hyperlink in a webpage. The word anchor has come from the function performed by anchor in a ship.

Question 4.

Link URL in HTML is specified using attribute.

(A) Src
(B) href
(C) rel
(D) link
Answer:
(B) href

Explanation:
The HREF attribute is used to contain the URL of the link to be loaded by the browser.

Question 5.

Following tag stands for – <a>

(A) Action Tag
(B) Additional Tag
(C) Anchor Tag
(D) Active Tag
Answer:
(A) Action Tag

Explanation:
The < A> tag is used to link with other webpages. The <A> tag is called anchor tag.

Question 6.

Value of attribute “href” is also called as of the destination webpage.

(A) URS
(B) URK
(C) URL
(D) URM
Answer:
(C) URL

Explanation:
URL stands for Uniform Resource Locator.lt is the address of the webpage to be loaded by the browser.

MCQ Questions for Class 10 Computer Applications Chapter 7 Advanced HTML

Question 7.

URL in HTML stands for……….

(A) Universal Resource Locator
(B) Uniform Resource Locator
(C) Uni Resource Locator
(D) None of these
Answer:
(B) Uniform Resource Locator

Explanation:
URL is the address of the website webpage to be loaded by die browser.

Question 8.

Link in HTML can be of following type(s).

(A) Unvisited
(B) Visited
(C) Active
(D) All are these
Answer:
(D) All are these

Explanation:
Links in HTML can be unvisited, visited and active. Unvisited links are those links that are never visited by the user. Visited links are those links that are already visited by the user. Active links are those links which the user had clicked.

Question 9.

Default Style and Color of unvisited link in any browser is……..

(A) Underline and Magento
(B) Normal and Blue
(C) Underline and Pink
(D) Underlined and Blue
Answer:
(D) Underlined and Blue

Explanation:
The unvisited links are displayed as underlined and in blue color.

Question 10.

Which of the attribute(s) cannot be present if the href attribute is not present ?

(A) hreflang
(B) rel
(C) target
(D) All of these
Answer:
(D) All of these

Explanation:
The attributes like hreflang, rel and target will not be present if the href attribute is not available.

Question 11.

<TR> belongs to ….. tag.

(A) <Table>
(B) <DIV>
(C) < Frameset >
(D) <TD>
Answer:
(A) <Table>

Explanation:
Some other features of GET requests are:

  • GET requests can be cached.
  • GET request remains in the browser history.

Question 12.

………… tag is used to add columns to a table.

(A) definition list
(B) definition list term
(C) definition list description
(D) none of the above
Answer:
(D) none of the above

Explanation:
A definition list can have multiple terms for a given definition as well as multiple definitions for a given term. A definition list has two pieces for each item, a term and a definition. The <DT> tag stands for Definition List Term. The <DD> tag stands for Definition List Description.

Question 13.

Which attribute is used to define cell contents to left ?

(A) Valign
(B) Align
(C) Galign
(D) Halign
Answer:
(B) Align

Explanation:
The Align attribute of <TABLE> tag is used to align the contents of a cell to left, right and centre.

MCQ Questions for Class 10 Computer Applications Chapter 7 Advanced HTML

Question 14.

Which tag is used to add a row to a table?

(A) TR
(B) TD
(C) TH
(D) TC
Answer:
(A) TR

Explanation:
The <TR> tag is used to add a new row to a table. It is used inside the < TABLE > tag.

Question 15.

Which of the following is used to specify the beginning of a,table’s row?

(A) TROW
(B) TABLER
(C) TR
(D) ROW
Answer:
(C) TR

Explanation:
The <TR> tag is used to specify the table row. The number of <TR> tag in the <TABLE> tag specifies the number of rows in that table.

Question 16.

In order to add border to a table, BORDER tag is specified in which tag

(A) THEAD
(B) TB ORDER
(C) TABLE
(D) TR
Answer:
(C) TABLE

Explanation:
The BORDER attribute is used with the < TABLE > tag to specify a border to a table. If the <TABLE> tag is without the BORDER attribute, then the table will appear without any border.

Question 17.

Which of these tags are called table tags?

(A <Theadxbody><tr>
(B) <Tablextrxtd>
(C) <Tablexheadxtfoot>
(D) <Tablextrxtt>
Answer:
(B) <Tablextrxtd>

Explanation:
The < TABLE >, <TR> and <TD> are all tags related to creating a table. The < TABLE > tag defines a table.Inside it, appears the <TR> tag that defines the row, Inside <TR> tag appears the <TD> tag that specifies the column of a table. The tags are closed according to the sequence they are opened.

Question 18.

Which HTML command is used to align the contents of the cell to right?

(A) <TR align = “right-” >
(B) <TD align=”right” >
(C) <TD> align=right
(D) All of the above
Answer:
(B) <TD align=”right” >

Explanation:
The <TD align=”right”> align its content to the right of the cell of a table.

Question 19.

The two common attributes of IMG and TABLE tag are :

(A) SRC and HEIGHT
(B) HEIGHT and WIDTH
(C) BORDER and SRC
(D) None
Answer:
(B) HEIGHT and WIDTH

Explanation:
The HEIGHT attribute specifies the height of the rows. It is calculated in pixels. The Width attribute specifies the width of the row.

Question 20.

Which of the following is not an attribute of < table > tag?

(A) Border
(B) Background
(C) Bgcolor
(D) SRC
Answer:
(D) SRC

Explanation:
The SRC attribute is not one of the 1 attributes of <TABLE > tag. It is the attribute of <IMG> and <A> tags.

MCQ Questions for Class 10 Computer Applications Chapter 7 Advanced HTML

Question 21.

rowspan=n and colspan=n can be added to …….tag

(A) <hr>
(B) <table >
(C) <td>
(D) <tr>
Answer:
(C) <td>

Explanation:
Colspan is used only with <TD> tag and it extends the cells horizontally. Rowspan is used only with <TD> tag and it extends the cell vertically. Its value can be a number.

Assertion and Reason Based MCQs

Directions: In the following questions, A statement of Assertion (A) is followed by a statement of Reason (R). Mark the correct choice as.
(A) Both A and R are true and R is the correct explanation of A
(B) Both A and R are true but R is Not the correct explanation of A
(C) A is true and R is false
(D) A is false and R is true

Question 1.

Assertion (A): The SUBMIT or RESET buttons that sends all the collected information to the server orclears the form information respectively.
Reason (R): The information is then processed and give the output.

Answer:
(B) Both A and R are true but R is Not the correct explanation of A

Explanation:
The syntax to use SUBMIT is: <FORM> ” < INPUT type=”SUBMlT” value=”SUBMIT”> </FORM> Using the above statement, a form appears with a button named as SUBMIT.

Question 2.

Assertion (A): It is not possible to have a form inside a form.
Reason (R): A form cannot be nested.

Answer:
(A) Both A and R are true and R is the correct explanation of A

Explanation:
It is possible to add all kinds of HTML tags between the <FORM> and </ FORM> tags. This means that a form can easily include a table or an image along with the actual elements. The <FORM> tag cannot have another <FORM> tag inside it. A form cannot have a subform as it cannot be nested.

Question 3.

Assertion (A): The <FORM NAME=”Form Name”> specifies the name of the Form.
Reason (R): The form name is always displayed on the Form.

Answer:
(C) A is true and R is false

Explanation:
The name of the form is not displayed on the form. As the user can have more than one FORM tags in an HTML document, so to differentiate one Form from another, a name is required to be given. Name attribute is optional if only one <FORM> tag is used.

MCQ Questions for Class 10 Computer Applications Chapter 7 Advanced HTML

Question 4.

Assertion (A): Data cannot be encrypted in the form.
Reason (R): The ENCTYPE attribute specifies how the data is sent to the destination.

Answer:
(D) A is false and R is true

Explanation:
The <FORM ENCTYPE=”PLAIN/ TEXT”> specifies how the data is sent to the destination. It encrypts the data and sends it as it is to the destination place.

Question 5.

Assertion (A): The <INPUT> tag is required when the user has to give some input/data.
Reason (R): The <INPUT> tag is not a compulsory tag used withinthe FORM tag.

Answer:
(C) A is true and R is false

Explanation:
The < INPUT > tag is required when the user has to give some input/data. This tag is always used within the FORM tag. Thus, INPUT tag defines a FORM element which can receive user input. The TYPE attribute determines the specific sort of FORM element to be created i.e. this attribute specifies the type of input we want from the user. It can be used to create the following type of interface elements:
(A) BUTTON
(B) CHECKBOX
(C) RADIO
(D) TEXT
(E) SUBMIT and RESET
(F) IMAGE
(G) FILE
< INPUT TYPE=”BUTTON” >: This will place a button on an HTML form.

Question 6.

Assertion (A): External links which link your pages to other web page. i.e. linking between two different documents.
Reason (R): In order to create an external link to another website, you need to know the other website’s URL with full path.

Answer:
(B) Both A and R are true but R is Not the correct explanation of A

Explanation:
External links is used to link a document to external web page. This link may be absolute path or relative link path. If you want to create an external link from your website to google.com page, you can code like this: < AHREF = ” http://www.goo gle.com/” > Google Home</A>

Question 7.

Assertion (A): The full form of HREF is Higher Text Reference.
Reason(R): The value of the HREF attribute is the location (URL) of the external resource.

Answer:
(D) A is false and R is true

Explanation:
The full form of HREF is HyperText Reference. The HREF attribute of the <A> tag is used to create a hyperlink. The HREF attribute is used to address the document to link to and the words between the open and close of the anchor tag will be displayed as a hyperlink. The syntax of creating an anchor text is as follows: <A HREF=” URL” > Text to be displayed </A>

Question 8.

Assertion (A): The mailto link is a type of HTML link that activates the default mail client on the computer for sending an e-mail..
Reason (R): The web browser requires a default e-mail client software installed on his computer in order to activate the e-mail client.

Answer:
(B) Both A and R are true but R is Not the correct explanation of A

Explanation:
The mailto link is written in the same format as a hyperlink except you use mailto: in place of the http:// and your e-mail address in place of the page address or URL. The syntax of mailto link is as follows: < A HREF=”mailto: < emaillD” >…. </A>

MCQ Questions for Class 10 Computer Applications Chapter 7 Advanced HTML

Question 9.

Assertion (A): The CONTROLS attribute of < VIDEO > tag takes Boolean value(True or False), thus.
Reason (R): The user had to give the value as True or False to CONTROLS attribute.

Answer:
(A) Both A and R are true and R is the correct explanation of A

Explanation:
If the CONTROLS attribute is set to True, the video will appear with controls like play, pause and volume. If this attribute is omitted, then the browser will not display the default controls.

Question 10.

Assertion (A): Cellspacing in a table is used to put more space around each cell. It defines the space between cells.
Reason (R): By default, cellspacing width is 2 pixels.

Answer:
(B) Both A and R are true but R is Not the correct explanation of A
Explanation:
An example of cellspacing is given below:
<HTML>
<HEAD>
< TITLE > TABLE Example </TITLE>
</HEAD>
<BODY>
< TABLE BORDER=”5″ BORDERCOLOR= “BLUE” CELLSPACING=”8″ >
<TR>
<TD>Serial Number</TD>
<TD> Teacher Names <//TD>
<TD> Phone Number </TD>
<TD> Address </TD>
</TR>
</TABLE>
</BODY>
</HTML> ‘

Question 11.

Assertion (A): you can have rows with different columns.
Reason (R): The COLSPAN attribute of <TABLE> tag is used to merge two or more columns in one.

Answer:
(A) Both A and R are true and R is the correct explanation of A

Explanation:
Colspan is used to merge multiple columns. Minimum value for COLSPAN is 2 and default value is Syntax to use the COLSPAN attribute is: <TDCOLSFAN=X>Where X is the number of cells it extends horizontally.

Question 12.

Assertion (A): When data is arranged in a table, it gives a more flexible and attractive way to represent information.
Reason (R): A table is used to arrange data in the form of rows and columns.

Answer:
(A) Both A and R are true and R is the correct explanation of A

Explanation:
Representing the data in tabular manner makes it easier to perform the comparative analysis of data.

MCQ Questions for Class 10 Computer Applications Chapter 7 Advanced HTML

Question 13.

Assertion (A): The BORDER attribute in <TABLE>is used to specify the border of the table.
Reason (R): If the BORDER attribute is not specified then the table will appear without any border.

Answer:
(A) Both A and R are true and R is the correct explanation of A

Explanation:
The Border attribute is used to display a table with border. If the value of the BORDER attribute is 0, then the table will appear without any border.

Question 14.

Assertion (A): The valign attribute specifies the alignment of the cell contents vertically.
Reason (R):The value of the valign attribute can be Top, Middle or Bottom.

Answer:
(B) Both A and R are true but R is Not the correct explanation of A

Explanation:
The syntax to define the valign attribute of <TABLE> tag is:
<TABLE>
<TR Valign=”Top/Middle/Bottom”>
<TD Valign=”Top/Middle/Bottom” >
</TABLE>

Question 15.

Assertion (A): The width attribute specifies the height of a table.
Reason (R): The width attribute of < TABLE > is not supported in HTML5.

Answer:
(D) A is false and R is true

Explanation:
The width attribute specifies the width of a table. If the width attribute is not set, a table takes up the space it needs to display the table data. Syntax:
<TABLE WIDTH=”pixels | %”> Where the value of the WIDTH attribute can be the number of pixels or percentage value. The <TH> tag defines the header of the table.

Question 1.

A table is used to arrange data in the form of

(A) Rows
(B) Columns
(C) Both (a) and (b)
(D) None of these
Answer:
(C) Both (a) and (b)

Explanation:
A table is used to arrange data in the form of rows and columns. Rows are the horizontal portion and columns are the vertical portion of a table.

Question 2.

The tag <TR> me

(A) Table Row
(B) Table Data
(C) Table Column
(D) None of these
Answer:
(A) Table Row

Explanation:
To define a table row, a user use 1 <TR>tag.

MCQ Questions for Class 10 Computer Applications Chapter 7 Advanced HTML

Question 3.

Each table may have a caption relevant to the information which is represented by tag.

(A) <TR>
(B) <TH>
(C) <TD>
(D) <CAPTION>
Answer:
(D) <CAPTION>

Explanation:
The <CAPTION > tag defines a suitable caption of a table.

Question 4.

Which of the following statements is/are TRUE?

(A) When data is arranged in a table, it gives a more flexible and attractive way to represent information.
(B) The contents of a row are divided into data cells.
(C) Representing the data in tabular manner makes it easier to perform the comparative analysis of dat(A)
(D) All of these
Answer:
(D) All of these

Explanation:
A table is an arrangement of data in rows and columns, or possibly in a more complex structure. Tables are widely used in communication, research, and data analysis. Tables appear in print media, handwritten notes, computer software, architectural ornamentation, traffic signs, and many other places.

Question 5.

The <TABLE> tag is used to create a ……

(A) Row
(B) Column
(C) Table
(D) None of these
Answer:
(C) Table

Explanation:
The < TABLE > tag is used to define a table.Tables provide you a way to arrange the data in the form of rows and columns.

Question 6.

The tag to define the header of the table is…….. tag.

(A) <TR>
(B) <TD>
(C) <TH>
(D) <CAPTION>
Answer:
(C) <TH>

Explanation:
The <TH> tag defines the header cell in a table. It is placed inside the <TABLE> and <TR> tags.

Question 7.

Which of the following defines the correct sequences of steps of the syntax to create a table?

(A) < TABLE >
<CAPTION>
<TR>
<TH> </TH>
</TR>
<TR>
<TD> …. </TD>
</TABLE>

(B) <TABLE>
< CAPTION > </ CAPTION >
<TH> </TH> ”
</TR>
<TR>
<TD> …. </TD>
</TR>

(C) <TABLE>
< CAPTION > </ CAPTION >
<TR>
<TH> </TH>
</TR>
<TR>
<TD> …. </TD>
</TR> ‘
</TABLE>

(D) None of these
Answer:
(C) <TABLE>
< CAPTION > </ CAPTION >
<TR>
<TH> </TH>
</TR>
<TR>
<TD> …. </TD>
</TR> ‘
</TABLE>

Explanation:
In the syntax, the <TABLE> tag comes first followed by <CAPTION> tag. To define the row, <TR> tag and if table header is to be defined then <TH> tag is used. The <TD> tag is used to define the data of the row.

I. Inline and Embedded Style Sheet
Inline style sheets are used to add styles to a particular tag or group of tags. The style information is included within the tag of an HTML element. They do not affect only the single element or individual occurrence of the tag to which the style is applied. The style information of an HTML element is specified using STYLE attribute within the element tag. The style information is enclosed in double quotes and semi-colon(;) to separate multiple style properties. A colon is used to assign value to individual property. Internal or embedded style sheets are used to define unique styles for the elements of a single HTML document. The internal styles are defined in the HEAD section of HTML document by using the < STYLE > tag. This specifies the style sheet area within the HTML document. The TYPE attribute of < STYLE > tag specifies the type of style sheet being used.

MCQ Questions for Class 10 Computer Applications Chapter 7 Advanced HTML

Question 1.

…………. style sheets are used to add styles to a particular tag or group of tags.

(A) Inline
(B) Embedded
(C) Outline
(D) None of these
Answer:
(A) Inline

Explanation:
The inline style is specific to the tag itself. It uses the HTML “style” attribute to style a specific tag.

Question 2.

A………..is used to assign value to individual property.

(A) Semi-colon
(B) Comma
(C) Colon
(D) Inverted comma
Answer:
(C) Colon

Explanation:
CSS has now become a very important part of building blogs and websites. The use of colon is given as: < STYLE type=”text/css” > Hl{ Color: Sienna;
Text-align: Center } </STYLE>

Question 3.

…………..style sheets are used to define unique styles for the elements of a single HTML document.

(A) Internal
(B) Embedded
(C) Both (A) or (B)
(D) None of these
Answer:
(C) Both (A) or (B)

Explanation:
In Embedded CSS, you can put your CSS rules into an HTML document using the < style > element. This tag is placed inside the <head>…</head> tags. Rules defined using this syntax will be applied to all the elements available in the document.

Question 4.

The internal styles are defined in the section of HTML document by using the < STYLE > tag.

(A) HEAD
(B) BODY
(C) TITLE
(D) None of these
Answer:
(A) HEAD

Explanation:
The syntax of using < STYLE > tag is:
<head>
<style type=”text/css” media=”…”>
Style Rules </style>
</head>

Question 5.

The ……..attribute of < STYLE > tag specifies the type of style sheet being used.

(A) START
(B) CSS
(C) TYPE
(D) HREF
Answer:
(C) TYPE

Explanation:
The type attribute of the <STYLE> tag gives information about the type of document to the browser.

MCQ Questions for Class 10 Computer Applications Chapter 7 Advanced HTML

Question 6.

The style information is enclosed in and ……..to separate multiple style properties.

(A) Double quotes
(B) Semi-colon(;)
(C) Both (A) and
(B) (D) None of these
Answer:
(C) Both (A) and

Explanation:
The use of double-quotes and semi-colon can be easily understandable by going through the following code:
<!DOCTYPE html>
<html>
<head>
< title > Learning HTML </title>
</head>
<body>
<p sty!e=”font-size: xx-large; colonmaroon; text-align:ccn ter; border: groove 5px orange” > Learning HTML </p>
<p sty!e=”font-size: x-large; colongreen; text-align:right; border:ridge 3 px maroon” >
Learning HTML </p>
<p style=”font-size: medium; colonnavy; text-align:left; bordendashed 4 px green” > Learning HTML </p>
</body> </html>

Question 7.

What is the type of the CSS code in the following code?

<html>
<BODY>
< HI style=”Color:Red;Text-align:Center” >
Welcome </Hl>
<P style=”Font-size:18pt”>This is a style.</P> <H2 style=”Color: Blue;Font-size:24pt”> Using STYLE attribute </H2>
</body> .
</html>
(A) Inline style sheet
(B) Embedded style sheet
(C) Both (A) and (B)
(D) None of these
Answer:
(A) Inline style sheet

Explanation:
An inline style may be used to apply a unique style for a single element. To use inline styles, add the style attribute to the relevant element. The style attribute can contain any CSS property. Inline styles are defined within the “style” attribute.

II. CSS AND THE STEPS TO WRITE IT
A CSS is basically a tool that allows adding style to a web page. A style sheet consists of a set of instructions or rules that are made up of two parts given as:

  • A selector
  • A set of properties

The main aim of CSS is to increase the style of the page. Therefore, CSS appears to be visual-based. One of the main properties of CSS’s is that all the images, pages, object and style have to be saved in the same directory. The author of the page has to create a style sheet in the text editor being used.
To write a style sheet,

  • The header of the HTML file being written for the web page has a link to the style sheet.
  • The next step involves writing a set of rules. The rules consist of selectors and the actions that they have to perform.
  • A selector for an element or a tag is the text that appears within the tag (i.e. the selector for the <P> tag is P).
  • Then within braces the property is written. This consists of a property separated by its value with a colon and a space.

Question 1.

The full form of CSS is……….

(A) Cascading Style Sheet
(B) Concatenate Style Sheet
(C) Convey Style Sheet
(D) Conclusive Style Sheet
Answer:
(A) Cascading Style Sheet

Explanation:
Cascading style sheet is a list of statements that can assign various rendering properties to HTMLelements.

MCQ Questions for Class 10 Computer Applications Chapter 7 Advanced HTML

Question 2.

The main aim of CSS is to increase the of the page.

(A) Style
(B) Length
(C) Breadth
(D) Size
Answer:
(A) Style

Explanation:
Cascading Style Sheet (CSS) is a simple mechanism for adding style (e.g., fonts, colors, spacing) to Web documents.

Question 3.

A for an element or a tag is the text that appears within the tag.

(A) Attribute
(B) Style
(C) Selector
(D) Property
Answer:
(C) Selector

Explanation:
Embedding style sheet requires more coding than linking it from the HTML file. If the style sheet is not embedded then the required page to be downloaded or viewed offline would not be correct. CSS is not supported by some of the editors, as editors don’t recognize some of the HTML codes that are generated while making CSS.

Question 4.

What is the difference between HTML and CSS?

(A) HTML is the markup language used to develop web pages while CSS adds style to the web page.
(B) HTML adds style to the web page while CSS is the markup language to develop web pages.
(C) Both are incorrect statements
(D) None of these
Answer:
(A) HTML is the markup language used to develop web pages while CSS adds style to the web page.

Explanation:
Maintenance of the web page is easy. To make a global change, simply change the style, and all elements in all the web pages will be updated automatically.

Question 5.

The parts of style sheet is/are:

(A) A selector
(B) A set of properties
(C) Both (A) and (B)
(D) None of these
Answer:
(C) Both (A) and (B)

Explanation:
Using CSS, the number of times a background image is to appear or whether the tiles are to be placed horizontally or vertically can be specified.

Question 6.

What does the following statement correspond to? BODY background-color: Red ?

(A) This defines the font color of the text as red.
(B) This defines the background of the body to be in red.
(C) There is an error in the statement
(D) None of these
Answer:
(B) This defines the background of the body to be in red.

Explanation:
CSS Background-color property define the background color of an element. Its value is a color name or color code.

MCQ Questions for Class 10 Computer Applications Chapter 7 Advanced HTML

Question 7.

What does the following statement correspond to? HI {Color: Red}

(A) This defines the background of the body to be in red.
(B) This defines the font color of HI as red.
(C) This defines the background color of HI as red.
(D) None of these
Answer:
(B) This defines the font color of HI as red.

Explanation:
The COLOR property is used to give color to the element present on the web page. Its value is the color name or color code.

MCQ Questions for Class 10 Computer Applications with Answers

error: Content is protected !!