Question 3 (30 marks)
This question is based on your work for Part 4.
Stella Blanc offer cruises on their fleet of luxury liners. Each cruise starts on the first Saturday of the month and lasts for two weeks.
The company is planning to upgrade their computer systems and to modernise their database, as it was first designed as a flat database.
Table 1 is a section of the current database, which shows some of the customers and the cruises they booked last year. Note that some ships sail several times each year.
Forename - MargarentKofi
Barrington
Ebony
Leonard
Guy
Armet
Assistant
Thanks for sharing the details about the question! It looks like you’re working on a database-related question for Stella Blanc Cruises, involving customer bookings and cruise schedules.
Could you please provide the full question or the specific part you’re unsure about? For example:
Do you need help designing a relational database based on the flat database described?
Are you asked to normalise the database?
Or perhaps you need assistance with queries or understanding the data structure?
If you can share the complete details or what the question specifically asks for, I’ll be happy to guide you through it step by step!
User
Sorry, I need to retype the question
Assistant
No worries! Take your time to retype the question, and when you're ready, just send it over. I'll be here to help!
User
Question 3 (30 marks)
This question is based on your work for Part 4.
Stella Blanc offer cruises on their fleet of luxury liners. Each cruise starts on the first Saturday of the month and lasts for two weeks.
The company is planning to upgrade their computer systems and to modernise their database, as it was first designed as a flat database.
Table 1 is a section of the current database, which shows some of the customers and the cruises they booked last year. Note that some ships sail several times each year.
Forename Surname Ship Month Ship Month Ship Month
Margarent Chen Laurentic Jan Delphic Feb Oceanic Oct
Kofi Kayiga Britannic Jan Britannic March
Barrington Watson Oceanic March
Ebony Patterson Albertic May
Leonard Chen Laurentic Jan Delphic Feb Britannic March
Guy Harvey Homeric Sept
Armet Francis Delphic June Britannic Dec
a. Identify two entities in Table 1 for which information can be stored. Briefly explain why these two items make suitable entities.
The word limit for Question 3(a) is 60 words.
I'm not sure what is meant by 'entities'
Assistant
Great question! In database terminology, entities are objects or things about which data is stored. Each entity represents a real-world object or concept that has attributes (details).
Looking at Table 1, two suitable entities are:
Customer – because you have information about individuals booking cruises, such as their forename and surname.
Cruise/Ship – because the cruises occur on ships that sail during specific months, and you want to store details like ship name and sailing month.
These entities are suitable because they represent distinct real-world things, and data about them can be organized into tables with attributes (e.g., customer name, ship name, cruise month). Also, they can relate to each other (a customer books a cruise on a ship).
If you'd like, I can help draft a 60-word answer for you! Would you like me to do that?
User
Could you help me draft my answer please
Assistant
Certainly! Here’s a concise 60-word draft for your answer to Question 3(a):
Two suitable entities are Customer and Ship. A Customer represents individuals who book cruises and contains attributes like forename and surname. A Ship represents the luxury liners used for cruises, identified by name and sailing month. Both are distinct real-world objects with related data, making them appropriate for organizing information in a modern database.
Would you like me to help with the next parts too?
User
Yes please
Assistant
Great! Please share the next parts of the question, and I’ll help you draft answers for those as well.
User
b. Create an entity table for each of the entities you identified in part (a), including relevant data taken from Table 1 for each entity. Ensure that you name each entity table and name every column in each table.
You will need to add a key column to each entity table. Explain the purpose of this key and why the data currently available is not appropriate to use as keys.
The word limit for Question 3(b) is 120 words.
(10 marks)
c. Create a joining table that lists each relationship between the two entities that you have identified.
(4 marks)
d. Flat databases such as that shown in Table 1 have their limitations. Explain two reasons why a flat database is less effective than a relational database. Use two examples from Table 1 to illustrate your explanation.
The word limit for Question 3(d) is 150 words.
(10 marks)
Assistant
Thanks for sharing the rest of the question! Let’s tackle these one by one.
Question 3(b)
Draft answer:
Customer Table:
CustomerID (Key)
Forename
Surname
1
Margarent
Chen
2
Kofi
Kayiga
3
Barrington
Watson
...
...
...
Ship Table:
ShipID (Key)
ShipName
Month
1
Laurentic
Jan
2
Delphic
Feb
3
Oceanic
Oct
...
...
...
Purpose of keys:
A key uniquely identifies each record in a table, ensuring data integrity. The current data (Forename/Surname or Ship/Month) are not suitable keys because names can be duplicated (e.g., multiple customers named Leonard Chen or ships sailing multiple times a year). Using unique IDs avoids confusion and simplifies database management.
(Approx. 110–120 words.)
If you'd like, I can format it more formally or write it directly as you'd put it in your answer sheet!
Question 3(c)
Create a joining table that links Customers to Ships (i.e., bookings):
BookingID (Key)
CustomerID
ShipID
1
1
1
2
1
2
3
1
3
4
2
4
...
...
...
This table records each booking made by customers for cruises on specific ships.
Question 3(d)
Draft answer:
A flat database like the one in Table 1 is less effective than a relational database for several reasons:
Data Redundancy: Customer and ship information is repeated multiple times. For example, Leonard Chen appears more than once with the same details, leading to data duplication. This wastes storage and increases the risk of inconsistencies.
User
what should I do in the ship table if the ship sails on multiple months?
Assistant
Great question!
If a ship sails in multiple months, you should not repeat the same ship in the Ship table multiple times with different months. Instead, the Ship table should only contain information about the ship itself (e.g., ShipID and ShipName), without the Month.
The Month (i.e., sailing times) is actually an attribute of the cruise or voyage, not the ship itself. Therefore, you would manage the months and sailing schedules in a separate joining table (often called a Booking or Schedule table) that links the ship and the month of sailing.
Revised example:
Ship table:
ShipID (PK)
ShipName
1
Laurentic
2
Delphic
3
Oceanic
4
Britannic
...
...
Cruise schedule or joining table:
ScheduleID (PK)
ShipID (FK)
Month
1
1
Jan
2
2
Feb
3
3
Oct
4
4
Jan
5
4
March
...
...
...
This design avoids duplication of ship data and properly models that each ship can sail multiple times.
Would you like me to help you update the tables and answers based on this?
User
Can you rewrite - An entity is any item about
which we want to store information and is the fundamental building block for
relational databases. Entities can be described as tangible, such as
Assistant
Sure! Here’s a rewritten version of that sentence:
An entity is any object or concept about which data is stored and serves as a fundamental component of relational databases. Entities can be tangible, like physical objects, or intangible, representing ideas or events.
User
Question 4 (20 marks)
In Part 5, you developed web pages using Open Sites. For this question, you will create a web page which provides an explanation of XML and an example of its use.
The audience for this web page is prospective TM111 students (so imagine yourself as you were before the module started).
Your completed web page should include the following elements:
a. Your written description of what XML is and how it is used, as discussed in Block 1 Section 5.6. You might do this by mentioning the structure and purpose of the format and discussing example usages.
The word limit for Question 4(a) is 150 words.
Assistant
Sure! Here’s a draft for your answer to Question 4(a), aimed at prospective TM111 students explaining XML clearly and simply:
What is XML and How is it Used?
XML stands for eXtensible Markup Language. It is a format designed to store and transport data in a structured and readable way for both humans and computers. XML uses tags to organize information into a hierarchical structure, similar to HTML, but unlike HTML, XML defines custom tags to describe data rather than display it. This flexibility allows XML to be used for many purposes, including data sharing between different systems, configuration files, and web services. For example, businesses use XML to exchange information like orders or invoices between separate software applications. Since XML is platform-independent, it helps different systems understand each other’s data, making it a key tool in modern data management and communication.
Would you like me to help with coding this explanation into a simple web page?
User
Yes please
Assistant
Certainly! Here’s a simple HTML web page with your XML explanation included, suitable for prospective TM111 students:
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Introduction to XML</title>
<style>
body {
font-family: Arial, sans-serif;
max-width: 700px;
margin: 40px auto;
padding: 20px;
background-color: #f9f9f9;
color: #333;
line-height: 1.6;
}
h1 {
color: #2a7ae2;
}
section {
background: #fff;
border-radius: 8px;
padding: 20px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
pre {
background-color: #272822;
color: #f8f8f2;
padding: 15px;
border-radius: 5px;
overflow-x: auto;
}
</style>
</head>
<body>
<section>
<h1>What is XML?</h1>
<p>
XML stands for <strong>eXtensible Markup Language</strong>. It is a format designed to store and transport data in a structured and readable way for both humans and computers. XML uses tags to organize information into a hierarchical structure, similar to HTML, but unlike HTML, XML defines custom tags to describe data rather than display it. This flexibility allows XML to be used for many purposes, including data sharing between different systems, configuration files, and web services.
</p>
<p>
For example, businesses use XML to exchange information like orders or invoices between separate software applications. Since XML is platform-independent, it helps different systems understand each other’s data, making it a key tool in modern data management and communication.
</p>
<h2>Example of XML</h2>
<pre>
<order>
<customer>John Smith</customer>
<item>Laptop</item>
<quantity>1</quantity>
<price>1200</price>
</order>
</pre>
<p>This example shows a simple XML structure representing a customer order.</p>
</section>
</body>
</html>
User
b. One still image, which supports your explanation. You may use an image from either the TM111 Media Database or take one from the Britannica ImageQuest database. Alternatively, you may use an image of your own or one from the web that is copyright-free.
Do not use an image from the module materials.
(5 marks)
A variety of HTML styles to make an attractive web page.
(4 marks)
Three further marks are for:
. including a heading for the page (placed at the top of the page) and your name (placed under the heading)
. an acknowledgement or reference for the image you have used (this should be placed at the bottom of the page below the written explanation)
. including a link to your Open Sites web page, and a screenshot of it, in your TMA document.
Assistant
Got it! I’ll help you enhance the HTML web page from part (a) to meet these requirements:
Add a heading at the top and your name below it.
Add a relevant copyright-free image with a suitable acknowledgement below the explanation.
Use a variety of HTML styles for a visually appealing page.
Include a placeholder for the Open Sites webpage link (you can edit the link once your page is live).
To use that image as a background for your web page (or for a specific section), you need to add CSS to set the image as a background. Here’s how you can do it for the entire page (body):
background-image: url('...'): Specifies the image URL as the background.
background-repeat: no-repeat: Stops the image from repeating multiple times.
background-size: cover: Scales the image to cover the entire container (in this case, the body), cropping if needed.
background-position: center center: Centers the image in the viewport.
Important note:
Since the image has many colors and might make text hard to read, you usually want to add a background color overlay or tweak text color and opacity for readability.
Here’s an example adding a slightly transparent white overlay by wrapping your content in a <div>:
html
<body>
<div class="content">
<!-- all your page content here -->
</div>
</body>
This ensures your text is readable while having your image as a full-page background.
If you want, I can update the full page code with this background implementation! Would you like me to do that?
User
How will this code fit in to this code:
code
<section>
<p>
XML stands for <strong>eXtensible Markup Language</strong>. It is a format designed to store and transport data in a structured and readable way for both humans and computers. XML uses tags to organize information into a hierarchical structure, similar to HTML, but unlike HTML, XML defines custom tags to describe data rather than display it. This flexibility allows XML to be used for many purposes, including data sharing between different systems, configuration files, and web services.
</p>
<p>
For example, businesses use XML to exchange information like orders or invoices between separate software applications. Since XML is platform-independent, it helps different systems understand each other’s data, making it a key tool in modern data management and communication.
</p>
<h2>Example of XML</h2>
<pre>
<order>
<customer>John Smith</customer>
<item>Laptop</item>
<quantity>1</quantity>
<price>1200</price>
</order>
This example shows a simple XML structure representing a customer order.
To add that image as a background for your entire page while keeping your content readable and keeping your current styles mostly intact, you should:
Move the max-width, margin, padding, box-shadow, border-radius, and background-color rules off the body (since that will become your full-page background with the image).
Wrap your page content inside a container <div> (e.g., class content).
Apply the styles like max-width, margin, padding, background-color, shadow, etc. to that container.
Then add the background image rules to body.
Here’s how you can update your code.
1. Wrap everything inside <body> except the body itself in a <div class="content">
body {
/* Full page background image */
background-image: url('https://img.freepik.com/free-photo/website-html-code-browser-view-printed-white-paper-closeup-view_211682-166.jpg');
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
/* Reset margin and padding so background fills the viewport */
margin: 0;
padding: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: #1f2937;
line-height: 1.6;
}
.content {
max-width: 720px;
margin: 40px auto;
padding: 20px;
background-color: rgba(255, 255, 255, 0.9); /* semi-transparent white */
box-shadow: 0 0 15px rgba(0,0,0,0.1);
border-radius: 10px;
}
3. Full (modified) HTML + CSS snippet integrating the above
html
User
Can you write the full code all together for me please
Assistant
Certainly! Here is the full HTML code with the background image applied to the whole page, your content wrapped in a semi-transparent container for readability, and all your existing content and styles integrated:
html
User
As I’m a visual learner, I like to write or type notes and include drawings or use different colours to highlight important information.
If I use my computer, I will create a file for the subject and subfiles for different area within that subject. If I’m using pen and paper, I use sticky notes to make tabs to indicate where each area starts to be able to quickly find information.
Assistant
That sounds like a great strategy to organize and visually structure your learning! Combining written notes, colour-coding, and diagrams can really help with memory and understanding. Using folders and subfolders on your computer mirrors physical organization with tabs and sticky notes, making it easier to quickly access specific topics.
If you'd like, I can help you with tips on digital note-taking apps, ways to create effective colour-coded notes, or even how to make simple diagrams for your notes. Just let me know!
Limited Scalability and Flexibility: As ships sail multiple times a year, their name and month have to be repeatedly stored, making updates complex and error-prone. A relational database separates data into related tables, making it easier to manage changes and query data efficiently.
By using relational tables, data is organized more logically, reducing redundancy and improving data integrity.
(Approx. 140–150 words)
Would you like me to help refine these answers or assist with any other part?
How to use this:
Save the above code into a file named, for example, xml-intro.html.
Open it in any web browser to see your explanation nicely formatted.
The example XML snippet is included to help students visualize the concept.
If you need help adding more features or customizing this page, just let me know!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Introduction to XML</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
max-width: 720px;
margin: 40px auto;
padding: 20px;
background: linear-gradient(to bottom right, #f0f4f8, #d9e2ec);
color: #1f2937;
line-height: 1.6;
box-shadow: 0 0 15px rgba(0,0,0,0.1);
border-radius: 10px;
}
header {
text-align: center;
margin-bottom: 30px;
color: #0f4c81;
}
header h1 {
font-size: 2.8em;
margin-bottom: 0.2em;
text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}
header p {
font-style: italic;
font-size: 1.1em;
color: #334e68;
}
section {
background-color: #ffffffdd;
padding: 25px 30px;
border-radius: 8px;
box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
h2 {
margin-top: 2em;
color: #1c3d5a;
border-bottom: 2px solid #0f4c81;
padding-bottom: 6px;
}
pre {
background-color: #1e293b;
color: #d1d5db;
padding: 18px;
border-radius: 6px;
overflow-x: auto;
font-size: 0.95em;
}
img {
display: block;
max-width: 100%;
height: auto;
margin: 30px auto;
border-radius: 8px;
box-shadow: 0 8px 16px rgba(15,76,129,0.3);
}
footer {
margin-top: 30px;
font-size: 0.85em;
text-align: center;
color: #64748b;
font-style: italic;
}
a {
color: #0f4c81;
text-decoration: none;
font-weight: 600;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<header>
<h1>Introduction to XML</h1>
<p>by Your Name Here</p>
</header>
<section>
<p>
XML stands for <strong>eXtensible Markup Language</strong>. It is a format designed to store and transport data in a structured and readable way for both humans and computers. XML uses tags to organize information into a hierarchical structure, similar to HTML, but unlike HTML, XML defines custom tags to describe data rather than display it. This flexibility allows XML to be used for many purposes, including data sharing between different systems, configuration files, and web services.
</p>
<p>
For example, businesses use XML to exchange information like orders or invoices between separate software applications. Since XML is platform-independent, it helps different systems understand each other’s data, making it a key tool in modern data management and communication.
</p>
<h2>Example of XML</h2>
<pre>
<order>
<customer>John Smith</customer>
<item>Laptop</item>
<quantity>1</quantity>
<price>1200</price>
</order>
</pre>
<p>This example shows a simple XML structure representing a customer order.</p>
<!-- Image: feel free to replace the src attribute with your chosen image URL -->
<img src="https://upload.wikimedia.org/wikipedia/commons/2/29/XML_Logo.svg" alt="XML Logo" />
<footer>
Image credit: <a href="https://commons.wikimedia.org/wiki/File:XML_Logo.svg" target="_blank" rel="noopener noreferrer">Wikimedia Commons - XML Logo</a>
</footer>
</section>
<footer style="margin-top: 40px; text-align: center;">
<p>Visit my Open Sites web page: <a href="https://yoursite.example.com" target="_blank" rel="noopener noreferrer">https://yoursite.example.com</a></p>
</footer>
</body>
</html>
What I added:
Header with page title and your name.
A copyright-free image (the official XML logo from Wikimedia Commons) with attribution below it.
Styling improvements: background gradient, shadows, fonts, colors for readability and appeal.
A footer with a link to your Open Sites web page (replace https://yoursite.example.com with your actual URL).
Next steps:
Replace Your Name Here with your actual name.
Change the image if you have a different one you prefer, but remember to update the attribution.
Replace the Open Sites link with your own.
When submitting your TMA document, include a screenshot of this page as required.
If you want, I can also help you create the screenshot instructions or other parts of the assignment!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Introduction to XML</title>
<style>
body {
background-image: url('https://img.freepik.com/free-photo/website-html-code-browser-view-printed-white-paper-closeup-view_211682-166.jpg');
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
margin: 0;
padding: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: #1f2937;
line-height: 1.6;
}
.content {
max-width: 720px;
margin: 40px auto;
padding: 20px;
background-color: rgba(255, 255, 255, 0.9);
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
border-radius: 10px;
}
header {
text-align: center;
margin-bottom: 30px;
color: #0f4c81;
}
header h1 {
font-size: 2.8em;
margin-bottom: 0.2em;
text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}
header p {
font-style: italic;
font-size: 1.1em;
color: #334e68;
}
section {
background-color: #ffffffdd;
padding: 25px 30px;
border-radius: 8px;
box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
h2 {
margin-top: 2em;
color: #1c3d5a;
border-bottom: 2px solid #0f4c81;
padding-bottom: 6px;
}
pre {
background-color: #1e293b;
color: #d1d5db;
padding: 18px;
border-radius: 6px;
overflow-x: auto;
font-size: 0.95em;
}
img {
display: block;
max-width: 100%;
height: auto;
margin: 30px auto;
border-radius: 8px;
box-shadow: 0 8px 16px rgba(15,76,129,0.3);
}
footer {
margin-top: 30px;
font-size: 0.85em;
text-align: center;
color: #64748b;
font-style: italic;
}
a {
color: #0f4c81;
text-decoration: none;
font-weight: 600;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="content">
<header>
<h1>Introduction to XML</h1>
<p>by Natalie Clarke</p>
</header>
<section>
<p>
XML stands for <strong>eXtensible Markup Language</strong>. It is a format designed to store and transport data in a structured and readable way for both humans and computers. XML uses tags to organize information into a hierarchical structure, similar to HTML, but unlike HTML, XML defines custom tags to describe data rather than display it. This flexibility allows XML to be used for many purposes, including data sharing between different systems, configuration files, and web services.
</p>
<p>
For example, businesses use XML to exchange information like orders or invoices between separate software applications. Since XML is platform-independent, it helps different systems understand each other’s data, making it a key tool in modern data management and communication.
</p>
<h2>Example of XML</h2>
<pre>
<order>
<customer>John Smith</customer>
<item>Laptop</item>
<quantity>1</quantity>
<price>1200</price>
</order>
</pre>
<p>This example shows a simple XML structure representing a customer order.</p>
<footer>
Image credit: <a href=" https://www.freepik.com/free-photo/website-html-code-browser-view-printed-white-paper-closeup-view_8487291.htm#fromView=search&page=1&position=8&uuid=7c35c538-ebf9-4fea-a526-ce6a95e751ab&query=Xml+Format" target="_blank" rel="noopener noreferrer">Website HMTL Code</a>
</footer>
</section>
<footer style="margin-top: 40px; text-align: center;">
<p>Visit my Open Sites web page: <a href=" https://tm111.open.ac.uk/opensites/welcome.php" target="_blank" rel="noopener noreferrer"> https://tm111.open.ac.uk/opensites/welcome.php</a></p>
</footer>
</div>
</body>
</html>
Summary:
The background image fills the entire page.
Your content sits inside .content with a white background at 90% opacity for readability.
This preserves your styling and improves text visibility over the background image.
If you want me to generate the full final file ready to use or help with anything else, just say!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Introduction to XML</title>
<style>
body {
background-image: url('https://img.freepik.com/free-photo/website-html-code-browser-view-printed-white-paper-closeup-view_211682-166.jpg');
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
margin: 0;
padding: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: #1f2937;
line-height: 1.6;
}
.content {
max-width: 720px;
margin: 40px auto;
padding: 20px;
background-color: rgba(255, 255, 255, 0.9);
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
border-radius: 10px;
}
header {
text-align: center;
margin-bottom: 30px;
color: #0f4c81;
}
header h1 {
font-size: 2.8em;
margin-bottom: 0.2em;
text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}
header p {
font-style: italic;
font-size: 1.1em;
color: #334e68;
}
section {
background-color: #ffffffdd;
padding: 25px 30px;
border-radius: 8px;
box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
h2 {
margin-top: 2em;
color: #1c3d5a;
border-bottom: 2px solid #0f4c81;
padding-bottom: 6px;
}
pre {
background-color: #1e293b;
color: #d1d5db;
padding: 18px;
border-radius: 6px;
overflow-x: auto;
font-size: 0.95em;
}
img {
display: block;
max-width: 100%;
height: auto;
margin: 30px auto;
border-radius: 8px;
box-shadow: 0 8px 16px rgba(15,76,129,0.3);
}
footer {
margin-top: 30px;
font-size: 0.85em;
text-align: center;
color: #64748b;
font-style: italic;
}
a {
color: #0f4c81;
text-decoration: none;
font-weight: 600;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="content">
<header>
<h1>Introduction to XML</h1>
<p>by Natalie Clarke</p>
</header>
<section>
<p>
XML stands for <strong>eXtensible Markup Language</strong>. It is a format designed to store and transport data in a structured and readable way for both humans and computers. XML uses tags to organize information into a hierarchical structure, similar to HTML, but unlike HTML, XML defines custom tags to describe data rather than display it. This flexibility allows XML to be used for many purposes, including data sharing between different systems, configuration files, and web services.
</p>
<p>
For example, businesses use XML to exchange information like orders or invoices between separate software applications. Since XML is platform-independent, it helps different systems understand each other’s data, making it a key tool in modern data management and communication.
</p>
<h2>Example of XML</h2>
<pre>
<order>
<customer>John Smith</customer>
<item>Laptop</item>
<quantity>1</quantity>
<price>1200</price>
</order>
</pre>
<p>This example shows a simple XML structure representing a customer order.</p>
<footer>
Image credit: <a href=" https://www.freepik.com/free-photo/website-html-code-browser-view-printed-white-paper-closeup-view_8487291.htm#fromView=search&page=1&position=8&uuid=7c35c538-ebf9-4fea-a526-ce6a95e751ab&query=Xml+Format" target="_blank" rel="noopener noreferrer">Website HTML Code</a>
</footer>
</section>
<footer style="margin-top: 40px; text-align: center;">
<p>Visit my Open Sites web page: <a href=" https://tm111.open.ac.uk/opensites/welcome.php" target="_blank" rel="noopener noreferrer"> https://tm111.open.ac.uk/opensites/welcome.php</a></p>
</footer>
</div>
</body>
</html>
How it works:
The background image covers the entire viewport.
The .content div ensures readability with a white, semi-transparent background and slight shadow.
Your text, headings, code example, and footers keep the existing styling.
The image credit and Open Sites link are included as requested.
If you want to replace any text (e.g. name, link) or add an image tag inside .content just let me know!