weaknesses 1 Flashcards
What is the correct HTML for adding a background color?
- “<body bg="yellow">”
- <background>yellow</background>
- “<body style="background-color:yellow;">”
- “<body style="background-color:yellow;">”
What is the largest heading in html?
“<h1>”
Inline elements are normally displayed without starting a new line (True or False)?
True
”
What is the correct HTML for making a checkbox?
1.<input></input>
2. <check>
3. <checkbox>
4. <input></input>
"</checkbox></check>
1.”<input></input>”
What is the correct HTML for making a text input field?
”
1. <input></input>
2. <textfield>
3. <textinput>
4. <input></input>
"</textinput></textfield>
- “<input></input>”
What is the correct HTML for making a drop-down list?
“
1. <select>
2. <input></input>
3. <input></input>
4. <list>
"</list></select>
“1. <select>”</select>
What is the correct HTML for making a text area?
“
1. <textarea>
2. <input></input>
3. <input></input>
"</textarea>
1.” <textarea>"</textarea>
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>
“2. <body style="background-image:url(background.gif)">”
”
An <iframe> is used to display a web page within a web page.
- False
2.There is no such thing as an <iframe> - True
- True
Block elements are normally displayed without starting a new line.
- False
- True
- False
In HTML, you can embed SVG elements directly into an HTML page?
- False
- True
- True
What is the correct HTML element for playing video files?
“
1. <movie>
2. <video>
3. <media></media></video></movie>
- <video>
</video>
What is the correct HTML element for playing audio files?
- <sound>
</sound> - <mp3>
</mp3> - <audio>
</audio>
- <audio>
</audio>
The HTML global attribute, “contenteditable” is used to:
- Return the position of the first found occurrence of content inside a string
- Update content from the server
- Specifies a context menu for an element. The menu appears when a user right-clicks on the element
- Specify whether the content of an element should be editable or not
- Specify whether the content of an element should be editable or not
In HTML, onblur and onfocus are:
- HTML elements
- Event attributes
- Style attributes
- Event attributes
Graphics defined by SVG is in which format?
1.XML
2. HTML
3. CSS
1.XML
The HTML <canvas> element is used to:</canvas>
- manipulate data in MySQL
- display database records
- create draggable elements
- draw graphics
- draw graphics
Which input type defines a slider control?
- range
- slider
- controls
- search
- range
Which HTML element is used to display a scalar measurement within a range?
- <gauge>
</gauge> - <measure>
</measure> - <meter>
</meter> - <range>
</range>
- <meter>
</meter>
In HTML, what does the <aside> element define?
- The ASCII character-set; to send information between computers on the Internet
- Content aside from the page content
- A navigation list to be shown at the left side of the page
- Content aside from the page content
What is the difference between inline and block elements in HTML?
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>
What is the purpose of the <!DOCTYPE> declaration in HTML?
The <!DOCTYPE> declaration defines the document type and version of HTML being used, helping the browser to render the page correctly.
What does the ‘contenteditable’ attribute do in HTML?
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>).
What are the ‘onblur’ and ‘onfocus’ attributes used for in HTML?
The onblur attribute is an event handler that is triggered when an element loses focus, while onfocus is triggered when an element gets focus.
What is the purpose of the <canvas> element in HTML?</canvas>
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>