SlideShare a Scribd company logo
1 of 31
WEB AUTHORING
• Web authoring refers to the process of creating, designing, and
publishing content for the World Wide Web.
• It involves the creation of web pages and websites using various
technologies, such as HTML CSS JavaScript, and other web
development tools.
Introduction to XML
The extensible Markup Language (XML) is a markup language like
HTML.
A markup language is a computer language that uses tags
When the file is processed by a suitable application, the tags are used to
control the structure or
presentation of the data contained in the file. Any text that appears within
one of these tags is considered part of the markup language.
Markup files contain standard words, rather than typical programming
syntax.
XML stands for eXtensible Markup Language.
XML was designed to store and transport data.
XML was designed to be both human- and machine-readable.
XML is saved with file name extension .xml
XML is a way of applying structure to a web page.
XML provides a standard open format and mechanisms for
structuring a document
XML complements your HTML knowledge by allowing you to
structure your data by marking up the text and data to define the data
content.
Example
<books>
<book>
<title>An Introduction to XML and Web Technologies </title>
<author> by Anders Moller, Michael Schwartzbach</author>
<type>Programming Languages</type>
</book>
</books>
Elements of XML Documents
• XML document must contain one root element that is the parent of all
other elements.
• The structure of an XML document follows a hierarchical tree-like
structure.
• Here is the basic structure of an XML document.
1. XML Declaration
• The XML declaration is an optional statement at the beginning of the
XML document that specifies the version of XML being used and
optionally the character encoding.
• It typically looks like this:
<?xml version="1.0" encoding="UTF-8"?>
2. Root Element
• The root element is the top-level element in the XML document.
• It encapsulates all other elements within the document.
• It must be unique and can contain any number of child elements.
• It is enclosed within angle brackets (<>) and comes after the XML
declaration.
Example
<root>
<!-- Child elements go here -->
</root>
3. Attributes
• Attributes provide additional information about an element.
• They consist of a name-value pair and are placed within the opening
tag of an element.
• Example
<person name="John" age="30" />
4. Text Content:
• Text content represents the actual data stored within an element.
• It appears between the opening and closing tags of an element.
For example:
<title>Introduction to XML</title>
Example
<?xml version="1.0" encoding="UTF-8"?>
<school>
<name>ABC School</name>
<departments>
<department>
<name>Preparatory</name>
<streams>
<stream>
<name>Natural Science</name>
<class>
<name>Prep Science</name>
<teacher>John Smith</teacher>
<students>20</students>
</class>
</stream>
<stream>
<name>Social Science</name>
<class>
<name>Prep Social Science</name>
<teacher>Sarah Johnson</teacher>
<students>18</students>
</class>
</stream>
</streams>
</department>
</departments>
</school>
Exercise 1
• create xml code to display your school hierarchy including the
following information school name, class level ,department ,section
with home room
Syntax rules to be remembered while working on XML
1. You should have one root:
XML documents must contain one element that is the parent of all other
elements.
A.
B.
From the above two syntax which one is correct and why ?
2. XML elements are case sensitive.
A. <name>Ibrahim </Name>
B. <NAME> Ibrahim </Name>
C. <Name> Ibrahim </Name>
From the above three choose which one is correct and why?
3. XML attribute values must always be quoted. The XML elements can
have attributes in name-value pairs which are similar to HTML.
5. Comments in XML:
The syntax for writing comments in XML is similar to that of HTML
E.g. <!– comments -->
6. XML does not truncate multiple white-spaces. In HTML, multiple
white-spaces are truncated to a single white-space.
Example :
7. Entity References:
• In XML, some characters have special meaning. For example, a
character like “<“ inside an XML element will generate an error. This
is because the XML parser interprets “<“as the start of a new XML
element. See the example below:
There are 5 pre-defined entity references in XML.
Element Declarations
XML documents consist of three things:
A. Elements
B. Entities
C. Control information.
Elements are surrounded by tags like HTML.
Elements consist of a start tag, an end tag, and the content between
them.
Elements may also contain attributes, which provide additional
information about the element.
B. Entities
• Entities are used to represent special characters or predefined strings in
an XML document.
An XML element is everything from the start tag to the end
tag’s of the element.
An element without content is said to be empty element.
An empty element can be described in one of the following
options.
<element> </element> or <element/>
Naming rules of XML elements:
Element names are case-sensitive.
Element names must start with a letter or underscore.
Element names cannot start with the letters XML.
Element names can contain letters, digits, hyphens, underscores, and
periods.
Element names cannot contain spaces
Attribute Declarations
• Attributes provide additional information about the element.
• An attribute is defined as key-value pair, the key is the name (e.g.
gender) and the attribute has values that must always be quoted.
• For example, a person element’s gender can be written like this:
Example
Which one is element and which one is attribute ?
Entity Declarations
An entity is a declaration of a name that can be used in an XML in
place of content or markup.
Entities must be declared before they are used.
All entities are declared with the “ENTITY” declaration.
Document Type Declaration (DTD)
is a way to formally describe the structure and content of an XML
document.
It defines the rules that the XML document must adhere to in order to
be considered valid.
The DTD is typically placed at the beginning of an XML document
within a <!DOCTYPE> declaration.
PCDATA
• PCDATA stands for "Parsed Character Data" in XML.
• It is a term used in Document Type Definitions (DTDs) and XML
schemas to describe the content of an element.
• PCDATA is the content that is parsed and interpreted as text by XML
parsers. It includes any character data that appears between the
opening and closing tags of an element.
Internal DTD subset
the internal DTD subset is specified within the square brackets
immediately following the <!DOCTYPE> declaration.
Website publishing
1. root: this is the top level or root folder that represents the website itself.
It contains all other files and folders of the website.
For example, moe.gov.et.
2. index.html: contains the main homepages of the site which are written
in HTML. Web servers are by default set up to return to the index.html file if
no file name is specified.
For example, if you write moe.gov.et, it returns to moe.gov.et/index.html.
3. pages folder: this subfolder contains web pages of the site. For
example: about, contact us, etc. The name could be anything related to the
site.
4. images folder: this is the subfolder that contains all the images that
are used on the site.
5. CSS folder: CSS code used to style the site resides in this folder. It
includes, for example setting text and background colors.
6 . scripts folder: this subfolder contains all the JavaScript code used to
add interactive functionality to the site
Securing website
Feature HTTPS HTTP
Data Encryption Yes No
Security Secure Not secure
Data Integrity Yes No
Certificate Required Yes No
URL Starts With "https://" "http://"
Port Number 443 80
Browser Indicator Padlock icon, "Secure" No specific indicator
Trust and User Confidence High Lower
Vulnerable to Eavesdropping No Yes
Vulnerable to Data Tampering No Yes
Vulnerable to Man-in-the-Middle No Yes
Adoption and Usage Widely adopted and used
Still used but transitioning to
HTTPS

More Related Content

Similar to chapter 4 web authoring unit 4 xml.pptx

Similar to chapter 4 web authoring unit 4 xml.pptx (20)

Xml
XmlXml
Xml
 
Intro xml
Intro xmlIntro xml
Intro xml
 
01 xml document structure
01 xml document structure01 xml document structure
01 xml document structure
 
PHP XML
PHP XMLPHP XML
PHP XML
 
Intro to xml
Intro to xmlIntro to xml
Intro to xml
 
Xml intro1
Xml intro1Xml intro1
Xml intro1
 
Sgml and xml
Sgml and xmlSgml and xml
Sgml and xml
 
Xml tutorial
Xml tutorialXml tutorial
Xml tutorial
 
Web Development Course - XML by RSOLUTIONS
Web Development Course - XML by RSOLUTIONSWeb Development Course - XML by RSOLUTIONS
Web Development Course - XML by RSOLUTIONS
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
XML.pptx
XML.pptxXML.pptx
XML.pptx
 
1 xml fundamentals
1 xml fundamentals1 xml fundamentals
1 xml fundamentals
 
XML
XMLXML
XML
 
WT UNIT-2 XML.pdf
WT UNIT-2 XML.pdfWT UNIT-2 XML.pdf
WT UNIT-2 XML.pdf
 
Xml
XmlXml
Xml
 
XML.pptx
XML.pptxXML.pptx
XML.pptx
 
xml.pptx
xml.pptxxml.pptx
xml.pptx
 
XML-Unit 1.ppt
XML-Unit 1.pptXML-Unit 1.ppt
XML-Unit 1.ppt
 
Oracle soa xml faq
Oracle soa xml faqOracle soa xml faq
Oracle soa xml faq
 
CTDA Workshop on XML and MODS
CTDA Workshop on XML and MODSCTDA Workshop on XML and MODS
CTDA Workshop on XML and MODS
 

Recently uploaded

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxAnaBeatriceAblay2
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 

Recently uploaded (20)

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 

chapter 4 web authoring unit 4 xml.pptx

  • 1. WEB AUTHORING • Web authoring refers to the process of creating, designing, and publishing content for the World Wide Web. • It involves the creation of web pages and websites using various technologies, such as HTML CSS JavaScript, and other web development tools.
  • 2. Introduction to XML The extensible Markup Language (XML) is a markup language like HTML. A markup language is a computer language that uses tags When the file is processed by a suitable application, the tags are used to control the structure or presentation of the data contained in the file. Any text that appears within one of these tags is considered part of the markup language. Markup files contain standard words, rather than typical programming syntax.
  • 3. XML stands for eXtensible Markup Language. XML was designed to store and transport data. XML was designed to be both human- and machine-readable. XML is saved with file name extension .xml
  • 4. XML is a way of applying structure to a web page. XML provides a standard open format and mechanisms for structuring a document XML complements your HTML knowledge by allowing you to structure your data by marking up the text and data to define the data content.
  • 5. Example <books> <book> <title>An Introduction to XML and Web Technologies </title> <author> by Anders Moller, Michael Schwartzbach</author> <type>Programming Languages</type> </book> </books>
  • 6. Elements of XML Documents • XML document must contain one root element that is the parent of all other elements. • The structure of an XML document follows a hierarchical tree-like structure. • Here is the basic structure of an XML document.
  • 7. 1. XML Declaration • The XML declaration is an optional statement at the beginning of the XML document that specifies the version of XML being used and optionally the character encoding. • It typically looks like this: <?xml version="1.0" encoding="UTF-8"?>
  • 8. 2. Root Element • The root element is the top-level element in the XML document. • It encapsulates all other elements within the document. • It must be unique and can contain any number of child elements. • It is enclosed within angle brackets (<>) and comes after the XML declaration. Example <root> <!-- Child elements go here --> </root>
  • 9. 3. Attributes • Attributes provide additional information about an element. • They consist of a name-value pair and are placed within the opening tag of an element. • Example <person name="John" age="30" />
  • 10. 4. Text Content: • Text content represents the actual data stored within an element. • It appears between the opening and closing tags of an element. For example: <title>Introduction to XML</title>
  • 11. Example <?xml version="1.0" encoding="UTF-8"?> <school> <name>ABC School</name> <departments> <department> <name>Preparatory</name> <streams> <stream> <name>Natural Science</name> <class> <name>Prep Science</name> <teacher>John Smith</teacher> <students>20</students> </class> </stream> <stream> <name>Social Science</name> <class> <name>Prep Social Science</name> <teacher>Sarah Johnson</teacher> <students>18</students> </class> </stream> </streams> </department> </departments> </school>
  • 12. Exercise 1 • create xml code to display your school hierarchy including the following information school name, class level ,department ,section with home room
  • 13. Syntax rules to be remembered while working on XML 1. You should have one root: XML documents must contain one element that is the parent of all other elements. A. B. From the above two syntax which one is correct and why ?
  • 14. 2. XML elements are case sensitive. A. <name>Ibrahim </Name> B. <NAME> Ibrahim </Name> C. <Name> Ibrahim </Name> From the above three choose which one is correct and why? 3. XML attribute values must always be quoted. The XML elements can have attributes in name-value pairs which are similar to HTML.
  • 15. 5. Comments in XML: The syntax for writing comments in XML is similar to that of HTML E.g. <!– comments --> 6. XML does not truncate multiple white-spaces. In HTML, multiple white-spaces are truncated to a single white-space. Example :
  • 16. 7. Entity References: • In XML, some characters have special meaning. For example, a character like “<“ inside an XML element will generate an error. This is because the XML parser interprets “<“as the start of a new XML element. See the example below:
  • 17. There are 5 pre-defined entity references in XML.
  • 18.
  • 19. Element Declarations XML documents consist of three things: A. Elements B. Entities C. Control information. Elements are surrounded by tags like HTML. Elements consist of a start tag, an end tag, and the content between them. Elements may also contain attributes, which provide additional information about the element.
  • 20. B. Entities • Entities are used to represent special characters or predefined strings in an XML document. An XML element is everything from the start tag to the end tag’s of the element. An element without content is said to be empty element. An empty element can be described in one of the following options. <element> </element> or <element/>
  • 21. Naming rules of XML elements: Element names are case-sensitive. Element names must start with a letter or underscore. Element names cannot start with the letters XML. Element names can contain letters, digits, hyphens, underscores, and periods. Element names cannot contain spaces
  • 22.
  • 23. Attribute Declarations • Attributes provide additional information about the element. • An attribute is defined as key-value pair, the key is the name (e.g. gender) and the attribute has values that must always be quoted. • For example, a person element’s gender can be written like this:
  • 24. Example Which one is element and which one is attribute ?
  • 25. Entity Declarations An entity is a declaration of a name that can be used in an XML in place of content or markup. Entities must be declared before they are used. All entities are declared with the “ENTITY” declaration.
  • 26. Document Type Declaration (DTD) is a way to formally describe the structure and content of an XML document. It defines the rules that the XML document must adhere to in order to be considered valid. The DTD is typically placed at the beginning of an XML document within a <!DOCTYPE> declaration.
  • 27. PCDATA • PCDATA stands for "Parsed Character Data" in XML. • It is a term used in Document Type Definitions (DTDs) and XML schemas to describe the content of an element. • PCDATA is the content that is parsed and interpreted as text by XML parsers. It includes any character data that appears between the opening and closing tags of an element.
  • 28. Internal DTD subset the internal DTD subset is specified within the square brackets immediately following the <!DOCTYPE> declaration.
  • 29. Website publishing 1. root: this is the top level or root folder that represents the website itself. It contains all other files and folders of the website. For example, moe.gov.et. 2. index.html: contains the main homepages of the site which are written in HTML. Web servers are by default set up to return to the index.html file if no file name is specified. For example, if you write moe.gov.et, it returns to moe.gov.et/index.html. 3. pages folder: this subfolder contains web pages of the site. For example: about, contact us, etc. The name could be anything related to the site.
  • 30. 4. images folder: this is the subfolder that contains all the images that are used on the site. 5. CSS folder: CSS code used to style the site resides in this folder. It includes, for example setting text and background colors. 6 . scripts folder: this subfolder contains all the JavaScript code used to add interactive functionality to the site
  • 31. Securing website Feature HTTPS HTTP Data Encryption Yes No Security Secure Not secure Data Integrity Yes No Certificate Required Yes No URL Starts With "https://" "http://" Port Number 443 80 Browser Indicator Padlock icon, "Secure" No specific indicator Trust and User Confidence High Lower Vulnerable to Eavesdropping No Yes Vulnerable to Data Tampering No Yes Vulnerable to Man-in-the-Middle No Yes Adoption and Usage Widely adopted and used Still used but transitioning to HTTPS