Multiple choice technology web 2.0

What is the correct syntax of the declaration which defines the XML version?

  1. <?xml version="1.0" />

  2. <xml version="1.0" />

  3. <?xml version="1.0"?>

  4. <?xml version="1.0"? />

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The XML declaration is a processing instruction that defines version and encoding, which begins with ``. It must not contain a forward slash before the closing tag, making the selected syntax correct while the other choices are invalid.