Html and css multiple choice questions

Html And css multiple choice questions with answers

What is web programming?

Web programming refers to the writing, markup and coding involved in Web development, which includes Web content, Web client and server scripting and network security. The most common languages used for Web programming are XML, HTML, CSS,JavaScript, Perl5 and PHP.


web programming
  • What is HTML?

  • 1.HTML (hyper text markup language) defines what the content to be shown on web page.
    i.e. It it is use to define the structure of a web page.
    2.HTML5 is the latest evolution of the standard HTML that defines HTML.

  • What is CSS?

  • 1.CSS (cascading style sheet) defines how the content to be shown.
    i.e. CSS is used to style the web pages using different styling features.

Types Uses Example
Inline An inline CSS is used to apply a unique style to a single HTML element. An inline CSS uses the style attribute of an HTML element. <h1 style="color:red">
Internal An internal CSS is used to define a style for a single HTML page. An internal CSS is defined in the section of an HTML page, within a <style> element <style>
h1{
color:red;
}
</style>
External An external stylesheet is a standalone . css file that is linked from a web page. The advantage of external stylesheets is that it can be created once and the rules applied to multiple web pages. Filename.css
<style>
h1{
color:red;
}
</style>

Multiple choice questions

HTML and CSS Part-1

1. Which attribute specifies a unique alphanumeric identifier to be associated with an element?
a) class
b) id
c) article
d) html


2. The _____________ attribute specifies an inline style associated with an element, which determines the rendering of the affected element.
a) div
b) style
c) class
d) article


3. Which attribute is used to provide an advisory text about an element or its contents?
a) tooltip
b) dir
c) title
d) head


4. The __________ attribute sets the text direction as related to the lang attribute.
a) lang
b) sub
c) dir
d) ds


5. Which of the following is the attribute that specifies the column name from the data source object that supplies the bound data?
a) dataFormatAs
b) datafld
c) disabled
d) datasrc


6. Which of the following is the attribute that indicates the name of the data source object that supplies the data that is bound to this element?
a) dataFormatAs
b) datafld
c) disabled
d) datasrc


7. Which of the following is the attribute that specifies additional horizontal space, in pixels, to be reserved on either side of an embedded item like an iframe, applet, image, and so on?
a) height
b) hspace
c) hidefocus
d) datasrc


HTML and CSS Part-2

8. The accesskey attribute specifies a keyboard navigation accelerator for the element.
a) True
b) False


9. Which of the following is the attribute that is used to set a global identifier for a microdata item?
a) key
b) id
c) itemclass
d) itemid


10. Which of the following is the attribute that is used to add a name/value pair to a microdata item?
a) itemscope
b) itemref
c) itemprop
d) itemid


11. With which element width attribute is not define?
a) <input>
b) <object>
c) <embed>
d) <textarea>


12. Which of the following defines a default value on page load?
a) <object>
b) <input>
c) <progress>
d) <area>


13. Which attribute is not for overriding the actions?
a) Formaction
b) Style
c) Tabindex
d) Slot


14. srclang attribute is used with the element ____________
a)
b) <input>
c) <iframe>
d) <table>


15. Which parameter is commonly used for size attribute?
a) centimeter
b) pixels
c) inch
d) millimeter


16. Which attribute indicates a descending order of displaying a list?
a) reversed
b) forward
c) straight
d) circular


Post a Comment

0 Comments