Class 10 Exam  >  Class 10 Questions  >  Target attribute cannot have?a)_blankb)_selfc... Start Learning for Free
Target attribute cannot have?
  • a)
    _blank
  • b)
    _self
  • c)
    _parent
  • d)
    _color
Correct answer is option 'D'. Can you explain this answer?
Verified Answer
Target attribute cannot have?a)_blankb)_selfc)_parentd)_colorCorrect a...
Target attribute can have values _blank, _self, _parent, _top and filename. _blank opens the linked document in a new tab window or tab, _self opens linked document in the same window, _parent opens linked document in the parent frame.
View all questions of this test
Most Upvoted Answer
Target attribute cannot have?a)_blankb)_selfc)_parentd)_colorCorrect a...
Target attribute cannot have _color!
Target attribute can have values_blank,_self,_parent,_top and filename.
_blank opens the linked document in a new tab window.
_self opens linked document in the same window
and _parent opens linked document in the parent frame!
Free Test
Community Answer
Target attribute cannot have?a)_blankb)_selfc)_parentd)_colorCorrect a...
Explanation:

In HTML, the target attribute is used in the (anchor) tag to specify where the linked document should be opened when a user clicks on the link. The target attribute can have several values such as "_blank", "_self", "_parent", etc. Each value determines how the linked document should be displayed or loaded.

Target Attribute Values:

1. _blank: When the target attribute is set to "_blank", the linked document will open in a new tab or window, depending on the user's browser settings. This value is commonly used when the linked document is an external website or resource, and you want to keep the current page open.

2. _self: When the target attribute is set to "_self", the linked document will open in the same tab or window where the link was clicked. This is the default behavior if the target attribute is not specified.

3. _parent: When the target attribute is set to "_parent", the linked document will open in the parent frame of the current frame or in the parent window of the current window. This value is used when the current page is displayed within a frame or iframe.

4. _top: When the target attribute is set to "_top", the linked document will open in the full body of the window, breaking out of any frames or iframes that may be present. This value is used when you want to load the linked document in the top-level window.

5. framename: Instead of the predefined values mentioned above, the target attribute can also be set to the name of a specific frame or iframe where the linked document should be opened. This is useful when the current page contains multiple frames or iframes, and you want to specify a particular one for the link.

Why "color" is not a valid value for the target attribute?

The target attribute is used for specifying the browsing context or window/tab where the linked document should be opened. It does not have any relation to the color attribute, which is used for defining the text color or background color of an element. Therefore, "color" is not a valid value for the target attribute. The target attribute only accepts predefined values or the name of a specific frame or iframe.
Attention Class 10 Students!
To make sure you are not studying endlessly, EduRev has designed Class 10 study material, with Structured Courses, Videos, & Test Series. Plus get personalized analysis, doubt solving and improvement plans to achieve a great score in Class 10.
Explore Courses for Class 10 exam

Top Courses for Class 10

Target attribute cannot have?a)_blankb)_selfc)_parentd)_colorCorrect answer is option 'D'. Can you explain this answer?
Question Description
Target attribute cannot have?a)_blankb)_selfc)_parentd)_colorCorrect answer is option 'D'. Can you explain this answer? for Class 10 2024 is part of Class 10 preparation. The Question and answers have been prepared according to the Class 10 exam syllabus. Information about Target attribute cannot have?a)_blankb)_selfc)_parentd)_colorCorrect answer is option 'D'. Can you explain this answer? covers all topics & solutions for Class 10 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Target attribute cannot have?a)_blankb)_selfc)_parentd)_colorCorrect answer is option 'D'. Can you explain this answer?.
Solutions for Target attribute cannot have?a)_blankb)_selfc)_parentd)_colorCorrect answer is option 'D'. Can you explain this answer? in English & in Hindi are available as part of our courses for Class 10. Download more important topics, notes, lectures and mock test series for Class 10 Exam by signing up for free.
Here you can find the meaning of Target attribute cannot have?a)_blankb)_selfc)_parentd)_colorCorrect answer is option 'D'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Target attribute cannot have?a)_blankb)_selfc)_parentd)_colorCorrect answer is option 'D'. Can you explain this answer?, a detailed solution for Target attribute cannot have?a)_blankb)_selfc)_parentd)_colorCorrect answer is option 'D'. Can you explain this answer? has been provided alongside types of Target attribute cannot have?a)_blankb)_selfc)_parentd)_colorCorrect answer is option 'D'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Target attribute cannot have?a)_blankb)_selfc)_parentd)_colorCorrect answer is option 'D'. Can you explain this answer? tests, examples and also practice Class 10 tests.
Explore Courses for Class 10 exam

Top Courses for Class 10

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev