1.

What is the correct format of numeric character reference?(a) &nnnn;(b) &#nnnn;(c) #nnnn;(d) $*nnnn;I got this question in unit test.I would like to ask this question from HTML 4.x and XHTML 1.x Character Entities topic in division HTML and XHTML Fundamentals of HTML

Answer»

Right answer is (b) nnnn;

Best explanation: NUMERIC character reference uses the format nnnn, nnnn represents DECIMAL format. We can ALSO use hhhh in PLACE of nnnn for hexadecimal form and its syntax will be like hhhh; In XML documents use nnnn; semicolon is MANDATORY.



Discussion

No Comment Found

Related InterviewSolutions