HTML review(updated)correct answers 2023
HTML review(updated)correct answers 2023Why is web or browser programming broken up into three parts? to be resilient to changes in technology Which is the most powerful and fragile of the browser programming languages? Javascript What happens when HTML is broken because of a bug in the code? The browser guesses what you meant, and does its best to fix the bug itself. Which two elements are used to mark-up subscript and superscript text? sub and sup to show date and time time datetime=""October 8, 2025/time Which tag preserves the spaces, tabs, and line breaks within a piece of text so a poem or piece of code can be presented faithfully? pre Which elements are used to mark-up code on screen? pre and code Which type of element is typically a block? p What's a true statement about the difference between the blockquote element and the q element? blockquote is a block-level element, while the q element is inline, nested inside another block-level element. In the tag below, what do we call "datetime"? time datetime="" March, 7, 2024/time an attribute Which is a true statement about HTML lists? Lists can be used to mark up navigation. When we want to convey importance, seriousness, or urgency, which element do we use? strong Which elements are used to convey meaning, instead of just typesetting convention? em and strong Which of these attributes is NOT a global attribute? datetime When should we use an ARIA attribute? any time the existing markup makes things confusing in the accessibility tree What sort of efforts require the use and understanding of ARIA attributes? those involving accessibility issues Which syntax can we use to add comments to our HTML? !-- comment -- Which code would you use to guarantee that the words "Hocus Pocus" are not split by a line break after "Hocus"? Hocus Pocus what is any time you want characters to appear as simple text instead of being parsed as code How does the id attribute differ from the class attribute? An id attribute name may only be used once in a document. Which HTML elements are commonly used in marking up navigation? nav, ul, li, a When might we use a relative URL instead of an absolute URL? when a website might be moved from a staging server to a production server If you want to create a compact image that can display in large sizes without pixelation, which should you choose? SVG If you want to keep a caption with an image, which combination of elements lets you identify them as connected? Surround the image with a figure element, and use the figcaption element inside of figure. What is the most effective way to use bandwidth efficiently when sending images? Create a set of options the browser can choose from using the srcset attribute. What do you need to change to move from a resolution-based srcset to a width-based srcset? Provide pixel measurements (w) instead of 1x, 2x, etc. What are the four attributes we want to include on every img element? src, alt, height, width Why should you spend effort optimizing image sources and corresponding display attributes? to have the best compromise between image quality and download speed Why should you include the height and width specifications for all images? to make the page layout more efficient Which format is best suited to handle complex drawings and logos? SVG Why would you want to use the w specification in srcset instead of the x specification? to consider both display density and window width when choosing the image source How do you create a video element that specifies different resolutions of video that browsers can choose from when loading the video? You can't do this. Instead, the browser adapts to circumstances as needed. What should you do to create an audio player with controls? Use the audio element with the controls attribute set to yes. How can you mark a quotation as being in a different language from its surrounding text? Create a blockquote element with a lang attribute indicating the language for its contents. What is the difference between the usage of div and span? div is used for blocks, and span is used for a part of a line. Why do you need to specify the desired language for HTML content? so correct dictionaries and pronunciations are used
Información del documento
- Subido en
- 5 de febrero de 2023
- Número de páginas
- 4
- Escrito en
- 2022/2023
- Tipo
- Examen
- Contiene
- Preguntas y respuestas