Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

For explaining, which new technology is used?(a) (b) (c) (d) I got this question by my school principal while I was bunking the class.This interesting question is from Headings, Paragraphs, Tags & Linking between Pages topic in portion Text, Links & Lists of HTML

Answer»

Correct answer is (a)

For explanation: When for the FIRST time when we EXPLAIN any new terminology like any jargon or any academic concept in the DOCUMENT we use It is defining an instance of it. It is used for defining an instance of a new term. In some browsers, the content of are SHOWN in italics but in Chrome and Safari, nothing will be changed. Title of work is DEFINED by . is for abbreviation. Information about author or owner is provided by

.

2.

Metadata does not define _________(a) character set(b) links(c) scripts(d) colorI got this question in an internship interview.Query is from Headings, Paragraphs, Tags & Linking between Pages topic in chapter Text, Links & Lists of HTML

Answer» CORRECT option is (d) color

To elaborate: Metadata DEFINE character SET, title of the document, links, styles, SCRIPTS and other meta information. E.g. The <a href="https://interviewquestions.tuteehub.com/tag/code-25512" style="font-weight:bold;" target="_blank" title="Click to know more about CODE">CODE</a> .
3.

For displaying a list horizontally, we can use ______________(a) (b) display:inline(c) (d) typeI had been asked this question during an interview.I want to ask this question from Numbered, Bullet and Definition Lists in portion Text, Links & Lists of HTML

Answer»

Correct answer is (b) display:inline

To explain I would say: If we want to display the list horizontally we can use display:inline or float:left. It will CREATE a menu. E.g. ul {list-style-type: none; padding:0; OVERFLOW:hidden; } li {float:left} li g{ display: block; color:red; padding: 20px;}.

ELEMENT is used to CONTAIN DEFINITION.
tag is a term in description list.
4.

Which of the following is not true regarding to counter?(a) counter(name,style)(b) counter(name)(c) counter(string)(d) counter(name,string,style)This question was addressed to me during an interview.The question is from Numbered, Bullet and Definition Lists topic in division Text, Links & Lists of HTML

Answer»

The correct answer is (c) counter(string)

The best explanation: There are TWO functions for SPECIFYING COUNTERS, ‘counter()’ or ‘counter()’. First one has two forms ‘counter(NAME,style)’ and ‘counter(name)’. The SECOND one also has two forms ‘counter(name,string,style)’ and ‘counter(name,string)’.

5.

Which of the following can’t be the value of list-style-type?(a) square(b) circle(c) ellipse(d) discThis question was addressed to me in homework.I need to ask this question from Numbered, Bullet and Definition Lists topic in section Text, Links & Lists of HTML

Answer»

Correct option is (c) ellipse

Easy explanation: list-style-property is USED for defining the style of list item marker. Its value can be SQUARE, CIRCLE, DISC or none. For setting list item marker to be BULLET we use the value disc. It is the default value. For setting list item marker to a circle we used the circle, for setting it to be square we set the value square. If we set the value none, list items will not be marked.

6.

In HTML5 which element defines thematic change in the content?(a) (b) (c) (d) This question was posed to me during an online interview.The doubt is from Headings, Paragraphs, Tags & Linking between Pages topic in portion Text, Links & Lists of HTML

Answer»

Correct ANSWER is (a)




For explanation: For THEMATIC change in the content
tag is used. It is also used to separate content or for defining a change in any HTML page. All the browsers like Internet Explorer, Firefox, OPERA, Chrome, Safari SUPPORTS this element.
7.

Which attribute is only used with ?(a) value(b) type(c) compact(d) startI got this question in my homework.This interesting question is from Numbered, Bullet and Definition Lists topic in chapter Text, Links & Lists of HTML

Answer»

The correct choice is (d) start

To explain I would say: The number ATTRIBUTE is only used with

    . The STARTING number of the first item in an ordered list is specified by this attribute. The DEFAULT number for starting is ‘1’. The corresponding LABELS can be non numeric EVEN its value is set to numeric. The “start” and “type” attribute are removed from HTML4.01 but can be still used in HTML5 where as “compact” attribute is not used in HTML5.
8.

Which one of the following is not the value of the target attribute?(a) _blank(b) _top(c) _self(d) _emptyI have been asked this question during an interview for a job.I would like to ask this question from Headings, Paragraphs, Tags & Linking between Pages in portion Text, Links & Lists of HTML

Answer» RIGHT CHOICE is (d) _empty

Explanation: Where to open linked document is specified by target ATTRIBUTE. It can have the values _blank, _top, _parent, _self, framename. _blank opens linked document is a NEW tab or window. The linked document is opened in the parent frame by _parent. Linked document is opened in a named frame by framename. Linked document is opened in the same window by _self.
9.

Which of the following is not the parameter for email link?(a) body(b) bcc(c) cc(d) #I had been asked this question in an online quiz.I want to ask this question from Linking to Other Sites & Email Links and its Decoration topic in section Text, Links & Lists of HTML

Answer»

Right answer is (d) #

The best I can explain: There are various PARAMETERS used for email LINKS like mailto, bcc, body, CC, subject, ‘&’, ‘?’. mailto: is used for e-mail recipient address, bcc is for BLIND carbon copy mail address, cc is for carbon copy e-mail address, subject is for the subject of the e-mail, ‘?’ is first parameters delimiter.

10.

Which of the following opens linked document in full body?(a) _blank(b) _top(c) _parent(d) framenameI got this question by my college professor while I was bunking the class.I'm obligated to ask this question of Linking to Other Sites & Email Links and its Decoration in section Text, Links & Lists of HTML

Answer»

Correct CHOICE is (b) _top

For explanation: _parent opens linked DOCUMENT in parent frame, _top opens the linked document in FULL body of the WINDOW, framename opens the linked document in a named frame,

11.

What is used for specifying an email to be sent?(a) mailto:(b) target(c) id(d) hrefThe question was posed to me in unit test.I need to ask this question from Linking to Other Sites &amp; Email Links and its Decoration topic in chapter Text, Links &amp; Lists of HTML

Answer»

Right answer is (a) mailto:

Explanation: Target attribute is for specifying where to open linked document i.e. in a new tab, same frame, parent frame, FULL body of the WINDOW ETC. We use mailto: with and href for specifying the email ADDRESS that we want to be sent to. It will open a new email message and address to a person specified in the link. The email link will appear like a normal link. The ID attribute is for defining bookmarks in a page.

12.

Which character is used to differentiating between choices to list items?(a) ‘|’(b) ‘>’(c) ‘#’(d) ‘$’I have been asked this question in my homework.My question is based upon Numbered, Bullet and Definition Lists topic in chapter Text, Links & Lists of HTML

Answer» RIGHT option is (a) ‘|’

The explanation: ‘|’, a pipe character is used to differentiate between choices. It is a separating character. It can be emulated by adding BORDERS to list ITEMS. E.g. #pipe ul li.first {margin-left: 0; list-style: none; margin-left: none; display: inline; }. Here we have added class=”first” so that it does not end up with a BORDER on the left side.
13.

Which one of the following is used for space character?(a) %50(b) %60(c) %20(d) %10The question was posed to me by my school teacher while I was bunking the class.My query is from Linking to Other Sites & Email Links and its Decoration in portion Text, Links & Lists of HTML

Answer»

The CORRECT option is (c) %20

To EXPLAIN: %50 represent a capital letter P. %60 specifies “`” SYMBOL. %20 represents space character.

14.

Which element is used for creating links?(a) (b) (c) (d) I have been asked this question during an internship interview.This interesting question is from Headings, Paragraphs, Tags & Linking between Pages in chapter Text, Links & Lists of HTML

Answer»

Right OPTION is (a)

To elaborate:
ELEMENT is used for creating LINKS. We can CLICK anything written between opening tag and closing tag. E.g. http://www.gmail.com”> GMAIL . The text written between and is called link text.

defines PARAGRAPH.
  • specifies list of item.
      is ordered list which can be either numerically or alphabetically.
  • 15.

    Which of the following sets the color of a link before it has been clicked on?(a) ALINK(b) LINK(c) VLINK(d) ULINKThis question was addressed to me in class test.The origin of the question is Linking to Other Sites & Email Links and its Decoration topic in section Text, Links & Lists of HTML

    Answer»

    Correct option is (b) LINK

    Explanation: LINK set the COLOR of a link before it has been CLICKED on, ALINK set the color of a link when a link is clicked on, VLINK set the color of a link after it has been clicked on, here A and V stands for Active and Visited.

    16.

    Which tag is used for List items?(a) (b) (c) (d) The question was posed to me in a national level competition.Question is taken from Numbered, Bullet and Definition Lists topic in section Text, Links & Lists of HTML

    Answer»

    The CORRECT option is (a)



  • EXPLANATION: li is for the list items. The list is INDENTED by default by the browser.
  • is written inside
      ELEMENT having opening
    1. tag and closing
    2. tag. Sometimes
        can also include TYPE attribute which defines type of numbering.
          represents a ordered list where as
      is unordered list. A description list is specified by
      tag.
  • 17.

    Which element defines preformatted text?(a) (b) (c) (d) I had been asked this question in an international level competition.My question is based upon Headings, Paragraphs, Tags & Linking between Pages topic in division Text, Links & Lists of HTML

    Answer»

    Correct choice is (b)



    The EXPLANATION:

    DEFINES paragraph/text.

     element is used for horizontal/thematic break.Preformatted TEST is defined by

     element. The text written inside this element will be displayed in fixed-width font. It also PRESERVES LINE breaks and spaces. E.g.
    18.

    Which element indicates about something which is no longer accurate?(a) (b) (c) (d) I got this question by my school teacher while I was bunking the class.This key question is from Headings, Paragraphs, Tags & Linking between Pages in portion Text, Links & Lists of HTML

    Answer»

    The correct answer is (a)

    To explain I would say: indicates about something that is no longer RELEVANT or accurate. It should also not to be DELETED. The CONTENT of this element is displayed a line through the center. In older VERSIONS of HTML it had element for the content to be underlined, but now it is no longer in use. Information about author or OWNER is provided by

    . A text which has been inserted into a document is defined by a . describes a text that has been deleted from a document.

    19.

    target attribute cannot have?(a) _blank(b) _self(c) _parent(d) _colorI had been asked this question during an interview for a job.I'd like to ask this question from Linking to Other Sites & Email Links and its Decoration in portion Text, Links & Lists of HTML

    Answer»

    Right option is (d) _color

    To EXPLAIN I would SAY: 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.

    20.

    Which attribute is used to link the bookmark?(a) href(b) id(c) target(d) I have been asked this question during an interview.Query is from Linking to Other Sites &amp; Email Links and its Decoration in chapter Text, Links &amp; Lists of HTML

    Answer»

    Correct option is (a) href

    Best explanation: href attribute is used to link the BOOKMARK. The id attribute is for DEFINING bookmarks in a page, target attribute is for specifying where to OPEN linked DOCUMENT i.e. in new tab, same frame, parent frame, FULL body of the window etc.

    21.

    Which element is restricted to inline content?(a) (b) (c) (d) The question was asked in unit test.The query is from Numbered, Bullet and Definition Lists topic in division Text, Links & Lists of HTML

    Answer»

    Correct option is (a)



    The explanation is:
    ELEMENT is RESTRICTED to inline content. In CREATION of a definition list the term is given by
    element.
    element contains block-level content. The description is given by
    element.
    is also used for MARKING up the dialogues.
    22.

    What is the color of an unvisited link?(a) red(b) blue(c) purple(d) greenI got this question in examination.My enquiry is from Headings, Paragraphs, Tags & Linking between Pages topic in chapter Text, Links & Lists of HTML

    Answer»

    Correct choice is (b) BLUE

    For explanation I would say: In all browsers by default the color of an unvisited link is blue. The color of a VISITED link is PURPLE. The color of the active link is RED. The link is underlined by default. E.g. www.google.comWe can also change these default colors by the USE of style.

    23.

    Relative URLs are used to ____________(a) link other pages within the same site(b) link the same page with other sites(c) link other pages with other sites(d) does not linkThis question was addressed to me in final exam.My question comes from Headings, Paragraphs, Tags & Linking between Pages topic in portion Text, Links & Lists of HTML

    Answer»

    The correct option is (a) link other pages within the same SITE

    To EXPLAIN I would say: Relative URLs are USED for linking other pages within the same site. These are the shorthand version of ABSOLUTE URLs. It does not need a domain name. These URLs are helpful when building a site on a computer because we can CREATE links between pages without having set up for hosting or domain name.

    24.

    Which element was designed for creating multicolumn directory lists?(a) menu(b) dir(c) ul(d) olThis question was posed to me in quiz.Asked question is from Numbered, Bullet and Definition Lists topic in portion Text, Links & Lists of HTML

    Answer»

    Right option is (b) dir

    The best EXPLANATION: For the creation of multicolumn directory LISTS dir element was designed. For designing a single COLUMN menu LIST menu element was designed. They have the same STRUCTURE as ul. It is just a different rendering. In practice, it works exactly as a ul list.

      represents a ordered list where as
      is unordered list. List of commands is defined by
    tag.
    25.

    What will add line break in the body of mail?(a) %20(b) %0D%0A(c) %0h%0A(d) %10This question was posed to me by my school principal while I was bunking the class.Enquiry is from Linking to Other Sites & Email Links and its Decoration topic in section Text, Links & Lists of HTML

    Answer»

    The CORRECT option is (b) %0D%0A

    Explanation: %20 REPRESENTS space character. A data LINK escape is shown by %10. %0D%0A will add a NEWLINE in the text of the body.

    26.

    Which property specifies the distance between nearest border edges of marker box and prinicipal box?(a) marker-offset(b) counter increment(c) list-style(d) list-style-imageThis question was posed to me during a job interview.My question comes from Numbered, Bullet and Definition Lists topic in chapter Text, Links & Lists of HTML

    Answer»

    Right option is (a) MARKER-offset

    To explain I would say: We can create markers by SETTING ‘display’ property. It specifies the distance between NEAREST border edges of marker box and the PRINCIPAL box associated with it. It can be user specified i.e. or can be chosen by ‘auto’. Length can be negative also. Counter increment increments counter by value 1. list- style specifies it’s three types: 1)life-style-image 2)life-style-position 3)life-style-type. The list-style-image defines an image to be used as list item’s marker. It is stated as life-style-type.

    27.

    Which element contains definition?(a) (b) (c) (d) The question was posed to me in quiz.My question is taken from Numbered, Bullet and Definition Lists topic in division Text, Links & Lists of HTML

    Answer»

    The correct choice is (b)



    Explanation:
    element is used to contain definition. The definition LIST is created by using
    element. INSIDE
    element we can have pairs of
    and
    elements.
    CONTAINS the term being defined.