POST MIDTERM Flashcards

1
Q

What does semantic mean?

A

Meaning.

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

What is the purpose of semantic tags?

A

Rather than generic tags like div for division, the new semantic tags all describe the content of the tag.

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

What do outliners do?

A

Outliners can be used as well to generally determine content or what the parts of the page are about.

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

What is HTML5?

A

HTML5 is a reworking of the organization of HTML, CSS and JavaScript.

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

What are five semantic tags?

A

< header >, < footer >, < nav >, < main >, < article >, < section >, < aside >, < figure >, < figcaption >, < details >, < summary >, < mark >, < time >.

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

What is <header>?

A

The top part of a page or section.

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

What is <footer>?

A

The bottom part of a page or section.

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

What is <nav>?

A

The place for interfaces like menus.

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

What is <main>?

A

The main content area (not header, footer, nav).

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

What is <article>?

A

A self-contained composition (document or such).

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

What is <section>?

A

A chapter, etc. of an article or the main content.

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

What is <aside>

A

Supporting content or related information.

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

What is <figure>?</figure>

A

Diagrams, pictures, illustrations, etc.

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

What is <figcaption>?

A

Text to describe a figure.

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

What is <details>?</details>

A

Extra information that can be viewed.

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

What is <summary> and what can it only be used for?

A

A summary title for the detail tag only.

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

What is < mark > ?

A

For highlighted parts of text.

18
Q

What is <time>?</time>

A

Show a date and time.

19
Q

Why should HTML5 semantic tags have heading tags (h1, h2, h3 and so forth)?

A

HTML 5 Semantic Tags should have heading tags (h1, h2, h3, etc) applied so that outliners are descriptive.

20
Q

What does display:none do?

A

It hides tags.

21
Q

What are web pages hosted on?

A

Servers (just computers with software hooked up to the internet). Most common servers are Apache servers.

22
Q

Why do we use File Transfer Protocol(FTP)?

A

We use FTP to upload the server and download from the server to our local files.

23
Q

What permissions can we place on files?

A

Read, write and execute on the files.

24
Q

What is the purpose of forms?

A

Forms allow users to submit information to the site.

25
Q

What are some components of forms?

A

Form, Input, TextArea, Select, Buttons, CGI Format.

26
Q

What are some basic form tags?

A

Form, input, select, option.

< form method=post action=URL >

< input name=id type=text value=”start value” size=40 >

< input name=id type=checkbox checked >

< input name=id type=radio checked >

< select name=id multiple size=10 >

<option>Option One</option>

< option value=”2”>Option Two</option >

< textarea name=id rows=5 cols=50>start value</textarea >

< input name=id type=hidden value=”extra info” >

< input name=id type=submit value=”Submit” >

27
Q

What is <form method=post action=URL> ?

A

The main form tag. Method can be post or get. Post is invisble and holds more data. Get shows on the command line and can be bookmarked or shared. The action parameter is the URL where the form data is sent.

28
Q

What is < input name=id type=text value=”start value” size=40 > ?

A

A basic text input. The name parameter is required to receive the data on the server.

29
Q

What is < input name=id type=checkbox checked > ?

A

A checkbox for individual boolean.

30
Q

What is < input name=id type=radio checked > ?

A

A radiobutton for multiple discrete options.

31
Q

What is < select name=id multiple size=10 > ?

A

A pulldown menu - size makes this a select box. Do not include a size for a single line pulldown.

32
Q

What is <option>Option One</option> ?

A

An option tag - these are nested in the select to make the options for the select. This one will be selected.

33
Q

What is <option>Option Two</option> ?

A

Another option - this one has a custom value rather than its label for a value.

34
Q

What is < textarea name=id rows=5 cols=50>start value< /textarea > ?

A

A multi-line text area.

35
Q

What is < input name=id type=hidden value=”extra info” > ?

A

A hidden field for passing extra information not seen on the form.

36
Q

What is < input name=id type=submit value=”Submit” > ?

A

A button that will submit the form.

37
Q

What are some components of form validation?

A

Regular Expressions, e-mail, HTML5 Required Parameter

38
Q

What are regular expressions?

A

Are a way to pattern match and if desired, replace patterns.

39
Q

How do you apply Regular Expressions?

A

Through match(), replace(), search() and split() methods.

40
Q

List five regular expression parameters?

A

\ Escapes any special character. Eg. . means a . not any character.

. A single character (any character).

  • Zero or more of the previous character. Eg. a* zero or more a characters.

+ One or more of the previous character.

? Zero or one of the previous character.

() A group.

{n} n times of the previous character.

{n,} n or more times of the previous character.

{n,m} n to m of the previous character.

[ ] Any character in this list.

[^] Not any character in this list.

  • Range - used in []. Eg. [a-zA-Z0-9] - would match a-z, A-Z or 0-9

\d Decimal.

\D Not a Decimal.

\s Space.

\S Not a space.

\w Word character. (A-Z, a-z, 0-9, _)

\W Not a word character.

\t Tab.

\n New Line.

OR - (good|bad)