{"id":37015,"date":"2022-01-25T17:38:26","date_gmt":"2022-01-25T12:08:26","guid":{"rendered":"https:\/\/mcq-questions.com\/?p=37015"},"modified":"2022-02-25T09:34:49","modified_gmt":"2022-02-25T04:04:49","slug":"mcq-questions-for-class-10-computer-applications-chapter-7","status":"publish","type":"post","link":"https:\/\/mcq-questions.com\/mcq-questions-for-class-10-computer-applications-chapter-7\/","title":{"rendered":"MCQ Questions for Class 10 Computer Applications Chapter 7 Advanced HTML"},"content":{"rendered":"
Question 1.<\/p>\n
(A) Text field
\n(B) Text area
\n(C) Form
\n(D) Command Button
\nAnswer:
\n(C) Form<\/p>\n
Explanation:
\nHTML Form is a document which stores information of a user on a web server using interactive controls.<\/p>\n
<\/p>\n
Question 2<\/p>\n
(A) Get
\n(B) Set
\n(C) Post
\n(D) None of these
\nAnswer:
\n(A) Get<\/p>\n
Explanation:
\nSome other features of GET requests are:<\/p>\n
Question 3.<\/p>\n
(A) <hyperlink>
\n(B) <link>
\n(C) <a>
\n(D) <style>
\nAnswer:
\n(C) <a><\/p>\n
Explanation:
\nAn 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.<\/p>\n
Question 4.<\/p>\n
(A) Src
\n(B) href
\n(C) rel
\n(D) link
\nAnswer:
\n(B) href<\/p>\n
Explanation:
\nThe HREF attribute is used to contain the URL of the link to be loaded by the browser.<\/p>\n
Question 5.<\/p>\n
(A) Action Tag
\n(B) Additional Tag
\n(C) Anchor Tag
\n(D) Active Tag
\nAnswer:
\n(A) Action Tag<\/p>\n
Explanation:
\nThe < A> tag is used to link with other webpages. The <A> tag is called anchor tag.<\/p>\n
Question 6.<\/p>\n
(A) URS
\n(B) URK
\n(C) URL
\n(D) URM
\nAnswer:
\n(C) URL<\/p>\n
Explanation:
\nURL stands for Uniform Resource Locator.lt is the address of the webpage to be loaded by the browser.<\/p>\n
<\/p>\n
Question 7.<\/p>\n
(A) Universal Resource Locator
\n(B) Uniform Resource Locator
\n(C) Uni Resource Locator
\n(D) None of these
\nAnswer:
\n(B) Uniform Resource Locator<\/p>\n
Explanation:
\nURL is the address of the website webpage to be loaded by die browser.<\/p>\n
Question 8.<\/p>\n
(A) Unvisited
\n(B) Visited
\n(C) Active
\n(D) All are these
\nAnswer:
\n(D) All are these<\/p>\n
Explanation:
\nLinks 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.<\/p>\n
Question 9.<\/p>\n
(A) Underline and Magento
\n(B) Normal and Blue
\n(C) Underline and Pink
\n(D) Underlined and Blue
\nAnswer:
\n(D) Underlined and Blue<\/p>\n
Explanation:
\nThe unvisited links are displayed as underlined and in blue color.<\/p>\n
Question 10.<\/p>\n
(A) hreflang
\n(B) rel
\n(C) target
\n(D) All of these
\nAnswer:
\n(D) All of these<\/p>\n
Explanation:
\nThe attributes like hreflang, rel and target will not be present if the href attribute is not available.<\/p>\n
Question 11.<\/p>\n
(A) <Table>
\n(B) <DIV>
\n(C) < Frameset >
\n(D) <TD>
\nAnswer:
\n(A) <Table><\/p>\n
Explanation:
\nSome other features of GET requests are:<\/p>\n
Question 12.<\/p>\n
(A) definition list
\n(B) definition list term
\n(C) definition list description
\n(D) none of the above
\nAnswer:
\n(D) none of the above<\/p>\n
Explanation:
\nA 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.<\/p>\n
Question 13.<\/p>\n
(A) Valign
\n(B) Align
\n(C) Galign
\n(D) Halign
\nAnswer:
\n(B) Align<\/p>\n
Explanation:
\nThe Align attribute of <TABLE> tag is used to align the contents of a cell to left, right and centre.<\/p>\n
<\/p>\n
Question 14.<\/p>\n
(A) TR
\n(B) TD
\n(C) TH
\n(D) TC
\nAnswer:
\n(A) TR<\/p>\n
Explanation:
\nThe <TR> tag is used to add a new row to a table. It is used inside the < TABLE > tag.<\/p>\n
Question 15.<\/p>\n
(A) TROW
\n(B) TABLER
\n(C) TR
\n(D) ROW
\nAnswer:
\n(C) TR<\/p>\n
Explanation:
\nThe <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.<\/p>\n
Question 16.<\/p>\n
(A) THEAD
\n(B) TB ORDER
\n(C) TABLE
\n(D) TR
\nAnswer:
\n(C) TABLE<\/p>\n
Explanation:
\nThe 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.<\/p>\n
Question 17.<\/p>\n
(A <Theadxbody><tr>
\n(B) <Tablextrxtd>
\n(C) <Tablexheadxtfoot>
\n(D) <Tablextrxtt>
\nAnswer:
\n(B) <Tablextrxtd><\/p>\n
Explanation:
\nThe < 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.<\/p>\n
Question 18.<\/p>\n
(A) <TR align = “right-” >
\n(B) <TD align=”right” >
\n(C) <TD> align=right
\n(D) All of the above
\nAnswer:
\n(B) <TD align=”right” ><\/p>\n
Explanation:
\nThe <TD align=”right”> align its content to the right of the cell of a table.<\/p>\n
Question 19.<\/p>\n
(A) SRC and HEIGHT
\n(B) HEIGHT and WIDTH
\n(C) BORDER and SRC
\n(D) None
\nAnswer:
\n(B) HEIGHT and WIDTH<\/p>\n
Explanation:
\nThe HEIGHT attribute specifies the height of the rows. It is calculated in pixels. The Width attribute specifies the width of the row.<\/p>\n
Question 20.<\/p>\n
(A) Border
\n(B) Background
\n(C) Bgcolor
\n(D) SRC
\nAnswer:
\n(D) SRC<\/p>\n
Explanation:
\nThe SRC attribute is not one of the 1 attributes of <TABLE > tag. It is the attribute of <IMG> and <A> tags.<\/p>\n
<\/p>\n
Question 21.<\/p>\n
(A) <hr>
\n(B) <table >
\n(C) <td>
\n(D) <tr>
\nAnswer:
\n(C) <td><\/p>\n
Explanation:
\nColspan 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.<\/p>\n
Assertion and Reason Based MCQs<\/span><\/p>\n Directions: In the following questions, A statement of Assertion (A) is followed by a statement of Reason (R). Mark the correct choice as. Question 1.<\/p>\n Answer: Explanation: Question 2.<\/p>\n Answer: Explanation: Question 3.<\/p>\n Answer: Explanation: <\/p>\n Question 4.<\/p>\n Answer: Explanation: Question 5.<\/p>\n Answer: Explanation: Question 6.<\/p>\n Answer: Explanation: Question 7.<\/p>\n Answer: Explanation: Question 8.<\/p>\n Answer: Explanation: <\/p>\n Question 9.<\/p>\n Answer: Explanation: Question 10.<\/p>\n Answer: Question 11.<\/p>\n Answer: Explanation: Question 12.<\/p>\n Answer: Explanation: <\/p>\n Question 13.<\/p>\n Answer: Explanation: Question 14.<\/p>\n Answer: Explanation: Question 15.<\/p>\n Answer: Explanation: Question 1.<\/p>\n (A) Rows Explanation: Question 2.<\/p>\n (A) Table Row Explanation: <\/p>\n Question 3.<\/p>\n (A) <TR> Explanation: Question 4.<\/p>\n (A) When data is arranged in a table, it gives a more flexible and attractive way to represent information. Explanation: Question 5.<\/p>\n (A) Row Explanation: Question 6.<\/p>\n (A) <TR> Explanation: Question 7.<\/p>\n (A) < TABLE > (B) <TABLE> (C) <TABLE> (D) None of these Explanation: I. Inline and Embedded Style Sheet <\/p>\n Question 1.<\/p>\n (A) Inline Explanation: Question 2.<\/p>\n (A) Semi-colon Explanation: Question 3.<\/p>\n (A) Internal Explanation: Question 4.<\/p>\n (A) HEAD Explanation: Question 5.<\/p>\n (A) START Explanation: <\/p>\n Question 6.<\/p>\n (A) Double quotes Explanation: Question 7.<\/p>\n <html> Explanation: II. CSS AND THE STEPS TO WRITE IT 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. Question 1.<\/p>\n (A) Cascading Style Sheet Explanation: <\/p>\n Question 2.<\/p>\n (A) Style Explanation: Question 3.<\/p>\n (A) Attribute Explanation: Question 4.<\/p>\n (A) HTML is the markup language used to develop web pages while CSS adds style to the web page. Explanation: Question 5.<\/p>\n (A) A selector Explanation: Question 6.<\/p>\n (A) This defines the font color of the text as red. Explanation: <\/p>\n Question 7.<\/p>\n (A) This defines the background of the body to be in red. Explanation: 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 …<\/p>\n
\n(A) Both A and R are true and R is the correct explanation of A
\n(B) Both A and R are true but R is Not the correct explanation of A
\n(C) A is true and R is false
\n(D) A is false and R is true<\/p>\nAssertion (A): The SUBMIT or RESET buttons that sends all the collected information to the server orclears the form information respectively.
\nReason (R): The information is then processed and give the output.<\/h2>\n
\n(B) Both A and R are true but R is Not the correct explanation of A<\/p>\n
\nThe 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.<\/p>\nAssertion (A): It is not possible to have a form inside a form.
\nReason (R): A form cannot be nested.<\/h2>\n
\n(A) Both A and R are true and R is the correct explanation of A<\/p>\n
\nIt 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.<\/p>\nAssertion (A): The <FORM NAME=”Form Name”> specifies the name of the Form.
\nReason (R): The form name is always displayed on the Form.<\/h2>\n
\n(C) A is true and R is false<\/p>\n
\nThe 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.<\/p>\nAssertion (A): Data cannot be encrypted in the form.
\nReason (R): The ENCTYPE attribute specifies how the data is sent to the destination.<\/h2>\n
\n(D) A is false and R is true<\/p>\n
\nThe <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.<\/p>\nAssertion (A): The <INPUT> tag is required when the user has to give some input\/data.
\nReason (R): The <INPUT> tag is not a compulsory tag used withinthe FORM tag.<\/h2>\n
\n(C) A is true and R is false<\/p>\n
\nThe < 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:
\n(A) BUTTON
\n(B) CHECKBOX
\n(C) RADIO
\n(D) TEXT
\n(E) SUBMIT and RESET
\n(F) IMAGE
\n(G) FILE
\n< INPUT TYPE=”BUTTON” >: This will place a button on an HTML form.<\/p>\nAssertion (A): External links which link your pages to other web page. i.e. linking between two different documents.
\nReason (R): In order to create an external link to another website, you need to know the other website’s URL with full path.<\/h2>\n
\n(B) Both A and R are true but R is Not the correct explanation of A<\/p>\n
\nExternal 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><\/p>\nAssertion (A): The full form of HREF is Higher Text Reference.
\nReason(R): The value of the HREF attribute is the location (URL) of the external resource.<\/h2>\n
\n(D) A is false and R is true<\/p>\n
\nThe 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><\/p>\nAssertion (A): The mailto link is a type of HTML link that activates the default mail client on the computer for sending an e-mail..
\nReason (R): The web browser requires a default e-mail client software installed on his computer in order to activate the e-mail client.<\/h2>\n
\n(B) Both A and R are true but R is Not the correct explanation of A<\/p>\n
\nThe 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><\/p>\nAssertion (A): The CONTROLS attribute of < VIDEO > tag takes Boolean value(True or False), thus.
\nReason (R): The user had to give the value as True or False to CONTROLS attribute.<\/h2>\n
\n(A) Both A and R are true and R is the correct explanation of A<\/p>\n
\nIf 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.<\/p>\nAssertion (A): Cellspacing in a table is used to put more space around each cell. It defines the space between cells.
\nReason (R): By default, cellspacing width is 2 pixels.<\/h2>\n
\n(B) Both A and R are true but R is Not the correct explanation of A
\nExplanation:
\nAn example of cellspacing is given below:
\n<HTML>
\n<HEAD>
\n< TITLE > TABLE Example <\/TITLE>
\n<\/HEAD>
\n<BODY>
\n< TABLE BORDER=”5″ BORDERCOLOR= “BLUE” CELLSPACING=”8″ >
\n<TR>
\n<TD>Serial Number<\/TD>
\n<TD> Teacher Names <\/\/TD>
\n<TD> Phone Number <\/TD>
\n<TD> Address <\/TD>
\n<\/TR>
\n<\/TABLE>
\n<\/BODY>
\n<\/HTML> ‘<\/p>\nAssertion (A): you can have rows with different columns.
\nReason (R): The COLSPAN attribute of <TABLE> tag is used to merge two or more columns in one.<\/h2>\n
\n(A) Both A and R are true and R is the correct explanation of A<\/p>\n
\nColspan 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.<\/p>\nAssertion (A): When data is arranged in a table, it gives a more flexible and attractive way to represent information.
\nReason (R): A table is used to arrange data in the form of rows and columns.<\/h2>\n
\n(A) Both A and R are true and R is the correct explanation of A<\/p>\n
\nRepresenting the data in tabular manner makes it easier to perform the comparative analysis of data.<\/p>\nAssertion (A): The BORDER attribute in <TABLE>is used to specify the border of the table.
\nReason (R): If the BORDER attribute is not specified then the table will appear without any border.<\/h2>\n
\n(A) Both A and R are true and R is the correct explanation of A<\/p>\n
\nThe 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.<\/p>\nAssertion (A): The valign attribute specifies the alignment of the cell contents vertically.
\nReason (R):The value of the valign attribute can be Top, Middle or Bottom.<\/h2>\n
\n(B) Both A and R are true but R is Not the correct explanation of A<\/p>\n
\nThe syntax to define the valign attribute of <TABLE> tag is:
\n<TABLE>
\n<TR Valign=\u201dTop\/Middle\/Bottom”>
\n<TD Valign=”Top\/Middle\/Bottom” >
\n<\/TABLE><\/p>\nAssertion (A): The width attribute specifies the height of a table.
\nReason (R): The width attribute of < TABLE > is not supported in HTML5.<\/h2>\n
\n(D) A is false and R is true<\/p>\n
\nThe 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:
\n<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.<\/p>\nA table is used to arrange data in the form of<\/h2>\n
\n(B) Columns
\n(C) Both (a) and (b)
\n(D) None of these
\nAnswer:
\n(C) Both (a) and (b)<\/p>\n
\nA 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.<\/p>\nThe tag <TR> me<\/h2>\n
\n<\/span>(B) Table Data
\n<\/span>(C) Table Column
\n<\/span>(D) None of these
\n<\/span>Answer:
\n<\/span>(A) Table Row<\/span><\/p>\n
\nTo define a table row, a user use 1 <TR>tag.<\/p>\nEach table may have a caption relevant to the information which is represented by tag.<\/h2>\n
\n(B) <TH>
\n(C) <TD>
\n(D) <CAPTION>
\nAnswer:
\n(D) <CAPTION><\/p>\n
\nThe <CAPTION > tag defines a suitable caption of a table.<\/p>\nWhich of the following statements is\/are TRUE?<\/h2>\n
\n(B) The contents of a row are divided into data cells.
\n(C) Representing the data in tabular manner makes it easier to perform the comparative analysis of dat(A)
\n(D) All of these
\nAnswer:
\n(D) All of these<\/p>\n
\nA 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.<\/p>\nThe <TABLE> tag is used to create a ……<\/h2>\n
\n(B) Column
\n(C) Table
\n(D) None of these
\nAnswer:
\n(C) Table<\/p>\n
\nThe < TABLE > tag is used to define a table.Tables provide you a way to arrange the data in the form of rows and columns.<\/p>\nThe tag to define the header of the table is…….. tag.<\/h2>\n
\n(B) <TD>
\n(C) <TH>
\n(D) <CAPTION>
\nAnswer:
\n(C) <TH><\/p>\n
\nThe <TH> tag defines the header cell in a table. It is placed inside the <TABLE> and <TR> tags.<\/p>\nWhich of the following defines the correct sequences of steps of the syntax to create a table?<\/h2>\n
\n<CAPTION>
\n<TR>
\n<TH> <\/TH>
\n<\/TR>
\n<TR>
\n<TD> …. <\/TD>
\n<\/TABLE><\/p>\n
\n< CAPTION > <\/ CAPTION >
\n<TH> <\/TH> ”
\n<\/TR>
\n<TR>
\n<TD> …. <\/TD>
\n<\/TR><\/p>\n
\n< CAPTION > <\/ CAPTION >
\n<TR>
\n<TH> <\/TH>
\n<\/TR>
\n<TR>
\n<TD> …. <\/TD>
\n<\/TR> ‘
\n<\/TABLE><\/p>\n
\nAnswer:
\n(C) <TABLE>
\n< CAPTION > <\/ CAPTION >
\n<TR>
\n<TH> <\/TH>
\n<\/TR>
\n<TR>
\n<TD> …. <\/TD>
\n<\/TR> ‘
\n<\/TABLE><\/p>\n
\nIn 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.<\/p>\n
\nInline 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.<\/p>\n…………. style sheets are used to add styles to a particular tag or group of tags.<\/h2>\n
\n(B) Embedded
\n(C) Outline
\n(D) None of these
\nAnswer:
\n(A) Inline<\/p>\n
\nThe inline style is specific to the tag itself. It uses the HTML “style” attribute to style a specific tag.<\/p>\nA………..is used to assign value to individual property.<\/h2>\n
\n(B) Comma
\n(C) Colon
\n(D) Inverted comma
\nAnswer:
\n(C) Colon<\/p>\n
\nCSS 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;
\nText-align: Center } <\/STYLE><\/p>\n…………..style sheets are used to define unique styles for the elements of a single HTML document.<\/h2>\n
\n(B) Embedded
\n(C) Both (A) or (B)
\n(D) None of these
\nAnswer:
\n(C) Both (A) or (B)<\/p>\n
\nIn 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.<\/p>\nThe internal styles are defined in the section of HTML document by using the < STYLE > tag.<\/h2>\n
\n(B) BODY
\n(C) TITLE
\n(D) None of these
\nAnswer:
\n(A) HEAD<\/p>\n
\nThe syntax of using < STYLE > tag is:
\n<head>
\n<style type=”text\/css” media=”…”>
\nStyle Rules <\/style>
\n<\/head><\/p>\nThe ……..attribute of < STYLE > tag specifies the type of style sheet being used.<\/h2>\n
\n(B) CSS
\n(C) TYPE
\n(D) HREF
\nAnswer:
\n(C) TYPE<\/p>\n
\nThe type attribute of the <STYLE> tag gives information about the type of document to the browser.<\/p>\nThe style information is enclosed in and ……..to separate multiple style properties.<\/h2>\n
\n(B) Semi-colon(;)
\n(C) Both (A) and
\n(B) (D) None of these
\nAnswer:
\n(C) Both (A) and<\/p>\n
\nThe use of double-quotes and semi-colon can be easily understandable by going through the following code:
\n<!DOCTYPE html>
\n<html>
\n<head>
\n< title > Learning HTML <\/title>
\n<\/head>
\n<body>
\n<p sty!e=”font-size: xx-large; colonmaroon; text-align:ccn ter; border: groove 5px orange” > Learning HTML <\/p>
\n<p sty!e=”font-size: x-large; colongreen; text-align:right; border:ridge 3 px maroon” >
\nLearning HTML <\/p>
\n<p style=”font-size: medium; colonnavy; text-align:left; bordendashed 4 px green” > Learning HTML <\/p>
\n<\/body> <\/html><\/p>\nWhat is the type of the CSS code in the following code?<\/h2>\n
\n<BODY>
\n< HI style=”Color:Red;Text-align:Center” >
\nWelcome <\/Hl>
\n<P style=”Font-size:18pt”>This is a style.<\/P> <H2 style=”Color: Blue;Font-size:24pt”> Using STYLE attribute <\/H2>
\n<\/body> .
\n<\/html>
\n(A) Inline style sheet
\n(B) Embedded style sheet
\n(C) Both (A) and (B)
\n(D) None of these
\nAnswer:
\n(A) Inline style sheet<\/p>\n
\nAn 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.<\/p>\n
\nA 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:<\/p>\n\n
\nTo write a style sheet,<\/p>\n\n
The full form of CSS is……….<\/h2>\n
\n(B) Concatenate Style Sheet
\n(C) Convey Style Sheet
\n(D) Conclusive Style Sheet
\nAnswer:
\n(A) Cascading Style Sheet<\/p>\n
\nCascading style sheet is a list of statements that can assign various rendering properties to HTMLelements.<\/p>\nThe main aim of CSS is to increase the of the page.<\/h2>\n
\n(B) Length
\n(C) Breadth
\n(D) Size
\nAnswer:
\n(A) Style<\/p>\n
\nCascading Style Sheet (CSS) is a simple mechanism for adding style (e.g., fonts, colors, spacing) to Web documents.<\/p>\nA for an element or a tag is the text that appears within the tag.<\/h2>\n
\n(B) Style
\n(C) Selector
\n(D) Property
\nAnswer:
\n(C) Selector<\/p>\n
\nEmbedding 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.<\/p>\nWhat is the difference between HTML and CSS?<\/h2>\n
\n(B) HTML adds style to the web page while CSS is the markup language to develop web pages.
\n(C) Both are incorrect statements
\n(D) None of these
\nAnswer:
\n(A) HTML is the markup language used to develop web pages while CSS adds style to the web page.<\/p>\n
\nMaintenance 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.<\/p>\nThe parts of style sheet is\/are:<\/h2>\n
\n(B) A set of properties
\n(C) Both (A) and (B)
\n(D) None of these
\nAnswer:
\n(C) Both (A) and (B)<\/p>\n
\nUsing 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.<\/p>\nWhat does the following statement correspond to? BODY background-color: Red ?<\/h2>\n
\n(B) This defines the background of the body to be in red.
\n(C) There is an error in the statement
\n(D) None of these
\nAnswer:
\n(B) This defines the background of the body to be in red.<\/p>\n
\nCSS Background-color property define the background color of an element. Its value is a color name or color code.<\/p>\nWhat does the following statement correspond to? HI {Color: Red}<\/h2>\n
\n(B) This defines the font color of HI as red.
\n(C) This defines the background color of HI as red.
\n(D) None of these
\nAnswer:
\n(B) This defines the font color of HI as red.<\/p>\n
\nThe COLOR property is used to give color to the element present on the web page. Its value is the color name or color code.<\/p>\nMCQ Questions for Class 10 Computer Applications with Answers<\/a><\/h4>\n","protected":false},"excerpt":{"rendered":"