VOOZH about

URL: https://www.geeksforgeeks.org/css/how-to-add-css-in-xml-file/

⇱ How to add CSS in XML File ? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to add CSS in XML File ?

Last Updated : 10 Apr, 2023

XML stands for Extensible Markup Language. It is a dynamic markup language. It is used to transform data from one form to another form.

In this article, we will discuss how to add CSS in the XML file. The CSS can be used to display the contents of the XML document in a clear and precise manner. It gives the design and style to a whole XML document.

Syntax

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

Example 1: XML File

Filename: student.css

Output:

👁 Image

Example 2: XML file

Filename: student.css

Output:

👁 Image
Comment