All Exams  >   Class 10  >   Computer Application: Class 10  >   All Questions

All questions of Frames, Forms & CSS for Class 10 Exam

Which of the following is a new input attribute introduce by HTML5?
  • a)
    text
  • b)
    checkbox controls
  • c)
    submit buttons
  • d)
    date
Correct answer is option 'D'. Can you explain this answer?

Meera Rana answered
HTML4 has attributes with <input> elements like radio buttons, Checkbox controls, submit buttons, text input etc.
HTML5 has introduced new attributes like date, color, month, time, week, datetime-local, email, number, range, tel, url, search etc.

The __________ attribute indicates the number of rows in a frameset.
  • a)
    TR
  • b)
    TD
  • c)
    HORIZONTAL 
  • d)
    ROWS
Correct answer is option 'D'. Can you explain this answer?

Kiran Mehta answered
Rows attribute: specifies the number of rows (horizontal frames) and height of each frame. You can specify the height of each frames exactly as explained above for vertical frames. Border attribute: This attribute specifies the width of the border for each frame in pixel.

What is the default type of ‘type’ attribute of <input> element?
  • a)
    Text
  • b)
    Password
  • c)
    Numerals
  • d)
    Special Characters
Correct answer is option 'A'. Can you explain this answer?

Naina Sharma answered
Text input type defines single line text field. Type is the attribute that displays type of <input> elements. Its default type is text. It is supported by most of the browsers like Chrome, Internet Explorer, Firefox, Opera. Syntax is: <form action=”jump.php”> Name:<input type=”text” name=”name”> </form> A password field is defined by password input.

A group of frames is called as ___
  • a)
    Index
  • b)
    Form
  • c)
    List
  • d)
    Frameset
Correct answer is option 'D'. Can you explain this answer?

A collection of frames in the browser window is known as a frameset. The window is divided into frames in a similar way the tables are organized: into rows and columns.

The CSS property used to make the text bold is -
  • a)
    font-weight : bold
  • b)
    weight: bold
  • c)
    font: bold
  • d)
    style: bold
Correct answer is option 'A'. Can you explain this answer?

Amit Kumar answered
The font-weight property is used for setting the thickness and boldness of the font. It is used to define the weight of the text. The available weight depends on the font-family, which is used by the browser.

The property in CSS used to change the background color of an element is -
  • a)
    bgcolor
  • b)
    color
  • c)
    background-color
  • d)
    All of the above
Correct answer is option 'C'. Can you explain this answer?

Kiran Mehta answered
The background-color property is used to specify the background color of an element. The background of an element covers the total size, including the padding and border and excluding margin.

Which element specifies a list of pre-defined options for an input element?
  • a)
    <datalist>
  • b)
    <keygen>
  • c)
    <output>
  • d)
    <password>
Correct answer is option 'A'. Can you explain this answer?

Anita Menon answered
The datalist tag is used to provide an “autocomplete” feature on input elements. Users will see a drop-down list of pre-defined options as they input data. Password defines password field in HTML. It is attribute for input-type. The <keygen> element references from data after form has submitted. Result of calculation (script) is represented by output tag.

Which of the following property is used as the shorthand property of margin properties?
  • a)
    margin-left
  • b)
    margin-right
  • c)
    margin
  • d)
    None of the above
Correct answer is option 'C'. Can you explain this answer?

Vivek Rana answered
CSS Margin property is used to define the space around elements. The Top, bottom, left and right margin can be changed independently using separate properties. By using the shorthand margin property we can change all margin properties at once.

Which of the following property is used as the shorthand property for the padding properties?
  • a)
    padding-left
  • b)
    padding-right
  • c)
    padding
  • d)
    All of the above
Correct answer is option 'C'. Can you explain this answer?

Naina Sharma answered
CSS padding property is used to define the space between the element content and the element border. Top, bottom, left and right padding can be changed independently using separate properties. By using the shorthand padding property we can also change all padding properties at once.

Which of the following is the correct syntax to display the hyperlinks without any underline?
  • a)
    a {text-decoration : underline;}
  • b)
    a {decoration : no-underline;}
  • c)
    a {text-decoration : none;}
  • d)
    None of the above
Correct answer is option 'C'. Can you explain this answer?

Raghav Bansal answered
The text-decoration property in CSS is used to decorate the content of the text. It adds lines under, above, and through the text. It sets the appearance of decorative lines on text. The correct syntax to display the hyperlinks without any underline is: a {text-decoration : none;}.

week attribute defines ____________
  • a)
    week
  • b)
    year
  • c)
    week and year
  • d)
    week, month and year
Correct answer is option 'C'. Can you explain this answer?

Raghav Bansal answered
week input type defines a week and year. It does not define the time zone. Syntax is <form action=”ghu.php”> week: <input type=”week” name=”week and year”> <input type=”submit”> </form>, this gives a selection box and display a calendar like chart from where we can select a week and the year as well.

he new __________ element is supposed to represent some form of extra details, such as a tooltip or revealed region that may be shown to a user.
  • a)
    progress
  • b)
    meter
  • c)
    details
  • d)
    menu
Correct answer is option 'C'. Can you explain this answer?

Krishna Iyer answered
A scalar measurement within a range or fractional value is defined by meter tag. A list/menu of coommands is displayed by menu tag in html. The details tag specifies additional details that the user can view or hide on demand. The details tag can be used to create an interactive widget that the user can open and close. Any sort of content can be put inside the <details> tag. Progress of a task is done by progress element.

The __________ attribute lets you turn off scrolling in a frame.
  • a)
    offscroll
  • b)
    scrollbar
  • c)
    scrolling
  • d)
    none of the above
Correct answer is option 'C'. Can you explain this answer?

Radha Iyer answered
The HTML <framescrolling attribute is used to specify that whether the scrollbar will be displayed or not in the <frame> element.

Which of the following defines a group of related options in a drop-down list?
  • a)
    <form>
  • b)
    <optgroup>
  • c)
    <output>
  • d)
    <option>
Correct answer is option 'B'. Can you explain this answer?

Naina Sharma answered
HTML form element is used in its <form> tag having its own structure which is used by users for various tasks. If you have a long list of options, groups of related options are easier to handle for a user. Result of calculation (script) is represented by output tag. A drop down list of items is defined by <option> tag in HTML.

The property in CSS used to change the text color of an element is -
  • a)
    bgcolor
  • b)
    color
  • c)
    background-color
  • d)
    All of the above
Correct answer is option 'B'. Can you explain this answer?

Radha Iyer answered
The color property in CSS is used to set the color of HTML elements. Typically, this property is used to set the font color of an element. In CSS, we use color values for specifying the color. We can also use this property for the border-color and other decorative effects.

__________ allows the iframe to pull in content from elsewhere in the same domain.
  • a)
    allow-same-origin
  • b)
    allow-forms
  • c)
    allow-scripts
  • d)
    allow-pointer-lock
Correct answer is option 'A'. Can you explain this answer?

Krishna Iyer answered
Scripts are re-enabled by allow-scripts. Allow-forms re-enables from submission. Allow-same-origin allows iframe content to be treated as being from the same origin. API’s are re-enable by allow-pointer-lock.

Which attribute of the frameset tag creates two horizontal frames?
  • a)
    Rows
  • b)
    None
  • c)
    Both
  • d)
    Cols
Correct answer is option 'A'. Can you explain this answer?

Raghav Bansal answered
To create two horizontal frames, use rows = "10%, 90%". You can specify the height of each row in the same way as explained above for columns. This attribute specifies the width of the border of each frame in pixels.

CSS stands for -
  • a)
    Cascade style sheets
  • b)
    Color and style sheets
  • c)
    Cascading style sheets
  • d)
    None of the above
Correct answer is option 'C'. Can you explain this answer?

Naina Sharma answered
CSS stands for Cascading Style Sheet. CSS is used to design HTML tags. CSS is a widely used language on the web. HTML, CSS and JavaScript are used for web designing. It helps the web designers to apply style on HTML tags.

The __________ attribute indicates the number of columns in a frameset.
  • a)
    TABLE 
  • b)
    VERT
  • c)
    COLUMNS
  • d)
    COLS
Correct answer is option 'D'. Can you explain this answer?

Radha Iyer answered
The number of attribute values determines how many rows or columns of frames Netscape will display in the document window. You express each value in the rows or cols attribute in one of three ways: as an absolute number of pixels, a percentage of the total width or height of the frameset, or.

The HTML attribute used to define the internal stylesheet is -
  • a)
    <style>
  • b)
    style
  • c)
    <link>
  • d)
    <script>
Correct answer is option 'A'. Can you explain this answer?

Meera Rana answered
The internal style sheet is used to add a unique style for a single document. It is defined in <head> section of the HTML page inside the <style> tag.

Which of the following is the correct syntax for referring the external style sheet?
  • a)
    <style src = example.css>
  • b)
    <style src = "example.css" >
  • c)
    <stylesheet> example.css </stylesheet>
  • d)
    <link rel="stylesheet" type="text/css" href="example.css">
Correct answer is option 'D'. Can you explain this answer?

Naina Sharma answered
The external style sheet is generally used when you want to make changes on multiple pages. It uses the <link> tag on every pages and the <link> tag should be put inside the head section.

Hence option (D) is correct

For detailed chapter notes on Frames and Forms click on the link mentioned below

The HTML attribute used to define the inline styles is -
  • a)
    style
  • b)
    styles
  • c)
    class
  • d)
    None of the above
Correct answer is option 'A'. Can you explain this answer?

Kiran Mehta answered
If you want to use inline CSS, you should use the style attribute to the relevant tag. The inline CSS is also a method to insert style sheets in HTML document. This method mitigates some advantages of style sheets so it is advised to use this method sparingly.

How does the color attribute work?
  • a)
    Changes color of the text
  • b)
    Changes background color
  • c)
    The color picker is defined by it
  • d)
    Changes color of the text as well as background
Correct answer is option 'C'. Can you explain this answer?

Anita Menon answered
color is the attribute of <input> element introduce by HTML5. It defines the color picker i.e we can select a color of our choice from the color picker. Syntax is Select the color that you want: <input type=”color” name=”favorite color”>

The CSS property used to control the element's font-size is -
  • a)
    text-style
  • b)
    text-size
  • c)
    font-size
  • d)
    None of the above
Correct answer is option 'C'. Can you explain this answer?

Naina Sharma answered
The font-size property in CSS is used to specify the height and size of the font. It affects the size of the text of an element. Its default value is medium and can be applied to every element.

Which of the following is not a type of attribute for input tag?
  • a)
    day
  • b)
    week
  • c)
    month
  • d)
    time
Correct answer is option 'A'. Can you explain this answer?

Naina Sharma answered
Day is not defined in the pre-defined attribute list of input tag. Week attribute defines week and year when used as attribute in input tag. Month specifies month and year when it is accessed in input tag. The time attribute displays current time in html.

The __________ attribute effectively renders the iframe as an inline include, which allows the parent document’s CSS to affect the contents of the iframe.
  • a)
    allow-forms
  • b)
    seamless
  • c)
    embed
  • d)
    allow-scripts
Correct answer is option 'B'. Can you explain this answer?

Kiran Mehta answered
Embed attribute attach external content at a specified point in document. The seamless attribute is a boolean attribute. When present, it specifies that the iframe should look like it is a part of the containing document (no borders or scrollbars). Allow-forms re-enables from submission. Scripts are re-enabled by allow-scripts.

Which attribute is used for activation of JavaScript?
  • a)
    button
  • b)
    checkbox
  • c)
    url
  • d)
    submit
Correct answer is option 'A'. Can you explain this answer?

Radha Iyer answered
Input type button is used for the activation of JavaScript on the clicking of the button. Its syntax is <input type=”button” value=”click” onclick=”source()”>. This will display a button named click and when we click that button JavaScript function source() will be invoked.

The __________ element may contain not just links but also other interactive items, including the newly introduced command element.
  • a)
    progress
  • b)
    meter
  • c)
    details
  • d)
    menu
Correct answer is option 'D'. Can you explain this answer?

Vivek Rana answered
A scalar measurement within a range or fractional value is defined by meter tag. The menu tag defines a list/menu of commands. The menu tag is used for context menus, toolbars and for listing form controls and commands. The details tag specifies additional details that the user can view or hide on demand. The details tag can be used to create an interactive widget that the user can open and close. Any sort of content can be put inside the <details> tag. Progress of a task is done by progress element.

Which of the following allows the sandboxed iframe to run scripts from the same domain?
  • a)
    allow-same-origin
  • b)
    allow-forms
  • c)
    allow-scripts
  • d)
    allow-pointer-lock
Correct answer is option 'C'. Can you explain this answer?

Rohit Sharma answered
Scripts are re-enabled by allow-scripts. The sandbox attribute enables an extra set of restrictions for the content in the iframe. Allow-forms re-enables from submission. Allow-same-origin allows iframe content to be treated as being from the same origin. API’s are re-enable by allow-pointer-lock.

Chapter doubts & questions for Frames, Forms & CSS - Computer Application: Class 10 2025 is part of Class 10 exam preparation. The chapters have been prepared according to the Class 10 exam syllabus. The Chapter doubts & questions, notes, tests & MCQs are made for Class 10 2025 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests here.

Chapter doubts & questions of Frames, Forms & CSS - Computer Application: Class 10 in English & Hindi are available as part of Class 10 exam. Download more important topics, notes, lectures and mock test series for Class 10 Exam by signing up for free.

Top Courses Class 10

Related Class 10 Content