Q1. What is the purpose of the <track> tag, and when should it be used?
[ ] The <track> tag is used for specifying subtitles. It is typically applied as a child of the <audio> and <video> tags.
[ ] The <track> tag is used for specifying subtitles. It is typically applied as a child of the <video> tag.
[ ] The <track> tag is used for specifying subtitles, captions, and other types of time-based text. It is typically applied as a child of the <video> tag.
[x] The <track> tag is used for specifying subtitles, captions, and other types of time-based text. It is typically applied as a child of the <audio> and <video> tag.
Q2. What are the best examples of void elements?
[ ] <link><meta><title>
[x] <br><base><source>
[ ] <input><br><p>
[ ] <area><embed><strong>
Q3. In HTML5, which tag or tags embed a webpage inside of a webpage?
[ ] <iframe>, <frame>, and <frameset>
[ ] <frame>
[x] <iframe>
[ ] <frame> and <frameset>
Q4. Where do <header> and <footer> tags typically occur?
[ ] as children of <body>, <article>, <aside>, and <section> tags
[x] as children of <body>, <article>, and <section> tags
[ ] as children of <body>, <article>, <aside>, <nav>, and <section> tags
[ ] as children of <body>, <article>, <table>, and <section> tags
Q5. What is the best way to apply bold styling to text?
[x] <strong>
[ ] Use CSS.
[ ] <bold>
[ ] <b>
Q6. When is the <link> tag used?
[ ] when linking style sheets, JavaScript, and icons for mobile apps
[x] when linking style sheets, favicons, and preloading assets
[ ] when linking one webpage to another
[ ] when linking style sheets, external URLs, and favicons
Q7. What should fill the two blanks in the HTML code below?
<address___________> <spanitemprop="streetAddress">6410 Via Real</span><br /> <spanitemprop="addressLocality">Carpinteria</span>, <spanitemprop="addressRegion">CA</span> <spanitemprop="addressCode">93013</span> </address>
[x] when the content can be removed without detracting from the page’s message
[ ] for anything you want to move to the side, like a pull quote box, a sidebar, or an image with text wrapping around it
[ ] for anything in parentheses
[ ] for anything in a sidebar
Q9. With which tags is the <source> element associated?
[ ] <svg>, <picture>, <audio>, and <video>
[x] <picture>, <audio>, and <video>
[ ] It is interchangeable with the src attribute, so any element which uses src may use <source>
[ ] <audio> and <video>
Q10. What is NOT a valid attribute for the <textarea> element?
[ ] readonly
[x] max
[ ] form
[ ] spellcheck
Q11. What is the best way to code the sample shown?
[ ] A
<details> <summary>Parmesan Deviled Eggs</summary> <p> These delectable little bites are made with organic eggs, fresh Parmesan, and chopped pine nuts. </p> </details>
[ ] B
<h4>▸ Parmesan Deviled Eggs</h4> <p> These delectable little bites are made with organic eggs, fresh Parmesan, and chopped pine nuts. </p>
[x] C
<detailsopen> <summary>Parmesan Deviled Eggs</summary> <p> These delectable little bites are made with organic eggs, fresh Parmesan, and chopped pine nuts. </p> </details>
[ ] D
<details> <h4>▸ Parmesan Deviled Eggs</h4> <p> These delectable little bites are made with organic eggs, fresh Parmesan, and chopped pine nuts. </p> </details>
Q12. What is the purpose of the <samp> element?
[ ] It connects the web browser to a SA-MP server.
[ ] It identifies enclosed text as a sampler or an example.
[x] It identifies sample output from a computer program.
[ ] It uses a simple application messaging protocol to connect the browser to a texting device.
Q13. When should you use <ol> and <ul> elements?
[x] Use <ul> when you want a bulleted list and <ol> when you want a numbered list.
[ ] Use <ul> when you have a list of items in which the order of the items matters. Use <ol> when you have a list of items that could go in any order.
[ ] Use <ol> when you want a bulleted list and <ul> when you want a numbered list.
[ ] Use <ol> when you have a list of items in which the order of the items matters. Use <ul> when you have a list of items that could go in any order.
Q14. What is the difference between the post and get methods in a form?
[ ] post is used for sending information to the server. get is used for retrieving form information from the server.
[ ] get is used for sending information to the server. post is used for retrieving form information from the server.
[ ] With get, data is included in the form body when send to the server. With post, the data goes through the URL.
[x] With post, data is included in the form body when send to the server. With get, the data goes through the URL.
Q15. What is the difference between the <div> and <span> tags?
[x] <div> is used where a generic block-level tag is needed, while <span> is used where a generic inline tag is needed.
[ ] <div> is used for major divisions on a page, while <span> is used to span across columns.
[ ] <div> is the industry-standard default tag, but you could use <span> if you prefer.
[ ] <div> is used where a generic inline tag is needed, while <span> is used where a generic block-level tag is needed.
Q16. What should fill the blank in the HTML code below?
Q17. What is the correct markup for alt attribute of an image?
[ ] A
<imgsrc="cubism.jpg"alt="Version of ""Whistler'sMother"" incubiststyle">
[ ] B
<imgsrc="cubism.jpg"alt="Version of "Whistler'sMother" incubiststyle">
[x] C
<imgsrc="cubism.jpg"alt='Version of "Whistler\'sMother" incubiststyle'>
[ ] D
<imgsrc="cubism.jpg"alt="Version of \"Whistler'sMother\" incubiststyle">
Q18. In the code below, what is the purpose of the id attribute?
<pid="warning">Be careful when installing this product.</p>
[x] It establishes that id is a unique identifier in the document, used for styling CSS, scripting, and linking within a webpage.
[ ] It establishes that id is a unique identifier in the document, used for styling CSS and with Javascript code.
[ ] It establishes that id may be used for styling CSS several times per page.
[ ] It establishes that id is a unique identifier in the website, used for styling CSS, scripting, and linking within a webpage.
Q19. What is the best semantic markup for the sentence shown?
On July 21, 1969, Neil Armstrong said, "One small step for man, one giant leap for mankind."
[x] A
<p> On <timedatetime="1969-07-21">July 21, 1969</time>, Neil Armstrong said, <qcite="https://www.hq.nasa.gov/alsj/a11l/a11.html" >One small step for man, one giant leap for mankind.</q > </p>
[ ] B
<p> On July 21, 1969, Neil Armstrong said, <qcite="https://www.hq.nasa.gov/alsj/a11l/a11.html" >"One small step for man, one giant leap for mankind."</q > </p>
[ ] C
<p> On July 21, 1969, Neil Armstrong said, <q>"One small step for man, one giant leap for mankind."</q> </p>
[ ] D
<p> On <timedatetime="07-21-1969">July 21, 1969</time>, Neil Armstrong said, <qcite="https://www.hq.nasa.gov/alsj/a11l/a11.html" >One small step for man, one giant leap for mankind.</q > </p>
Q20. What should fill the blank in this HTML code?
Q26. What is the <hr>tag typically used for? / Alt.: What is the semantic meaning of the <hr> tag?
[ ] This tag is depreciated (alt.: deprecated) and should not be used.
[x] It designates a topic shift within a section at the paragraph level.
[ ] It draws a horizontal line.
[ ] It designates a shift of topic at the section level. / Alt.: It designates a separation of sections within an <article>.
This is a confusing question and there can be an arguments for both the second and the third options being correct.
MDN: The HTML <hr> element represents a thematic break between paragraph-level elements. Historically, this has been presented as a horizontal rule or line. While it may still be displayed as a horizontal rule in visual browsers, this element is now defined in semantic terms, rather than presentational terms, so if you wish to draw a horizontal line, you should do so using appropriate CSS.
Q27. What should fill the two blanks in the HTML code below?
<sectionitemscopeitemtype="http://schema.org/Restaurant"> <h1itemprop="name">Nadia's Garden</h1> <pitemscope____________> <spanitemprop="ratingValue">4.5</span> stars - based on <spanitemprop="reviewCount">120</span> reviews </p> </section>
Q36. What is the semantically correct way to mark up this layout?
[ ] A
<p> "Making money is what you have to do to sustain a business—being driven to make something of value and purpose is much more powerful." </p> <p><em>Lynda Weinman</em></p>
[ ] B
<blockquote> <q >"Making money is what you have to do to sustain a business—being driven to make something of value and purpose is much more powerful."</q > <cite><em>Lynda Weinman</em></cite> </blockquote>
[x] C
<blockquote> <p> "Making money is what you have to do to sustain a business—being driven to make something of value and purpose is much more powerful." </p> <cite>Lynda Weinman</cite> </blockquote>
[ ] D
<section> <q >"Making money is what you have to do to sustain a business—being driven to make something of value and purpose is much more powerful."</q > <cite>Lynda Weinman</cite> </section>
Q37. Which choice uses the correct terminology in describing this markup: <p>info</p>?
[ ] The element opener is <p>, the element closer is </p>, and the element information is info.
[ ] The start tag is <p>, the end tag is </p>, and the enclosed HTML is info.
[x] The start tag is <p>, the end tag is </p>, and the element content is info.
[ ] The start element is <p>, the end element is </p>, and the tag content is info.
Q38. What is the difference between <input type="submit" value="click me"> and <button type="submit">Click me</button>?
[ ] There is no difference. Both will render a button that submits a form.
[x] Both will submit a form. However, the <button> can have content other than text, like an image or nested HTML elements, while the <input> cannot.
[ ] <input type="button"> has been deprecated in HTML5. You should use the <button> tag instead.
[ ] Both will submit a form. However, the <input> can have content other than text, like an image or nested HTML elements, while the <button> cannot.
Q39. What is the best semantic way to indicate that text refers to keyboard entry?
[ ] <p>Press the <tt>Enter</tt> key to proceed.</p>
[x] <p>Press the <kbd>Enter</kbd> key to proceed.</p>
[ ] <p>Press the <samp>Enter</samp> key to proceed.</p>
Q43. Which tag is the root element of an HTML document?
[ ] <DOCTYPE html>
[x] <html>
[ ] <body>
[ ] <root>
The <html> tag is the root element of an HTML document, which means that it contains all the contents and tags of the HTML document within it. The html element represents the root of a document.
Q76. Which choice is the best way to mark up this layout?
[x] A
<h4>Mailing Address</h4> <address> 6410 Via Real <br /> Carpinteria, CA 93013<br /> <ahref="mailto:info@linkedin.com">info@linkedin.com</a> </address>
[ ] B
<h4><strong>Mailing Address</h4> <address><em> 6410 Via Real <br> Carpinteria, CA 93013<br> <ahref="mailto:info@linkedin.com">info@linkedin.com</a> </em></address>
[ ] C
<h4>Mailing Address</h4> <p> <em> 6410 Via Real <br /> Carpinteria, CA 93013<br /> <ahref="mailto:info@linkedin.com">info@linkedin.com</a> </em> </p>
[ ] D
<p><strong>Mailing Address</strong></p> <p> <em> 6410 Via Real <br /> Carpinteria, CA 93013<br /> <ahref="mailto:info@linkedin.com">info@linkedin.com</a> </em> </p>
The <address> tag defines the contact information for the author/owner of a document or an article. The contact information can be an email address, URL, physical address, phone number, social media handle, etc. The text in the <address> element usually renders in italic, and browsers will always add a line break before and after the <address> element.
Q77. What is the primary purpose of HTML?
[x] HTML structures the webpage, identifying its elements such as paragraphs, headings, and lists.
[ ] HTML structures and provides a rudimentary look to webpages.
[ ] HTML is responsible for the structure, styling, and interactivity of webpages.
[ ] HTML is responsible for the structure and styling of webpages.
Q78. For the HTML code below, when will “Sample Text” display to the browser?
<noscript>Sample Text</noscript>
[ ] when there is no JavaScript used on this webpage
[x] when JavaScript is not supported by the browser or if JavaScript is disabled in the browser
[ ] when JavaScript is disabled in the web browser
[ ] when JavaScript is not supported by the web browser
Q79. How will this code render by default in most web browsers?
<details> <h4>Mixed Berry Tart.</h4> <p> Raspberries, blueberries, and strawberries on top of a creamy filling served in a crispy tart. </p> </details>
[x] A

[ ] B

[ ] C

[ ] D

Q80. What is the difference between the <svg> and <canvas>?
[x] <svg> produces vector graphics, while <canvas> produces raster graphics.
[ ] <svg> integrates with JavaScript, while <canvas> does not.
formaction — The URL that processes the information submitted by the button. Overrides the action attribute of the button's form owner. Does nothing if there is no form owner.Source
Q84. Which is the best markup to produce this text?
x<y&z>w
[ ] <p>x<y&z>w</p>
[x] <p>x\<y&z\>w</p>
[ ] <p>x<<y&&z>>w
[ ] <p>x<y&z>w</p>
This question has an issue, however this answer will count as correct It's too strange question because all of that methods doesn't work. The good method is &, <, > using.
[ ] The <label> and <input> should be nested inside of a <fieldset> element.
[ ] “address” is not a valid value for the attribute name on an <input> element.
[ ] The <label> element is missing an id set to “address-input”.
[x] The <label> element is missing a for attribute set to “address-input”.
Q86. What is the default method for form submission?
[x] GET
[ ] POST
[ ] PUT
[ ] SUBMIT
Q87. Which is the most semantically correct markup for a side comment in small print?
[x] <p> Get 10% discount <small>not valid in France</small></p>
[ ] <p> Get 10% discount <!--not valid in France--> </p>
[ ] <p> Get 10% discount <comment>not valid in France</comment></p>
[ ] <p> Get 10% discount <aside>not valid in France</aside></p>
Q88. Which choice will produce the spanish word canción?
[x] <p lang="es">canción</p>
[ ] <p lang="es">canción</p>
[ ] <p lang="es">cancio'n</p>
[ ] <p lang="es">canci'on</p>
Q89. What is the purpose of <caption>?
[ ] <caption> provides captions for <audio>,<video>,<img>, and <table>.
[x] <caption> provides captions to <table>.
[ ] <caption> provides captions for <audio>, <video>, and <table>.
[ ] <caption> provides captions for <img>, <audio>, and <video>.
Q90. The value attribute is associated with which set of tags ?
[x] A
<li> <input /> <option></option> </li>
[ ] B
<input> <option> <textarea>
[ ] C
<button> <input /> <form></form> </button>
[ ] D
<input /><label><meter></meter></label>
Q91. What is wrong with this code?
<img src="https://source.unsplash.com/random">
[ ] <img> should be paired with a <caption> tag.
[x] The <img> element is missing an alt attribute.
[ ] <img> is not a valid HTML element. Instead, use <image src="..."/>.
[ ] <img> should be nested within a <figure> tag.
Q92. Which choice is the most semantically correct markup for specifying the first definition of a term?
[ ] <p>The <dl>focal length</dl> of a lens gives the distance from the lens to the image sensor.</p>
[x] <p>The <dfn>focal length<dfn> of a lens gives the distance from the lens to the image sensor.</p>
[ ] <p>The <dt>focal length</dt> of a lens gives the distance from the lens to the image sensor.</p>
[ ] <p>The <dd>focal length</dd> of a lens gives the distance from the lens to the image sensor.</p>
Definitionelement => The <dfn> HTML element is used to indicate the term being defined within the context of a definition phrase or sentence. **Description Term element => The <dt> HTML element specifies a term in a description or definition list, and as such must be used inside a <dl> element. **Description Details element =>The <dd> HTML element provides the description, definition, or value for the preceding term (<dt>) in a description list (<dl>).
<input> elements of type checkbox are rendered by default as boxes that are checked (ticked) when activated, like you might see in an official government paper form. The exact appearance depends upon the operating system configuration under which the browser is running. Generally this is a square but it may have rounded corners.
Q96. Given the following requirements, select the correct input configuration: An input that allows the user to select from a range of integer values between 0 and 100 (inclusive) in increments of 5
<input> elements of type range let the user specify a numeric value which must be no less than a given value, and no more than another given value. The step attribute is a number that specifies the granularity that the value must adhere to.
The <head> HTML element contains machine-readable information (metadata) about the document, like its title.The <data> tag is used to add a machine-readable translation of a given content. Source 1/ Source 2
Q98. You need to add comments to the company blog. What is the most semantic markup for a list of comments?
The <article> HTML element represents a self-contained composition in a document, page, application, or site, which is intended to be independently distributable or reusable (e.g., in syndication). Example:a user-submitted comment. Source
Q99. To make something editable by the user, you need to set the _ attribute to _
[ ] access; allow
[ ] designMode; true
[x] contenteditable; true
[ ] contenteditable; yes
The contenteditable global attribute is an enumerated attribute indicating if the element should be editable by the user. If so, the browser modifies its widget to allow editing. The attribute must take one of the following values: true or an empty string, which indicates that the element is editable; false, which indicates that the element is not editable. Source
Q100. Which choice is the standard way to include a value in a form without making it visible to or editable by the user?
<input> elements of type hidden let web developers include data that cannot be seen or modified by users when a form is submitted. For example, the ID of the content that is currently being ordered or edited, or a unique security token. Hidden inputs are completely invisible in the rendered page, and there is no way to make it visible in the page's content.Source
Q101. What is the semantic way to add an identifying title to a table?
[ ] <table><label>Heading</label>...</table>
[ ] <table><title>Heading</title>...</table>
[ ] <table><legend>Heading</legend>...</table>
[x] <table><caption>Heading</caption>...</table>
The <caption> HTML element specifies the caption (or title) of a table.Source
Q102. Which image file referenced in this img element’s srcset attribute should a browser on a small mobile phone load?
The browser will: 1. Look at its device width. 2. Work out which media condition in the sizes list is the first one to be true. 3. Look at the slot size given to that media query. 4. Load the image referenced in the srcset list that has the same size as the slot or, if there isn't one, the first image that is bigger than the chosen slot size.Source
Q103. Which description is coded correctly?
[x] A
<dl> <dt>Server</dt> <dd>Software used to serve webpages, like Apache.</dd> <dd>Hardware used to provide data to other computers.</dd> <!-- Other terms and descriptions --> </dl>
[ ] B
<dt> <dl>Server</dl> <dd>Software used to serve webpages, like Apache.</dd> <dd> Hardware used to provide data to other computers.</dd> <!-- Other terms and descriptions --> </dt>
[ ] C
<dl> <dt>Server</dt> <dd>Software used to serve webpages, like Apache.</dd> <dt>Hardware used to provide data to other computers.</dt> <!-- Other terms and descriptions --> </dl>
[ ] D
<dl> <dd>Server</dd> <dt>Software used to serve webpages, like Apache.</dt> <dt>Hardware used to provide data to other computers.</dt> <!-- Other terms and descriptions --> </dl>
A disabled fieldset is unusable and un-clickable. Source
Q109. Which description list is coded correctly?
[x] A
<dl> <dt>Server</dt> <dd>Software used to server webpages, like Apache.</dd> <dd>Hardware used to provide data to other computers.</dd> <!--Other terms and descriptions --> </dl>
[ ] B
<dl> <dd>Server</dd> <dt>Software used to server webpages, like Apache.</dt> <dt>Hardware used to provide data to other computers.</dt> <!--Other terms and descriptions --> </dl>
[ ] C
<dt> <dl>Server</dl> <dd>Software used to server webpages, like Apache.</dd> <dd>Hardware used to provide data to other computers.</dd> <!--Other terms and descriptions --> </dt>
[ ] D
<dl> <dt>Server</dt> <dd>Software used to server webpages, like Apache.</dd> <dt>Hardware used to provide data to other computers.</dt> <!--Other terms and descriptions --> </dl>
Q110. what does the a in the html a tag stands for?
Q124. A white paper has a sidebar and endnotes, both of which are complementary to the main text. How would you mark them up to make their distinct roles more broadly accessible?
Q125. A white paper has a sidebar and endnotes, both of which are complementary to the main text. How would you mark them up to make their distinct roles more broadly accesible?