Tags And Elements(Html > Html Fonts ) Questions and Answers

Question 1. All attribute declarations begin with the keyword ____________ followed by the element name, attribute name, attribute type, and default data information.
  1.    XML
  2.    SGML
  3.    ATTLIST
  4.    None of the mentioned
Explanation:-
Answer: Option C. -> ATTLIST
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.

Question 2. A/An _________ is essentially a macro that allows a short name to be associated with replacement text.
  1.    Entity
  2.    Attribute
  3.    Comment
  4.    None of the mentioned
Explanation:-
Answer: Option A. -> Entity
Reserved characters in HTML must be replaced with character entities. Characters, not present on your keyboard, can also be replaced by entities.

Question 3. The __________ defines the syntax of markup constructs and include additional definitions such as character entity references.
  1.    Attributes
  2.    SGML
  3.    Elements
  4.    DTD
Explanation:-
Answer: Option D. -> DTD
The DTD defines the syntax of markup constructs. The DTD may include additional definitions such as character entity references.

Question 4. The ________ declaration specifies which characters and delimiters may appear in the application.
  1.    DTD
  2.    SGML
  3.    XML
  4.    None of the mentioned
Explanation:-
Answer: Option B. -> SGML
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).

Question 5. 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.
  1.    DOCTYPE
  2.    ATTLIST
  3.    DTD
  4.    None of the mentioned
Explanation:-
Answer: Option A. -> DOCTYPE
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.

Question 6. The tag for title text for rows and columns is
1.
2.
3.
  1.    Option 1
  2.    Option 2
  3.    Option 3
  4.    None of the above
Explanation:-
Answer: Option C. -> Option 3

Question 7. Which attribute you’ll use with TD tag to merge two cells horizontally?
  1.    merge=colspan2
  2.    rowspan=2
  3.    colspan=2
  4.    merge=row2
Explanation:-
Answer: Option C. -> colspan=2

Question 8. Which of the following is not a valid alignment attribute?
  1.    Left
  2.    Right
  3.    Top
  4.    All of above
Explanation:-
Answer: Option C. -> Top

Question 9. Which HTML Tag will use to scroll a text in web page?
  1.    marquee
  2.    scroll
  3.    round
  4.    go
Explanation:-
Answer: Option A. -> marquee

Question 10. The _________ event is fired on the element where the drop occurred at the end of the drag operation.
  1.    drag
  2.    drop
  3.    dragstart
  4.    dragenter
Explanation:-
Answer: Option B. -> drop
The drop event is fired on the element where the drop occurred at the end of the drag operation. A listener would be responsible for retrieving the data being dragged and inserting it at the drop location.