w3schools HTML quiz

Ace your homework & exams now with Quizwiz!

9. Which character is used to indicate an end tag? ^ / < *

/

8. What is the correct HTML for creating a hyperlink? <a href="http://www.w3schools.com">W3Schools</a> <a>http://www.w3schools.com</a> <a name="http://www.w3schools.com">W3Schools.com</a> <a url="http://www.w3schools.com">W3Schools.com</a>

<a href="http://www.w3schools.com">W3Schools</a>

40. Which HTML element is used to specify a header for a document or section? <section> <head> <header> <top>

<header>

15. What is the correct HTML for making a checkbox? <checkbox> <input type="checkbox"> <input type="check"> <check>

<input type="checkbox">

37. Which HTML element is used to display a scalar measurement within a range? <gauge> <measure> <range> <meter>

<meter>

38. Which HTML element defines navigation links? <navigate> <navigation> <nav>

<nav>

13. How can you make a numbered list? <ol> <ul> <dl> <list>

<ol>

24. Which HTML element defines the title of a document? <head> <title> <meta>

<title>

2. Who is making the Web standards? Mozilla The World Wide Web Consortium Microsoft Google

The World Wide Web Consortium

25. Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed? title src longdesc alt

alt

36. Which input type defines a slider control? range controls slider search

range

18. What is the correct HTML for making a text area? <textarea> <input type="textarea"> <input type="textbox">

<textarea>

32. In HTML, onblur and onfocus are: Style attributes HTML elements Event attributes

Event attributes

23. Block elements are normally displayed without starting a new line.

False

1. What does HTML stand for? Home Tool Markup Language Hyperlinks and Text Markup Language Hyper Text Markup Language

Hyper Text Markup Language

31. The HTML global attribute, "contenteditable" is used to: Specifies a context menu for an element. The menu appears when a user right-clicks on the element Return the position of the first found occurrence of content inside a string Update content from the server Specify whether the content of an element should be editable or not

Specify whether the content of an element should be editable or not

26. Which doctype is correct for HTML5? <!DOCTYPE html> <!DOCTYPE HTML5> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN" "http://www.w3.org/TR/html5/strict.dtd">

<!DOCTYPE html>

10. How can you open a link in a new tab/browser window? <a href="url" target="_blank"> <a href="url" target="new"> <a href="url" new>

<a href="url" target="_blank">

20. What is the correct HTML for inserting a background image? <body bg="background.gif"> <body style="background-image:url(background.gif)"> <background img="background.gif">

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

4. What is the correct HTML element for inserting a line break? <br> <lb> <break>

<br>

27. Which HTML element is used to specify a footer for a document or section? <section> <footer> <bottom>

<footer>

3. Choose the correct HTML element for the largest heading: <h6> <head> <heading> <h1>

<h1>

19. What is the correct HTML for inserting an image? <img href="image.gif" alt="MyImage"> <img src="image.gif" alt="MyImage"> <img alt="MyImage">image.gif</img> <image src="image.gif" alt="MyImage">

<img src="image.gif" alt="MyImage">

16. What is the correct HTML for making a text input field? <textfield> <textinput type="text"> <input type="text"> <input type="textfield">

<input type="text">

6. Choose the correct HTML element to define important text <i> <strong> <b> <important>

<strong>

11. Which of these elements are all <table> elements? <table><tr><tt> <thead><body><tr> <table><head><tfoot> <table><tr><td>

<table><tr><td>

14. How can you make a bulleted list? <dl> <list> <ol> <ul>

<ul>

29. What is the correct HTML element for playing video files? <movie> <video> <media>

<video>

39. In HTML, what does the <aside> element define? Content aside from the page content A navigation list to be shown at the left side of the page The ASCII character-set; to send information between computers on the Internet

Content aside from the page content

12. Inline elements are normally displayed without starting a new line.

True

21. An <iframe> is used to display a web page within a web page. True There is no such thing as an <iframe> False

True

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

True

33. Graphics defined by SVG is in which format? HTML XML CSS

XML

34. The HTML <canvas> element is used to: draw graphics manipulate data in MySQL create draggable elements display database records

draw graphics

35. In HTML, which attribute is used to specify that an input field must be filled out? required placeholder formvalidate validate

required

17. What is the correct HTML for making a drop-down list? <select> <list> <input type="list"> <input type="dropdown">

<select>

30. What is the correct HTML element for playing audio files? <sound> <audio> <mp3>

<audio>

5. What is the correct HTML for adding a background color? <body bg="yellow"> <body style="background-color:yellow;"> <background>yellow</background>

<body style="background-color:yellow;">

7. Choose the correct HTML element to define emphasized text <i> <italic> <em>

<em>

22. HTML comments start with <!-- and end with -->

True


Related study sets

Criminal Procedure: Adjudication

View Set