Difference between revisions of "Quiz - HTML"
Jump to navigation
Jump to search
Line 82: | Line 82: | ||
</div> | </div> | ||
<div class=q>One difference between HTTP1/.0 and HTTP/1.1 is that the Host header became mandatory. A consequence of this is: | <div class=q>One difference between HTTP1/.0 and HTTP/1.1 is that the Host header became mandatory. A consequence of this is: |
Revision as of 22:06, 6 September 2021
Consider the html fragment
<div style='color:red'>This & that</div>
The term
style
is best described as:
Attribute name
Attribute value
Closing tag
Entity
Tag name
The term
&
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
that
color:red' This & that
This & 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 HTTP1/.0 and HTTP/1.1 is that the Host header became mandatory. A consequence of this is:
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