HTML Quizzes with Answers

⏱️ Estimated Reading Time: ~7 min read
0
(0)

HTML knowledge tests with answers

The correct answer is marked with a + sign.

1. What does the tag say28052023 ?

– Text enclosed in the tag will be centered on the page

– The text enclosed in the tag will be positioned along the left edge of the page.

+ Text enclosed in the tag will be centered on the page

2. What units of measurement can be used for the width attribute?

+ Pixels and %

– Millimeters and centimeters

– Pixels and millimeters

3. Using the … tag allows you to add one line of text without starting a new paragraph.

– <line/>

+ <br/>

– <td/>

4. Explain the meaning of the code below:

Test question: Explain the meaning of the code.

+ A table consisting of 1 row and 3 columns will be created

– A table consisting of 3 rows and 1 column will be created

– A table consisting of 2 rows and 3 columns will be created.

5. Write the HTML code that would create a button to submit the completed form. The button name is OK.

– <input type=”OK” value=”Submit”/>

– <p> input type=”submit” value=”OK”< /p>

+ <input type=”submit” value=”OK”/>

6. When creating a page, which tag adds the page name that will be displayed in the title bar of the user’s browser?

+ <title> … </title>

– <header> … </header>

– <body> … </body>

7. Fill in the fields to display the image “flower.jpg” with a height of 300 pixels and a width of 750 pixels:

– <img ref=”flower” format=.jpg

high=300 px

width=750 px />

– <src img=”flower.jpg”

height=”300%”

width=”750%”/>

+ <img src=”flower.jpg”

height=”300 px” alt=””

width=”750 px”/>

8. What does the href attribute contain?

+ URL of the page to which you will be redirected

– The name of the page to which you will be redirected

– Indicates whether the new page will open in the same window or a new one.

9. Which of the following tags are related to table creation?

– <header> <body> <footer>

+ <table> <tr> <td>

– <ul> <li> <tr> <td>

Test 10. Identify the tag that corresponds to the list item:

+ <li>

– <ul>

– <ol>

11. What does the following entry mean: <form action=”url” method=”POST”>?

– A form is created; when filled out, the entered data will be displayed

+ A form is created; when filled out, the entered data will not be displayed

– A form is created that will be used to enter information presented in the form of a link (URL)

12. What value should be set for the type attribute to make the input tag a form submission?

+ Submit

– Checkbox

– Radiobutton

13. To specify the dimensions of the <frameset> tag, the following attributes are required:

– Height and width

– Area and thickness of borders

+ Rows and columns

14. Choose the correct statement.

+ In HTML, colors are specified by a combination of hexadecimal values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, A, B, C, D, E, F

– In HTML, colors are specified by a combination of binary values: 0 or 1

– In HTML, colors are specified by a combination of octal values: 0, 1, 2, 3, 4, 5, 6, 7

15. What tags make text bold?

– <ins> and <del>

– <li> and <ul>

+ <b> and <strong>

16. What tags are used to define headings?

+ h1-h6

– Header

– Heading

17. Non-displayable comments in HTML are specified as follows:

– <! – Your comment -!>

+ <! – – Your comment – -!>

– <!p>Your comment</!p>

18. What does the code in the picture mean?

test question What does the code mean?

+ The link will be followed on a new page

– The link will be followed on the current page.

– The text “Learn Playing” will appear on the current page.

19. List the main content modules that exist in HTML 5.

– Image, Media, Metadata, Link, Heading, Color, Input Value

+ Metadata, Embedded, Interactive, Heading, Phrasing, Flow, Sectioning

– Flow, Static, Link, Header, Body, Footer, Processing, Chase

Test 20. Identify which HTML 5 element is responsible for video playback:

+ <video>

– <media>

– <movie>

21. The <canvas> element is used to:

– Attaching Excel tables

– Database data management

+ Graphics rendering

22. Which tag contains navigation?

+ <nav>

– <geo>

– <metanav>

23. SessionStorage is a client-side solution in HTML 5 that allows you to:

– Retrieve and use data from previous sessions, provided that cache and cookies have not been cleared

– Create a database of user decisions in the browser’s memory

+ Retrieve and use data from the current session only

24. What will be created when executing the following code:

<svg width=”75″ height=”75″>
<line x1=”50″ y1=”0″ x2=”50″ y2=”100″
style=”stroke: black” />
<line x1=”0″ y1=”50″ x2=”100″ y2=”50″
style=”stroke: black” />
</svg> ?

+ Plus sign

– Minus sign

– Equal sign

25. HTML 5 feature

– A world map integrated into the site’s core functionality

+ User location data

– Server location data

26. Fill in the blanks to create a valid HTML document. The “first paragraph” is a comment.

<___>

<body>

<! – – First paragraph ___>

<___> This is the first paragraph! </p>

<___>

</html>

– html/; – – ?; p; /body

– html v.5; – – !; /p; /body

+ html; – – !; p; /body

27. HTML is

+ Markup language

– Hypertext library

– Scripting language

28. Is it necessary to use the <html> … </html> tags?

+ Yes, without them, the browser will not recognize the HTML document

– Yes, if the HTML document is created in Notepad or another text editor. In a dedicated HTML compiler, you can omit these tags.

– Not necessarily.

29. Which attribute allows you to merge table cells vertically?

– Union

– Colspan

+ Rowspan

test_30. The permissible number of first-level headings in an HTML document is:

+ 1

– 3

– 7

31. The text in italics is presented in the following entry:

– <del> italic </del>

+ <i>italic </i>

– <hr> italic </hr>

32. There are no … tags in HTML.

– Singles

– Paired

+ Triple

33. When creating websites, the following encoding is used:

+ UTF8

– ASCII

– UTF-32

34. An HTML document can have extensions:

– .html

+.html or .htm

– .html or .txt

35. Specify deprecated tags for HTML 5.

+ <applet>, <blink>, <u>

– <ul>, <audio>, <pre>

– <code>, <s>, <embed>

36. A tag that connects scripts to an existing HTML document that are executed on the client side is:

– <object>

+ <script>

– <client>

37. What symbol marks the end of a tag?

– ^

– ;

+ /

38. A list in which the enumeration elements are marked with bullets allows you to create a tag:

+ <ul>

– <ol>

– <bl>

39. Specify the correct entry to create a checkbox:

– <input checkbox>

– <type input=”checkbox”>

+ <input type=”checkbox”>

Test*40. Specify the correct entry to create a drop-down list:

+ <input type=”dropdown”>

– <input dropdown list>

– <dropdown list>

41. Which HTML attribute specifies alternative text for an image if the image is not displayed?

– imgalt

– imgvar

+ alt

42. Which HTML tag is used to define the footer of a document or section?

+ <footer>

– <bottom>

– <section>

43. The HTML tag that allows you to play audio recordings is:

– <music>

+ <audio>

– <sound>

44. In HTML 5, onblur and onfocus are:

+ Event attributes

– Style attributes

– Database connection attributes

45. Graphics defined by SVG are displayed in the following format:

– CSS

– JSOM

+ XML

46. ​​What does the <aside> tag define?

+ Additional content, i.e., what is not included in the main document

– Link to the connected document

– Document color scheme

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?


Explore More IT Terms


Share this term: Facebook X LinkedIn WhatsApp Email

Leave a Reply

Your email address will not be published. Required fields are marked *