Q: Which of the following prints bold letters in traditional HTML? i. Go boldly ii. Go boldly iii. Go boldly iv. Go boldly
Solution: Traditional HTML is case insensitive and thus we can write tag/element name either in lowercase or uppercase or both which will be ignored by browser by default.
Q: XHTML is case insensitive and HTML is case sensitive.
Solution: Traditionally XHTML is case sensitive while HTML is case insensitive. In HTML these are ignored by default by browsers.
Q: What output do you expect if the following markup is rendered? T e s t o f s p a c e s
T e s t o f s p a c e s
Solution: The strong tag is used to highlight the importance of text/paragraph.
tag is used for a line break in HTML. Ant white space between characters displays as a single space.
Q: Which of the following options follows content model in HTML? i.
Option one
Solution: Content model specifies that certain elements are supposed to occur only within other elements. The
tag is used for paragraph in HTML.
Q: Which of the following is not an empty element?
Solution: An element is said to be empty if it doesn’t contain any content in it. The
and
tag which is used for a horizontal line and line break respectively, doen’t contains any content in it and thus are called empty elements in HTML.tag contains text/paragraph in it so it’s not an empty element.
Q: State true or false. produces numerous blank lines.
Solution: As a block tag,induces a return by default, but when used repeatedly, like
, it does not have any effect on document.
Q: Which of the following markup is correct? i. is in error as tags cross ii. is not since tags nest
Solution: In markup, tags can be nested. The first tag who is going to nest other tag must end after that nested tag which means if tag is nested in tag then must be closed after closing of the tag.
Q: Which of the following is not a correct (X)HTML rule?
Solution: Rules of XHTML are as- 1) XHTML elements must be properly nested 2) XHTML elements must always be closed 3) XHTML elements must be in lowercase 4) XHTML documents must have one root element 5) Attribute names must be in lower case 6) Attribute values must be quoted 7) Attribute minimization is forbidden
Q: Choose the incorrect escape character entity.
Solution: Character escapes in markup is to represent any Unicode character in HTML, XHTML or XML using only ASCII characters. There are different types of escape character entity in HTML. Some of them are > which is used for greater than(>) , > is basically a entity number which is used for greater than(>), < stands for less than(<), etc. There doesn’t exist any &st escape character entity in markup.
Q: Identify the count of mistakes in the following markup.
Hello
Solution: We can write tag in
You Have Score    | /10 |