Difference between revisions of "Quiz - HTML"

From ProgZoo
Jump to navigation Jump to search
Line 56: Line 56:
     <div class='d'>An img may not appear in a div</div>
     <div class='d'>An img may not appear in a div</div>
     <div class='d y'>There is nothing wrong with the fragment</div>
     <div class='d y'>There is nothing wrong with the fragment</div>
  </div>
  <div class=q>Select the true statement about HTTP:
    <div class='d'>The HTTP response must always include HTML</div>
    <div class=d>The HTTP response always comes from the client</div>
    <div class='d y'>The HTTP request always comes from the client</div>
    <div class='d'>nginx is an example of an HTTP client</div>
    <div class='d'>firefox is an example of an HTTP server</div>
   </div>
   </div>


</div>
</div>

Revision as of 22:30, 6 September 2021

Consider the html fragment

<div style='color:red'>This &amp; that</div>
The term style is best described as:
Attribute name
Attribute value
Closing tag
Entity
Tag name
The term &amp; is best described as:
Attribute name
Attribute value
Closing tag
Entity
Tag name
The term </div> is best described as:
Attribute name
Attribute value
Closing tag
Entity
Tag name
The term 'color:red' is best described as:
Attribute name
Attribute value
Closing tag
Entity
Tag name
The term div is best described as:
Attribute name
Attribute value
Closing tag
Entity
Tag name
The html would be rendered as:
This & that
This & that
This
that
color:red' This & that
This &amp; that
In html5 what is wrong with the fragment <div><img src=kitten.png></div>:
The img tag is not closed
The attribute values is not quoted
png is not an image format
An img may not appear in a div
There is nothing wrong with the fragment
Select the true statement about HTTP:
The HTTP response must always include HTML
The HTTP response always comes from the client
The HTTP request always comes from the client
nginx is an example of an HTTP client
firefox is an example of an HTTP server