Multiple choice technology

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
A Correct answer
Explanation

The XML declaration must start with . Option A is correct. Option B uses the wrong tag name without the question mark. Option C uses /> instead of ?> which is incorrect. Option D is missing quotes around the version value.