What is the primary difference between HTML and XHTML?
HTML is for web pages, while XHTML is for XML documents.
XHTML enforces stricter syntax rules than HTML.
There is no difference; they are the same thing.
XHTML is a newer version of HTML with more features.
Which attribute is used to merge rows vertically in an HTML table?
cellmerge
rowspan
vmerge
colspan
How would you display the copyright symbol (©) in an HTML document?
©
&cpy;
©right;
In HTML, tags are enclosed within which characters?
( )
< >
[ ]
{ }
What is the purpose of using the <div> tag in HTML?
<div>
To create a hyperlink
To display an image
To create a table
To divide the page into sections
Which file format is NOT commonly used for favicons?
.ico
.png
.jpg
.txt
What color does the hexadecimal code "#008000" represent?
Blue
Yellow
Green
Red
What is the correct HTML tag for inserting a line break?
Which of the following is NOT a valid way to specify colors in HTML?
Hexadecimal codes (e.g., "#FF0000")
RGB values (e.g., "rgb(255, 0, 0)")
CMYK values (e.g., "(0, 100, 100, 0")
Color names (e.g., "red")
If you want a table header cell to span two columns, what is the correct HTML code?