Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
+1 vote
9.7k views
in Information Technology by (71.3k 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.

1 Answer

+2 votes
by (76.5k 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

...