mode 1 XML Flashcards

1
Q

What is XML?

A

eXtensible Markup Language.

It is a platform independent dataformat for transferring data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why do we use XML?

A

XML because each platform holds datat in a different format; this makes it difficult for them to communicate.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do we store data in XML vs Java?

A

5
Hello

int var1 = 5;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a tag?

A

It’s a keyword surrounded by chevrons(diamond brackets).

So the “var1” tag look like this

first tag would be called the root tag

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an element?

A

An element provides the structure of the document.

It is defined by an opening and closing tag as well as its contents

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

how do we access values in xml?

A

“xml.var1”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is an attribute?

A

Attributes are defined within a tag/can be found inside a tag and can be more than 1 keyword: the 2nd or 3rd (or beyon) keywords will modify the tag in some way by providing meta data.

Example: we use the src attribute to do this: <img></img>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is an XML Schema

A

an XML schema is like a schema in DB.. They map out how your data will be structured as they are the WIREFRAME for your data entries.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Types of schemas in XML

A

There are multiple types of schemas in XML:
XML Schema Definition (XSD)
Data Type Definition(DTD)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is “valid XML” and “well formed XML”

A

Valid means it correctly follows the established XML schema

Well formed means the XML has valid syntax

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is HTML

A

Hypertext Markup Language - it is a markup language for creating web pages and applications.

It uses tags, elements, and attributes to organize it’s data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What technology do we use to stylize and beautify our HTML web data?

A

We use CSS

Cascading Style Sheets (CSS)

CSS will allow you to style the data to make it look more sleek and pretty.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What technology gives our webpage functionality?

A

JavaScript (JS)

JS will allow us to utilize programming concepts in a webpage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Name some common tabs we use in HTML

A
<div> - defines a "division of the page"
<p> - defines a paragraph
<span> - an inline tag for grouping text or elements
<b> - bold text
<i> - italicized text
<h1>, <h2>, ... <h6> - these are headings, h1 is largest and h6 is smallest
<br> - line break
</h6></h2></h1> - defines a table
<img>
<ol> - an ordered list
</ol><ul> - an unordered list
<a href=""> - makes a hyperlink</a></ul></i></b></span></p></div>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are SEMANTIC and NON-SEMANTIC elements?

A

Semantic Elements defines the meaning for the web page rather than just presentation

Non-semantic elements that are not related to the content on the web page. E.g; elements like <div> and <span></span></div>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a div tag?

A

A container for one or more elements, in other words a block of elements (like curly braces for HTML pages)
DOES create a newline character at the end

17
Q

What is a span tag?

A

A container for one or more elements…just like the div tag EXCEPT it is used for inline groupings.
And it doesn’t create a newline character at the end

18
Q

What is the style precedence?

A

Style precedence:

1. inline styling (directly on th element itself)