Group “A”
Brief Answer Questions:
1.) Differentiate between HTML and XHTML documents.
Ans: The differences are:
2.) What is the use of <pre> tag?
Ans: The <pre> tag in HTML is used to define the block of preformatted text which preserves the text spaces, line breaks, tabs, and other formatting characters that are ignored by web browsers.
3.) Differentiate between <div> and <span> elements.
Ans: We can summarize the primary differences between span vs div like this:
- A div tag creates a block-level element while a <span> tag wraps around an inline element.
- Additionally, the <span> tag is used to group smaller pieces of text together, whereas div can be used to group larger ones.
4.) Write a source code to place an image in XHTML document.