Part 3 - HTML Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is markup?

A

Markup is a way to indicate information about the content that is syntactically different from the content, and will not be displayed when the content it rendered

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

What does an HTML element contain?

A
  • Element name in angled brackets (tag)
  • Content within the tag
  • Elements may contain attributes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Identify the element name, attribute and content in the following HTML element:
<a>Central Park</a>

A
  • Element name: a
  • Attribute: href=”http://www.centralpark.com”
  • Content: Central Park
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is an empty element?

A

An empty element does not contain any text content; instead, it is an instruction to the browser to do something.

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

Is the following HTML line nested correctly? Explain.

<h1>Share Your <strong>Travels</strong></h1>

A

No. The closing <strong> tag should be nested within the header tag</strong>

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

What is semantic markup?

A

Semantic markup focusses on the structure of the document, not the visual

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

What are the advantages of using semantic markup?

A
  • Maintainability
  • Performance
  • Accessibility
  • Search Engine Optimisation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the function of the following line?

A

Tells the browser what type of document it is about to process

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

How many levels of heading does HTML allow?

A

6

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

Shortly explain the use of the <p> and </p><div> tags</div>

A
  • <p> tag is a container for text and other HTML elements

    </p>

- </p><div> also a container element and is used to create a logical grouping of content</div>

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

How would you reference the parent directory in an HTML link?

A

<a></a>

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

What HTML tag would you use to create a list that looks like the one below?

  1. Webdev is not supposed to be on Friday
  2. I have to write telecomms on Friday
  3. Why is life like this?
A

<ol></ol>

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

How would the tag <div class="story"> look in HTML5?</div>

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

What is the purpose of in HTML5?

A

is meant to contain the main unique content of the document. Replaces the old <div></div>

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

Explain the difference between GET and POST HTML requests

A

GET - All required data encoded in URL

POST - Info transferred from the browser client to the server in <strong>message body</strong> HTTP request

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