HTML Flashcards

Create HTML pages using HTML syntax Apply sectioning elements, headings, images, links, paragraphs, lists, forms and tables. Create properly structured HTML pages.

1
Q

HTML is a subset of ______.

A

HTML is a subset of XML.

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

Every web page has the same basic ______ no matter how extensive the contents of each page

A

Every web page has the same basic structure no matter how extensive the contents of each page

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

The also contains meta tags which are used to denote information about the document.

A

The also contains meta tags which are used to denote information about the document.

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

<a> </a>

A

<a> Anchor</a>

Used to link to another part of the page or a new page altogether.</a>

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

<h1>, <h2>,<h3>, <h4>, <h5>, <h6></h6></h5></h4></h3></h2></h1>

A

<h1>, <h2>,<h3>, <h4>, <h5>, <h6> Headings

Implementation of headings and subheadings may not be as straightforward as it seems.</h6></h5></h4></h3></h2></h1>

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

Semantic elements allow developers to describe content _______.

A

Semantic elements allow developers to describe content more precisely.

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

A header navigation with a list of links should be marked up like so:

A

<ul>
<li><a>Home </a></li>
<li><a>Contact </a></li>
<li><a>Blog </a></li>
</ul>

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

The “href” attribute is the ____.

A

The “href” attribute is
1. url that the link points towards 2. the “target” attribute would mean the page would open up in a new browser window/tab.

<a>Link to Google</a>

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

The “_____” attribute states the path to the image file.

The “_____” attribute provides information about the image if the file was not found or if the document reader cannot process the image.

A

The “src” attribute states the path to the image file .

The “alt” attribute provides information about the image if the file was not found or if the document reader cannot process the image.

<img></img>

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

What are block-level elements?

A

Block-level elements are those that start a new line with the opening tag and then start another new line after the closing tag.

An example of this would be the <p> </p> paragraph tags or the <h1> </h1> heading tags or the section tags

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

The “_____” attribute states the path to the image file

The “_____” attribute provides information about the image if the file was not found or if the document reader cannot process the image.

A

The “src” attribute states the path to the image file

The “alt” attribute provides information about the image if the file was not found or if the document reader cannot process the image.

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

What are block-level elements?

A

Block-level elements are those that start a new line with the opening tag and then start another new line after the closing tag.

An example of this would be the <p> </p> paragraph tags or the <h1> </h1> heading tags or the section tags

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

What are inline elements?

A

Inline elements are inserted into a block-level element and do not interrupt the flow of the content.

Examples of inline tags:
<a> </a> - specifies an anchor to a hyperlink destination
<strong> </strong> - all text between tags would be set apart (default is bold…see Physical versus Logical below)
<em> </em> - all text between tags would be emphasized (default is italic…see Physical versus Logical below)
<img></img> - specifies an image; this tag is a self-closing tag (note the / before the >)

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

Forms are groups of fields that allow users to enter _____, check-off _____, pick from _____, click _____, etc.

A

Forms are groups of fields that allow users to enter text, check-off boxes, pick from lists, click buttons, etc.

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

When you want to retrieve information from your user, HTML allows you to receive user input by creating ______.

A

When you want to retrieve information from your user, HTML allows you to receive user input by creating forms.

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

______ are groups of fields that allow users to enter text, check-off boxes, pick from lists, click buttons, etc.

A

Forms are groups of fields that allow users to enter text, check-off boxes, pick from lists, click buttons, etc.

17
Q

Steps to designing usable forms:

A
  1. Identify the types of information you want to collect from your user (ex. Should the name field be one field or split into first and last perhaps for sorting)
  2. Create a logical flow to help facilitate user entry (ex. Is data better collected from left to right or from top to bottom?)
  3. Include labels and placeholder information so it is clear to the user what you are asking for General Guidelines for Planning a Form
18
Q

General Guidelines for Planning a Form:

A
  1. Plan out the web form.
    - What information needs to be collected? Who are the users? What is the purpose?
  2. Decide which controls to use.
    - Which controls will work best for each type of input needed?
  3. Decide on other options. - How organized? Easy to use? Tips for users?
  4. Use best practices to create Web Form
  5. Test the web page
19
Q

Describe Autofocus Attribute:

A

Automatically focus on one particular form field

20
Q

Describe Placeholder Attribute:

A

Provide a hint to the user of what can be entered into a field.

Placeholder text must not contain line break

21
Q

Describe Required Attribute:

A

Make a field required (will not submit without a value)

22
Q

We can pass information to a PHP script via the ___ method or the ____ method.

These methods are defined in an HTML form and the _____ method adds variables at the end of the URL.

A

We can pass information to a PHP script via the GET method or the POST method.

These methods are defined in an HTML form and the GET method adds variables at the end of the URL.

23
Q

The ____ method produces a long string that appears in your server logs, in the browser’s

Location: box and is recognized by search engines

A

The GET method produces a long string that appears in your server logs, in the browser’s

Location: box and is recognized by search engines

24
Q

Using GET, the URL is formatted with name-value pairs.

A

http://yourwebsite.com/form-processor.php?name1=value1&name2=value2&name3=value3

25
Q

The ___ method is restricted to send a maximum number of characters, depending on the browser.

A

The GET method is restricted to send a maximum number of characters, depending on the browser.

26
Q

Never use ____ method if you have password or other sensitive information to be sent to the server since it is publicly viewable

A

Never use GET method if you have password or other sensitive information to be sent to the server since it is publicly viewable

27
Q

GET can’t be used to send _____ data, like images or word documents, to the server.

A

GET can’t be used to send binary data, like images or word documents, to the server.

28
Q

POST method transfers information via _____.

A

POST method transfers information via HTTP headers.

29
Q

POST method does not have any restriction on _______ to be sent.

A

POST method does not have any restriction on data size to be sent.

30
Q

POST method can be used to send ____ as well as _____.

A

POST method can be used to send ASCII as well as binary data.

31
Q

Data sent by POST method goes through HTTP header so security depends on HTTP _______.

By using ______ ______ you can make sure that your information is secure.

A

Data sent by POST method goes through HTTP header so security depends on HTTP protocol.

By using Secure HTTP you can make sure that your information is secure.

32
Q

The action attribute of your form itself is the _______ _____ that your form and variables will be submitted to.

A

The action attribute of your form itself is the processing page that your form and variables will be submitted to.

33
Q

Metadata is data that _______.

A

Metadata is data that describes data.

34
Q

The icon in the browser tab (_____) and mobile icons can be configured.

A

The icon in the browser tab (favicon) and mobile icons can be configured.