1.

The ______________ parameter identifies a character encoding, which is a method of converting a sequence of bytes into a sequence of characters.(a) class(b) element(c) charset(d) attributeI got this question in an interview for job.This key question is from Reading a Document Type Definition topic in portion HTML Fonts, Tags and Elements of HTML

Answer»

The CORRECT choice is (C) charset

To elaborate: Class is an attribute and can be used on any HTML element. Property of an element is defined by attribute. To display an HTML PAGE correctly, a web BROWSER must know the CHARACTER set (character encoding) to use. @charset “UTF-8”; is a string.



Discussion

No Comment Found

Related InterviewSolutions