• Home
  • Courses
  • School
  • Programs
  • Problems
  • Contact Us
  • My account
  • Register

Have any question?

(+91) 98222 16647
info@simplycoding.in
RegisterLogin
Simply Coding
  • Home
  • Courses
  • School
  • Programs
  • Problems
  • Contact Us
  • My account
  • Register

Uncategorized

XML Elements, Tags and Attributes

  • Categories Uncategorized

Here we are going to cover XML Elements, Tags and Attributes. You can watch our video to learn XML Elements, Tags and Attributes – click here.

Q . What is element in xml?
Ans. Elements are building blocks of an XML.  Each element has a start tag and an end tag with your content in between 

Q.  What is XML document?
Ans. XML document contains one or more elements. They are the actual containers for your data or content. 

Q . What is tag?
Ans.

  • XML tags begin with less-than character (“<”) and end with greater-than character (“>”).
  • All element have a start tag and a end tag.
  • A start tag has name inside angle brackets.  
  • End tag has the same name but with a preceding slash.

Q . What is difference between html tag and xml tag?
Ans.

html tagxml tag
HTML tags are predefined tags.XML tags are user defined tags.
There are limited number of tags in HTML.XML tags are extensible.
HTML tags are used for displaying the data.XML tags are used for describing the data not for displaying.
In HTML, closing tags are not necessary.In XML, closing tags are necessary.

Q . What are attribute?
Ans. Attribute is the property setting of the element. Attributes are defined through name -value pairs. All attribute values must be enclosed in quotation marks; single or double.

Q . What are the naming rules for tags and attributes in xml?
Ans.

  1. XML is case sensitive
  2. Spaces are not allowed in names.
  3. Names cannot start with string “xml”
  4. Names start with letter or underscore.
  5. Rest can consist of letters, digits, underscore, dot(.)or a hyphen (-)
  6. By convention – HTML element in XML are written in uppercase ,and XML elements are written in lowercase
  • Share:
author avatar
Simply Coding

Previous post

Scratch 3.0 - Writing a Script
July 20, 2021

Next post

XML Prolog
July 20, 2021

You may also like

XML Prolog
XML Prolog
20 July, 2021
Scratch 3.0 – Writing a Script
Scratch 3.0 – Writing a Script
20 July, 2021
Java Data Types
Java Data Types
20 July, 2021

Leave A Reply Cancel reply

You must be logged in to post a comment.

Categories

Recent Posts

  • ISC Class 12 Computer Science previous year paper (2020)
  • ISC Class 12 Computer Science previous year paper (2017)
  • CBSE Class 12 Computer Science Marking Scheme (2020-21)
  • ICSE Class 10 COMPUTER APPLICATIONS previous year paper (2017)
  • ICSE Class 10 COMPUTER APPLICATIONS previous year paper (2016)
Simply Coding Computer Courses for School                Privacy Policy     Terms of Use     Contact Us

© 2021 Simply Coding

Login with your site account

Lost your password?

Not a member yet? Register now

Register a new account

Are you a member? Login now