Question:

Which is the correct syntax to link XML file with CSS?

Show Hint

When working with XML, you must use the correct processing instruction to link external stylesheets.
Updated On: Jun 16, 2025
  • <?xml type="text/css" href="file.css"?>

  • <?xml type="text/css" src="file.css"?>

  • <?xml-stylesheet type="text/css" href="file.css"?>

  • <?xml-stylesheet type="text/css" src="file.css"?>

Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

The correct syntax for linking a CSS file with an XML document is using the \texttt{} processing instruction. This tells the browser that the XML document should be styled using the specified CSS file.
Was this answer helpful?
0
0