Which HTML element is used to create a hyperlink?
Correct answer:
B) <a>
Explanation: The <a> element is used to create hyperlinks in HTML, allowing users to navigate to other web pages or resources.
Which HTML element is used to create a hyperlink?
Correct answer:
B) <a>
Explanation: The <a> element is used to create hyperlinks in HTML, allowing users to navigate to other web pages or resources.
What attribute is required to specify the URL of a hyperlink?
Correct answer:
C) href
Explanation: The href attribute specifies the destination URL for the hyperlink created by the <a> tag.
Which HTML5 element is used to create a table cell containing data?
Correct answer:
A) <td>
Explanation: The <td> element is used to define table cells that contain data in an HTML table.
Which tag is used to group table header, body, and footer content in HTML?
Correct answer:
D) All of the above
Explanation: The <thead>, <tbody>, and <tfoot> tags group content for the header, body, and footer sections of a table.
Which HTML element is used to define a block of navigation links?
Correct answer:
A) <nav>
Explanation: The <nav> element defines a section of navigation links within a webpage.
Which attribute is used to associate a <label> with a form control?
Correct answer:
A) for
Explanation: The for attribute links a label with a form control by matching the id of the form control.
Which HTML attribute is used to specify an alternative text for images if the image fails to load?
Correct answer:
C) alt
Explanation: The alt attribute provides alternative text for images, helping improve accessibility and SEO.
Which HTML element is used to group related form controls and labels?
Correct answer:
B) <fieldset>
Explanation: The <fieldset> element groups related form controls and their labels, often with a border around them.
Which tag is used to define an ordered list in HTML?
Correct answer:
B) <ol>
Explanation: The <ol> tag is used to define an ordered (numbered) list, while <li> defines each list item.
What is the correct HTML element to define a paragraph?
Correct answer:
A) <p>
Explanation: The <p> element defines a paragraph in HTML, used to separate blocks of text.
Which attribute specifies the media type (screen, print, etc.) in a <link> tag for stylesheets?
Correct answer:
A) media
Explanation: The media attribute specifies which media type the linked stylesheet applies to, such as screen or print.
Which HTML tag is used to display a horizontal line across the page?
Correct answer:
B) <hr>
Explanation: The <hr> tag is used to create a horizontal rule or line to visually separate content.
Which tag is used to define a citation in HTML?
Correct answer:
A) <cite>
Explanation: The <cite> tag is used to reference the title of a work, such as a book or article.
Which HTML5 tag is used to embed an external resource like a webpage or a media player?
Correct answer:
B) <iframe>
Explanation: The <iframe> tag embeds external content, such as another webpage, into the current webpage.
Which CSS property is used to create space between the border of an element and its content?
Correct answer:
B) padding
Explanation: The padding property creates space between the content of an element and its border.
What CSS property is used to hide an element from the webpage while maintaining its space?
Correct answer:
A) visibility
Explanation: The visibility property hides the element from view but still maintains the elements layout space.
Which CSS property is used to specify the amount of space between grid columns?
Correct answer:
A) column-gap
Explanation: The column-gap property defines the space between grid columns in a grid layout.
What is the default value for the CSS position property?
Correct answer:
C) static
Explanation: The default position value in CSS is static, meaning elements are positioned according to the normal document flow.
Which CSS property is used to change the color of text?
Correct answer:
D) color
Explanation: The color property is used to set the text color in CSS.
Which CSS property controls the font size of text?
Correct answer:
C) font-size
Explanation: The font-size property controls the size of the text.
Which CSS property controls the display of elements as either block or inline?
Correct answer:
C) display
Explanation: The display property controls how an element is rendered, whether as a block-level or inline-level element.
Which HTML5 tag is used to define an area inside an image map?
Correct answer:
A) <area>
Explanation: The <area> tag defines a clickable area within an image map.
Which HTML5 tag defines metadata about an HTML document?
Correct answer:
A) <meta>
Explanation: The <meta> tag is used to provide metadata such as keywords, author information, and character sets for an HTML document.
Which tag is used to insert a line break in HTML?
Correct answer:
C) <br>
Explanation: The <br> tag inserts a line break, forcing the text after it to move to a new line.
Which HTML5 tag is used to represent user input from a keyboard?
Correct answer:
A) <kbd>
Explanation: The <kbd> tag is used to represent user input from a keyboard, often styled with monospace font.
Which CSS property is used to control the order in which elements are stacked when they overlap?
Correct answer:
A) z-index
Explanation: The z-index property controls the vertical stacking order of elements, with higher values appearing above lower values.
Which HTML attribute defines the default action to be performed by a form upon submission?
Correct answer:
B) action
Explanation: The action attribute specifies the URL where form data is sent when the form is submitted.
What does the CSS opacity property control?
Correct answer:
A) Transparency of the element
Explanation: The opacity property controls how transparent or opaque an element is, with 0 being fully transparent and 1 being fully opaque.
Which tag is used to define a header for a section in HTML5?
Correct answer:
C) <header>
Explanation: The <header> tag defines a header section, which typically contains headings, logos, or navigation elements.
What is the purpose of the defer attribute in the <script> tag?
Correct answer:
A) To execute the script after the document has been parsed
Explanation: The defer attribute ensures the script runs after the HTML document is fully parsed, improving page load performance.
Which CSS pseudo-class applies styles when a link is being clicked by the user?
Correct answer:
B) :active
Explanation: The :active pseudo-class applies styles to a link or element while it is being clicked by the user.
What does the autofocus attribute do for a form input element?
Correct answer:
A) Applies focus to the input element on page load
Explanation: The autofocus attribute automatically focuses the input field when the page is loaded.
Which CSS property is used to change the type of cursor displayed when hovering over an element?
Correct answer:
B) cursor
Explanation: The cursor property changes the appearance of the cursor when it hovers over an element.
Which tag is used to define a title for an HTML document, displayed in the browser tab?
Correct answer:
B) <title>
Explanation: The <title> tag defines the documents title, which appears in the browser tab or window title bar.
Which CSS property controls the order of items in a flex container?
Correct answer:
A) order
Explanation: The order property specifies the order of flex items within a flex container.
What HTML element is used to define a description list?
Correct answer:
A) <dl>
Explanation: The <dl> element defines a description list, with terms and descriptions defined using <dt> and <dd> tags.
Which CSS property is used to define the space between the content of an element and its border?
Correct answer:
B) padding
Explanation: The padding property defines the space between the elements content and its border.
What does the <progress> element represent in HTML?
Correct answer:
B) A progress bar
Explanation: The <progress> element represents a progress bar, used to show the completion of a task.
Which HTML element is used to display bold text without implying importance?
Correct answer:
B) <b>
Explanation: The <b> tag is used for bold text without adding semantic importance, unlike <strong>.
Which CSS property sets the width of an elements border?
Correct answer:
B) border-width
Explanation: The border-width property specifies the thickness of an elements border.
Which HTML attribute is used to specify the height of an element?
Correct answer:
A) height
Explanation: The height attribute is used to define the height of an element, typically in images and videos.
Which HTML element is used to embed external content, such as documents or media players?
Correct answer:
C) <object>
Explanation: The <object> tag embeds external resources, such as multimedia files, plugins, or other web pages.
What CSS property is used to define the space between lines of text?
Correct answer:
B) line-height
Explanation: The line-height property controls the vertical space between lines of text.
Which HTML5 element is used to define a figure caption?
Correct answer:
A) <figcaption>
Explanation: The <figcaption> tag defines a caption or description for the content within a <figure> element.
What is the default method used when submitting an HTML form?
Correct answer:
B) GET
Explanation: The default form submission method is GET, where form data is appended to the URL as a query string.
Which HTML element is used to define important text?
Correct answer:
A) <strong>
Explanation: The <strong> tag defines important text, semantically indicating that the text should have strong emphasis.
Which CSS property is used to change the appearance of text when hovering over it?
Correct answer:
A) text-decoration
Explanation: The text-decoration property can be used to change the appearance of text when it is hovered over, such as removing or adding an underline.
Which tag is used to create an option in a drop-down list?
Correct answer:
C) <option>
Explanation: The <option> tag creates individual options in a drop-down list, contained within a <select> element.
Which CSS property specifies the transparency of an elements background, text, or border?
Correct answer:
A) opacity
Explanation: The opacity property defines the transparency level of an element, where 0 is fully transparent and 1 is fully opaque.
What is the correct HTML5 syntax for inserting an image?
Correct answer:
B) <img src="image.jpg" alt="image description">
Explanation: The correct syntax for inserting an image in HTML5 is using the <img> tag with the src and alt attributes.
If this exam is giving you a hard time, let us be your helping hand. Contact us, and we'll provide the assistance you need to pass and move forward.