Model Questions and Solutions BIM 3rd Semester

⌘K
  1. Home
  2. Docs
  3. Model Questions and Solut...
  4. Web programming I
  5. Web Programming- I Model Question and Solutions(2018))

Web Programming- I Model Question and Solutions(2018))

1.) Differentiate between HTML and XHTML documents.

Ans: The differences are:

image 13

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:

  1. A div tag creates a block-level element while a <span> tag wraps around an inline element.
  2. 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.

How can we help?

Leave a Reply

Your email address will not be published. Required fields are marked *