Test Series - html

Test Number 51/72

Q: Which tag is used for List items?
A. 
  • B. 
      C. 
        D. 
        Solution: 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.
      • Q: Which element contains definition?
        A. 
        B. 
        C. 
        D. 
          Solution: 
          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.
            is unordered list. A description list is specified by
            tag.
            tag is a term in description list.
          Q: Which of the following can’t be the value of list-style-type?
          A. square
          B. circle
          C. ellipse
          D. disc
          Solution: 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.
          Q: For displaying a list horizontally, we can use ______________
          A. 
          B. display:inline
          C. 
          D. type
          Solution: 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.
          Q: Which attribute is only used with 
            ?
          A. value
          B. type
          C. compact
          D. start
          Solution: 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.
          Q: Which element is restricted to inline content?
          A. 
          B. 
          C. 
            D. 
            Solution: 
            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.
            Q: Which element was designed for creating multicolumn directory lists?
            A. menu
            B. dir
            C. ul
            D. ol
            Solution: 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.
            Q: The content property does not include __________
            A. Strings
            B. URIs
            C. Normal
            D. Color
            Solution: The content property includes Strings, URIs, Normal, None, Image, Counter and many more. When we are using these characters it is essential to encode them as their escaped HEX equivalents. These characters will work i.e. will only be visible in Mozilla/Netscape or in Opera.
            Q: 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)
            Solution: 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)’.
            Q: 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-image
            Solution: 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.

            You Have Score    /10