Quiz - HTML
Jump to navigation
Jump to search
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