Test Series - html

Test Number 34/72

Q: All attribute declarations begin with the keyword ____________ followed by the element name, attribute name, attribute type, and default data information.
A. XML
B. SGML
C. ATTLIST
D. HTML
Solution: 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. Syntax is . XML and HTML are web markup language used to design and create web pages. SGML stands for Standard Generalized Markup Language.
Q: The ________ declaration specifies which characters and delimiters may appear in the application.
A. DTD
B. SGML
C. XML
D. HTML
Solution: XML(Extensible Markup Language) and HTML(Hypertext Markup Language) are web markup language used to design and create web pages. The DTD defines the syntax of markup constructs. SGML (Standard Generalized Markup Language) is a standard for how to specify a document markup language or tag set. Such a specification is itself a document type definition (DTD). SGML is metadata.
Q: The __________ defines the syntax of markup constructs and include additional definitions such as character entity references.
A. Attributes
B. SGML
C. Elements
D. DTD
Solution: SGML (Standard Generalized Markup Language) is a standard for how to specify a document markup language or tag set. Property of an element is defined by the attribute. The DTD defines the syntax of markup constructs. The DTD may include additional definitions such as character entity references.
Q: A/An _________ is essentially a macro that allows a short name to be associated with the replacement text.
A. Entity
B. Attribute
C. Comment
D. Element
Solution: Comments are used to provide idea about coding syntax which is ignored by the browser. Reserved characters in HTML must be replaced with character entities. Characters, not present on your keyboard, can also be replaced by entities. Property of an element is defined by the attribute.
Q: 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. SGML
Solution: 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.
Q: The __________ begins with a series of parameter entity definitions.
A. DTD
B. SGML
C. XML
D. HTML
Solution: SGML (Standard Generalized Markup Language) is a standard for how to specify a document markup language or tag set. XML and HTML are web markup language used to design and create web pages. The HTML DTD begins with a series of parameter entity definitions. A parameter entity definition defines a kind of macro that may be referenced and expanded elsewhere in the DTD. These macros may not appear in HTML documents, only in the DTD. Other types of macros, called character references, may be used in the text of an HTML document or within attribute values.
Q: 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. attribute
Solution: 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.
Q: A model group contains the names of the elements that a tag may enclose.
A. True
B. False
C. .
D. 0
Solution: Most HTML and XHTML elements enclose content. If a content model is declared, it is enclosed within parentheses and known as a model group.
Q: Which of the following defines a part of text that might be formatted in a different direction from other text?
A. 
B. 
C. 
D. 
Solution: The additional details the user wants to know as per the demand is fulfilled by 
tag. Content related to surroundings is given by
Q: Which of the following defines a caption for a figure element?
A. 
B. 
C. 
D. 
Solution: The figcaption element can be placed as the first or last child of the figure element. It defines a caption for a figure element. Caption in a table immediately after  tag can be given by 
tag. The
tag provides section for illustration, diagrams, photos etc. A box else window is defined by tag in HTML.

You Have Score    /10