Multiple Choice Questions for HTML Attributes

  • 1 Which of the following attribute specifies an inline CSS style for an element.
    1. css
    2. src
    3. style
    4. color

  • 2 Which of the following attribute specifies a unique identification for an HTML element.
    1. name
    2. id
    3. title
    4. href

  • 3 Which of the following attribute specifies that an input element should be disabled.
    1. disabled
    2. read
    3. readonly
    4. Not possible in HTML

  • 4 When the attribute value itself contains double quotes, it is necessary to use _____ quotes.
    1. Double
    2. Single
    3. Both a & b
    4. None

  • 5 The tab " < a href=http://www.w3schools.com>" will be considered valid in
    1. HTML 4.0
    2. HTML 5
    3. Any Version of HTML
    4. None

  • 6 Which of the following attribute specifies an alternative text to be used, when an image cannot be displayed.
    1. alternatetext
    2. alt
    3. alternate
    4. None

  • 7 A title attribute is added to the <_____> element in HTML.
    1. p
    2. div
    3. table
    4. span

  • 8 Which of the following attribute of the html tag declares the language of the document?
    1. language
    2. lang
    3. culture
    4. localization

  • 9 Which of the following provides additional information about HTML elements.
    1. HTML Tag
    2. HTML Attributes
    3. Headers
    4. Paragraphs

Contact Us

support@subexpert.com
Write to Us View Help
Subject Expert Logo

Subject Expert

Learn and Evaluate

Follow Us
© 2020 - Subject Expert