Spaces:
Running
Running
import streamlit as st | |
import pandas as pd | |
import numpy as np | |
# Custom CSS for styling | |
custom_css = """ | |
<style> | |
html, body, [data-testid="stAppViewContainer"] { | |
background-image: linear-gradient( | |
rgba(0, 0, 0, 0.6), | |
rgba(0, 0, 0, 0.6) | |
), | |
url("https://www.istockphoto.com/photo/tech-or-space-background-abstract-3d-illustration-gm1367865109-437999705?utm_source=pixabay&utm_medium=affiliate&utm_campaign=SRP_photo_sponsored&utm_content=https%3A%2F%2Fpixabay.com%2Fphotos%2Fsearch%2Fbackground%2520datascience%2F&utm_term=background+datascience.jpg"); | |
background-size: cover; | |
background-position: center; | |
background-repeat: no-repeat; | |
background-attachment: fixed; | |
color: white; /* Ensures all text is readable */ | |
} | |
h2, h3 { | |
color: #FFD700; /* Gold color for headings */ | |
} | |
p { | |
color: #FFFFFF; /* White text for paragraphs */ | |
} | |
</style> | |
""" | |
# Inject the CSS into the app | |
st.markdown(custom_css, unsafe_allow_html=True) | |
st.markdown("<h2 style='text-align: left; color: Black;'>📈What is Extensible Markup Language (XML)</h2>", unsafe_allow_html=True) | |
st.markdown( | |
"<p style='font-size: 16px; color: White; font-style: italic;'>" | |
"XML (Extensible Markup Language) is a versatile markup language used for storing and transferring data. It is designed to be easily understood by both humans and machines, making it a popular choice for data exchange across various systems. XML organizes information in a hierarchical tree structure, where elements are defined using tags that may include attributes and nested sub-elements." | |
"</p>", | |
unsafe_allow_html=True | |
) | |
st.markdown( | |
"<p style='font-size: 16px; color: White; font-style: italic;'>" | |
"Data should be retrieved from databases, and the entire code should be structured using tags, making it a markup-based code. Every tag opened at the beginning must be properly closed with the same tag at the end of the XML file." | |
"</p>", | |
unsafe_allow_html=True | |
) | |
st.markdown("<h2 style='text-align: left; color: Black;'>📈How to Read XML</h2>", unsafe_allow_html=True) | |
st.markdown( | |
"<p style='font-size: 16px; color: White; font-style: italic;'>" | |
"An XML file can be read using pandas by utilizing the function <code>pd.read_xml("file path")</code>." | |
"</p>", | |
unsafe_allow_html=True | |
) | |