Internet Technologies

Tasks studies - laboratory


Project maintained by dawidolko Hosted on GitHub Pages — Theme by dawidolko

XML and JS Colloquium

Subject: Internet Technologies

Academic year: 2022/2023

Semester: winter

Group: I

1. Create a new XML file, copy the code below to it and add CSS and DTD for this code:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<television_stations>
<station>
<name language="Polish">TVP</name>
<employees>2000 people</employees>
<year_founded>1950</year_founded>
</station>
<stacja>
<name language="Polish">TVN</name>
<employees>1000</employees>
<year_founded>1995</year_founded>
</stacja>

<stacja>
<name language="Polish">Polsat</name>
<employees>1000</employees>
<year_founded>1900</year_founded>
</stacja>
</television_stations>

2. Write a simple XML document that should contain data about your favorite book such as:

title, author’s name and surname, publisher’s name and the book’s release date. Check the correctness of the created document in the browser.

3. Write a JS script that will allow you to change the text in paragraphs.

Define the appropriate function for this purpose, two paragraphs with text (two <P> tags) and two buttons. After clicking the first button, the text contained in paragraph 1 will change, after clicking the second button, the text contained in paragraph 2 will change. The texts in the first and second paragraphs should differ both in the initial form and after the change.