Difference between revisions of "Quiz - HTML"

From ProgZoo
Jump to navigation Jump to search
(Created page with "<div class=quiz> <div class=q>The term <code>style</code> is best described as: <div class='d y'>Tag name </div> <div class=d>Attribute name </div> <div...")
 
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
Consider the html fragment
&lt;div style='color:red'>This &amp;amp; that&lt;/div>
<div class=quiz>
<div class=quiz>
   <div class=q>The term <code>style</code> is best described as:
   <div class=q>The term <code>style</code> is best described as:
     <div class='d y'>Tag name
     <div class='d y'>Attribute name</div>
     </div>
    <div class='d'>Attribute value</div>
     <div class=d>Attribute name
    <div class='d'>Closing tag</div>
     </div>
    <div class='d'>Entity</div>
     <div class=d>Attribute value
    <div class='d'>Tag name</div>
     </div>
  </div>
     <div class=d>Element
 
     </div>
  <div class=q>The term <code>&amp;amp;</code> is best described as:
     <div class=d>Element content
     <div class='d'>Attribute name</div>
     </div>
     <div class='d'>Attribute value</div>
    <div class='d'>Closing tag</div>
    <div class='d y'>Entity</div>
    <div class='d'>Tag name</div>
  </div>
 
  <div class=q>The term <code>&lt;/div></code> is best described as:
     <div class='d'>Attribute name</div>
     <div class='d'>Attribute value</div>
     <div class='d y'>Closing tag</div>
     <div class='d'>Entity</div>
     <div class='d'>Tag name</div>
  </div>
 
  <div class=q>The term <code>'color:red'</code> is best described as:
     <div class='d'>Attribute name</div>
    <div class='d'>Attribute value</div>
    <div class='d y'>Closing tag</div>
    <div class='d'>Entity</div>
    <div class='d'>Tag name</div>
  </div>
 
  <div class=q>The term <code>div</code> is best described as:
    <div class='d y'>Attribute name</div>
     <div class=d>Attribute value</div>
    <div class='d'>Closing tag</div>
    <div class='d'>Entity</div>
    <div class='d'>Tag name</div>
  </div>
 
  <div class=q>The html would be rendered as:
    <div class='d y'><div style='color:red'>This &amp; that</div></div>
    <div class=d><div style='background:red'>This &amp; that</div></div>
    <div class='d'><div style='color:red'>This <br> that</div></div>
    <div class='d'><div>color:red' This &amp; that</div></div>
    <div class='d'><div style='color:red'>This &amp;amp; that</div></div>
  </div>
 
  <div class=q>In html5 what is wrong with the fragment <code>&lt;div>&lt;img src=kitten.png>&lt;/div></code>:
    <div class='d'>The img tag is not closed</div>
    <div class=d>The attribute values is not quoted</div>
    <div class='d'>png is not an image format</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>
 
  <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 class=q>Select the true statement about this HTTP fragment:
HTTP/1.1 404 Not Found
Content-Type: text/html; charset=UTF-8
Referrer-Policy: no-referrer
Content-Length: 1565
Date: Mon, 06 Sep 2021 21:45:18 GMT
<!DOCTYPE html>
<html lang=en>...
    <div class='d'>The status code is HTML</div>
    <div class='d'>There are five headers in this response</div>
    <div class='d'>This indicates the server is not working properly</div>
    <div class='d'>This is part of the HTTP request</div>
    <div class='d y'>This is part of the HTTP response</div>
  </div>
 
 
  <div class=q>One difference between HTTP/1.0 and HTTP/1.1 is that the Host header became mandatory. The Host header allows for:
    <div class='d'>Authentication is possible</div>
    <div class='d y'>One server can deal with many web sites</div>
    <div class='d'>One web site can be accessed by many clients</div>
    <div class='d'>One web site can be delivered from many servers</div>
    <div class='d'>Web pages can have components on different servers</div>
  </div>
 
</div>
</div>

Latest revision as of 09:00, 15 November 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
Select the true statement about this HTTP fragment:
HTTP/1.1 404 Not Found
Content-Type: text/html; charset=UTF-8
Referrer-Policy: no-referrer
Content-Length: 1565
Date: Mon, 06 Sep 2021 21:45:18 GMT

<!DOCTYPE html>
<html lang=en>...
The status code is HTML
There are five headers in this response
This indicates the server is not working properly
This is part of the HTTP request
This is part of the HTTP response


One difference between HTTP/1.0 and HTTP/1.1 is that the Host header became mandatory. The Host header allows for:
Authentication is possible
One server can deal with many web sites
One web site can be accessed by many clients
One web site can be delivered from many servers
Web pages can have components on different servers