+1 vote
764 views
in Information Technology by (70.5k points)

(i) Ms. Sangeeta wants to add few descriptive lines in the HTML code which should not be displayed on the webpage rather should remain inactive during execution. Suggest her the solution along with example.

(ii) How HTML is different from XML? Mention any two point of difference.

LoyBuzz.com

1 Answer

+2 votes
by (75.6k points)
selected by
 
Best answer

(i) She should use comments in HTML.

Any text to make comments in HTML, should be preceded by <! and should end with ->

Example:

<body>

<!-

This is only used for comment

->

Welcome

</body>

(ii)

  • HTML is used to display data and to focus on formatting of data, whereas XML is used to describe data and focus on what data is.
  • HTML tags are not case sensitive whereas XML tags are case sensitive.
  • HTML tags are predefined, whereas XML tags are not predefined.
  • XML is used to store and transfer the data over different platforms while HTML is used to design webpages.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...