Multiple choice technology web 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

XML declarations must use the processing instruction syntax with . The version attribute is required, and the declaration must not have a trailing slash like regular tags. Option A shows the correct syntax.