weaknesses 1 Flashcards

1
Q

What is the correct HTML for adding a background color?

  1. “<body bg="yellow">”
  2. <background>yellow</background>
  3. “<body style="background-color:yellow;">”
A
  1. “<body style="background-color:yellow;">”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

What is the largest heading in html?

A

“<h1>”

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

Inline elements are normally displayed without starting a new line (True or False)?

A

True

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


What is the correct HTML for making a checkbox?

1.<input></input>
2. <check>
3. <checkbox>
4. <input></input>
"</checkbox></check>

A

1.”<input></input>”

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

What is the correct HTML for making a text input field?


1. <input></input>
2. <textfield>
3. <textinput>
4. <input></input>
"</textinput></textfield>

A
  1. “<input></input>”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the correct HTML for making a drop-down list?

1. <select>
2. <input></input>
3. <input></input>
4. <list>
"</list></select>

A

“1. <select>”</select>

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

What is the correct HTML for making a text area?

1. <textarea>
2. <input></input>
3. <input></input>
"</textarea>

A

1.” <textarea>"</textarea>

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

What is the correct HTML for inserting a background image?

1. <body bg="background.gif">
2. <body style="background-image:url(background.gif)">
3. <background>
"</background>

A

“2. <body style="background-image:url(background.gif)">”

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


An <iframe> is used to display a web page within a web page.

  1. False
    2.There is no such thing as an <iframe>
  2. True
A
  1. True
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Block elements are normally displayed without starting a new line.

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

In HTML, you can embed SVG elements directly into an HTML page?

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

What is the correct HTML element for playing video files?

1. <movie>
2. <video>
3. <media></media></video></movie>

A
  1. <video>
    </video>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the correct HTML element for playing audio files?

  1. <sound>
    </sound>
  2. <mp3>
    </mp3>
  3. <audio>
    </audio>
A
  1. <audio>
    </audio>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The HTML global attribute, “contenteditable” is used to:

  1. Return the position of the first found occurrence of content inside a string
  2. Update content from the server
  3. Specifies a context menu for an element. The menu appears when a user right-clicks on the element
  4. Specify whether the content of an element should be editable or not
A
  1. Specify whether the content of an element should be editable or not
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In HTML, onblur and onfocus are:

  1. HTML elements
  2. Event attributes
  3. Style attributes
A
  1. Event attributes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Graphics defined by SVG is in which format?

1.XML
2. HTML
3. CSS

16
Q

The HTML <canvas> element is used to:</canvas>

  1. manipulate data in MySQL
  2. display database records
  3. create draggable elements
  4. draw graphics
A
  1. draw graphics
17
Q

Which input type defines a slider control?

  1. range
  2. slider
  3. controls
  4. search
18
Q

Which HTML element is used to display a scalar measurement within a range?

  1. <gauge>
    </gauge>
  2. <measure>
    </measure>
  3. <meter>
    </meter>
  4. <range>
    </range>
A
  1. <meter>
    </meter>
19
Q

In HTML, what does the <aside> element define?

  1. The ASCII character-set; to send information between computers on the Internet
  2. Content aside from the page content
  3. A navigation list to be shown at the left side of the page
A
  1. Content aside from the page content
20
Q

What is the difference between inline and block elements in HTML?

A

Inline elements do not start on a new line and only occupy as much width as necessary (e.g., <span>, <a>). Block elements start on a new line and occupy the full width available (e.g., <div>, <p>).</a></span>

21
Q

What is the purpose of the <!DOCTYPE> declaration in HTML?

A

The <!DOCTYPE> declaration defines the document type and version of HTML being used, helping the browser to render the page correctly.

22
Q

What does the ‘contenteditable’ attribute do in HTML?

A

The ‘contenteditable’ attribute makes an element editable by the user, allowing for in-place editing of content (e.g., <div ‘contenteditable’=”true”>Edit me</div>).

23
Q

What are the ‘onblur’ and ‘onfocus’ attributes used for in HTML?

A

The onblur attribute is an event handler that is triggered when an element loses focus, while onfocus is triggered when an element gets focus.

24
Q

What is the purpose of the <canvas> element in HTML?</canvas>

A

The <canvas> element is used to draw graphics on the fly via scripting (usually JavaScript), such as rendering graphs, game graphics, or other visual images.</canvas>