1.

The ___________ keyword begins the declaration of attributes that an element may take. It is followed by the name of the element in question, a list of attribute definitions, and a closing.(a) DOCTYPE(b) ATTLIST(c) DTD(d) SGMLThis question was addressed to me during an interview for a job.Question is taken from Reading a Document Type Definition topic in chapter HTML Fonts, Tags and Elements of HTML

Answer»

Correct option is (a) DOCTYPE

To explain: The ATTLIST declarations IDENTIFY which element types may have attributes, what type of attributes they may be, and what the default value of the attributes are. The DTD defines the syntax of markup constructs. The DTD may include additional definitions such as character entity REFERENCES. SGML (Standard Generalized Markup LANGUAGE) is a standard for how to specify a document markup language or tag set. In HTML 4.01, the !DOCTYPE declaration refers to a DTD, because HTML 4.01 was based on SGML. The DTD specifies the rules for the markup language so that the browsers render the content correctly.



Discussion

No Comment Found

Related InterviewSolutions