Which property is used to detect the browser’s user agent and code based on the pertinent cases?
Answer: Option A
Solution(By Examveda Team)An old strategy was to look at the property navigator.userAgent to detect the browser’s user agent and code based on the pertinent cases.
A. In traditional XHTML close tag for some elements is optional but not encouraged
B. In traditional HTML close tag for some elements is optional but not encouraged
C. None of the mentioned
D. In both traditional XHTML and HTML close tag for some elements is optional
A. Charset in html is “text/html” where as in xhtml it is “application/xml+xhtml”
B. None of the mentioned
C. Tags and attributes are case-insensitive in HTML but not in XHTML
D. Special characters must be escaped using character entities in XHTML unlike HTML
A. The extension of the file “.html”
B. The “content-type” header
C. Both “.html” extension and “content-type” header
D. None of the mentioned