Difference between revisions of "Quiz - HTML"
Jump to navigation
Jump to search
Line 48: | Line 48: | ||
<div class='d'><div>color:red' This & that</div></div> | <div class='d'><div>color:red' This & that</div></div> | ||
<div class='d'><div style='color:red'>This &amp; that</div></div> | <div class='d'><div style='color:red'>This &amp; that</div></div> | ||
</div> | |||
<div class=q>In html5 what is wrong with the fragment <code><div><img src=kitten.png></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> | ||
</div> | </div> |
Revision as of 21:21, 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