WGU D276 Web Development Foundations Exam Questions and Answers
What required form attribute specifies the manner in which the browser will send form data to a web server? - Method This required form attribute specifies the name and location of the CGI script used to process the form - Action What form method attribute value instructs the browser to append the form data to the URL for use in a query string? - Get What form method attribute value allows sending more characters and is slightly more secure when submitting a Web-based form? - Post In HTML, what is a container? - Part of a web document body that has opening and closing tags In HTML, what is a parent container - A container in which another element resides HTML elements that are containers - footer, header, section, and span A block element with no semantic meaning - div WHat type of HTML element fills the minimum space possible in the parent container and can only contain text of other elements of this type? - Inline Element Generic HTML element that creates inline containers to facilitate the managing content on a webpage. Has no semantic meaning - span What types of elements can be insides a block element? - Inline and block elements What types of elements can be insides an inline element? - Inline elements What HTML element do we use to facilitate information gathering for submission to a server? - form What HTML attribute should be used if a form field contains binary data that the normal format of the query string is not sufficient to encode? - Enctype Five primary attributes for a input element - id, name, type, value, placeholder What is the input type attribute value of a text box widget? - text Which HTML element should be used to produce a submit button widget in form? - input Which input attribute allows the input to start with a default value? - value Which input attribute provides a hint to the user about the information being requested? - placeholder Which attribute inside the label element is used to associate the label with a widget? - for True of false? An option element must have a value attribute. - False Which element can create a button with an image? - button Four input types that exist for entering specific types of text. - email, search, tel, url Audio formats supported by nearly all web browsers - AAC, MP3 Correct HTML for referring to an external style sheet - link rel="stylesheet" type="text/css" href="" Where in an HTML document is the correct place to refer to an external style sheet? - In the head section Which HTML tag is used to define an internal style sheet? - style Which HTML attribute is used to define inline styles? - style Which is the correct CSS syntax? - body {color:black;} How to insert CSS comment - /* this is a comment */ Which property is used to change the background color? - background-color Property used to add a background color for h1 elements? - h1 {background-color:#FFFFFF;} Which CSS property is used to change the text color of an element? - color Which CSS property controls the text size? - font-size CSS syntax that makes all the p elements bold - p {font-weight:bold;} How do you display hyperlinks without an underline? - a {text-decorations:none;} How do you make each word in a text start with a capital letter? - text-transform:capitalize Which property is used to change the font of an element? - font-family How to make the text bold - font-weight:bold; How to display a border. - boder-width:top border, right, bottom, left (px) How to change the left margin of an element. - margin-left Can you use negative values when using the padding property? - No How do you make a list that lists its' items with squares? - list-style-type: square; How do you select an element with id 'demo'? - #demo How do you select elements with class name 'test'? - .test How do you select all p elements inside a div element? - div p How do you group selectors? - Separate each selector with a comma What is the default value of the position property? - static Correct HTML for adding a yellow background color? - body style="background-color:yellow;" HTML element to define important text - strong HTML element used to define emphasized text? - em Correct HTML for creating a hyperlink - a href=""W3Schools/a HTML used to open a link in a new tab/browser window. - a href="url" target"_blank" HTML table elements - table, tr, td True or false? Inline elements are normally displayed without starting a new line. - True How to make a numbered list in HTML? - ol How to make a bulleted list in HTML? - ul What is the correct HTML for making a checkbox? - input type="checkbox" HTML for making a text input field? - input type="text" HTML for making a drop-down list? - select HTML for creating a text area? - input type="textbox" HTML for inserting an image? - img src="" alt="MyImage" HTML for inserting a background image? - body style="background-image:url()" True of false? An iframe is used to display a web page within a web page. - True True of false? Block elements are normally displayed without starting a new line - False HTML attribute that specifies an alternate text for an image if the image cannot be displayed? - alt Which doctype is correct for HTML5? - !DOCTYPE html HTML element used to specify a footer - footer True of false? In HTML, you can embed SVG elements directly into an HTML page. - True HTML element for playing video files? - video HTML element for playing audio files? - audio HTML global attribute, "contenteditable" is used to: - Specify whether the content of an element should be editable or not In HTML, onblur and onfocus are: - Event attributes Graphics defined by SVG is in which format? - XML The HTML canvas element is used to: - draw graphics In HTML, which attribute is used to specify that an input field must be filled out? - required Which input type defines a slider control? - range Which HTML element is used to display a scalar measurement within a range? - measure HTML element that defines navigation links? - nav In HTML, what does the aside element define? - Content aside from the page content The ___ element is used to contain meta tags, links to style sheets, and the title element - head/head The ___ declaration identifies the version of HTML used to create the webpage. - doctype The ___ element is used to specify information about the document, such as a character set, author, and viewport. - meta The ___ element contains the entire document code. - html/html The ___ element identifies the document title - title/title The ___ element contains all visible webpage content - body/body True or False? HTML comments should be used to inform others about important elements used with in the webpage code. - True True or False? HTML comments should be used to ensure that the addition of random white space will not affect rendering in browsers - False True or False? HTML comments can be used to remind yourself why you inserted a particular piece of code. - True True or False? HTML comments can be used to disable code to see how a page will appear without a particular markup element. True - True Which of the following are examples of empty, or void, element tags? - br hr img... meta According to the HTML Living Standard, what defines the minimal parts of an HTML document? - !DOCTYPE html, html, head, meta, title, and body To see how a webpage is constructed, a user can view the page source in the browser - True In web development, what is a deprecated feature? - Part of a language that is officially discouraged because newer or better features exist. True or false? Whitespace is an unprinted character such as the spaces between words and lines of text - True True or false? Good practice is to use the br, or line break, element to add space or control formatting of a webpage - False True or false? The br tag has a closing tag. - False How many heading element tags are there? - 6 Which HTML element should be nested within a ul.../ul or ol.../ol element for each item in a list? - li/li True or false? An ordered list (ol.../ol) should be used for a bulleted list of items. - False Which CSS property should be used to change the bullet used in an unordered list and offers more numbering options in an ordered list? - list-style-type What is an HTML structure that allows data to be organized in rows and columns? - table.../table Which HTML element creates a table row, which contains all of the row cells? - tr.../tr A table cell can be forced to span multiple columns within a table when a ___ attribute is used - colspan If I want the content within a table cell (td.../td) to span multiple rows of a table, I should use the ___ attribute - rowspan Select the three optional table tags that browsers may use to allow scrolling of the table body independently from the table header and table footer. - tbody tfoot thead True or false? The img element is a void element with no closing tag. - True Which img attribute is not mandatory but to include it is a best practice? - src What HTML element is used to include a picture in a webpage? - img True or false? The width attribute and height attribute are optional img attributes that tell the browser how many pixels the image should occupy. - True Select the three popular image formats supported by web browsers - GIF, JPEG, PNG This is a small icon that identifies a website and typically displays in a browser tab - favicon True or false? The anchor element (a.../a) defines a hyperlink in a webpage - True rue or false? A absolute URL specifies the relative path to the web resource with no scheme or hostname. False - False True or false? Hyperlinks can only contain text - False True or false? The target attribute can be used on image links - True True or false? The web browser will always create a new window for hyperlinks whose target attribute is _blank - False True or false? An HTML entity always begins with an ampersand (&) and ends with a semi-colon (;). - True What is the ability of users with disabilities to access and use a webpage with reasonable effort? - Web Accessibility What is a network sniffer? - Software that monitors network traffic and allows users to inspect HTTP requests and responses. What is a browser cache? - An area on a computer hard drive where web content can be stored by the web browser for quick retrieval later. What is a protocol suite that governs how data packets are transferred over the internet from one machine to another? - ransmission Control Protocol / Internet Protocol (TCP/IP) What is a networking protocol that runs over TCP/IP and governs communication between web browsers and web servers? - HTTP What is Linkrot? - The general name for a once valid link that now returns a 404 status code. Regarding a URL, what is a Query String? - Optional characters to the right of the question mark (?) in a URL that provide data for the web server. Five potential parts of a URL - Fragment, Hostname, Path, Scheme, Query String What is the Third-level domain in the following multi-level domain name? - cs What is the most popular top-level domain (TLD)? - .com Websites have either an IP address or a domain name, but not both. - False How many root Domain Name System (DNS) servers currently exist in the world? - 13 A scripting language used to provide interactivity within a webpage - JavaScript A style sheet language that provides the formatting and "look" of a Webpage or document written in a markup language. - CSS Which of the following are HTML5 semantic tags? - footer header nav Which HTML element is used to allow a web page to include executable code, which the browser assumes to be JavaScript unless indicated otherwise? - script True or false? The use of self-closing element tags (i.e., br /) should be avoided - True Three valid methods of implementing CSS for a web page - embedded, external, inline XML simplifies the coding process regarding which of the following? - Data availability, Date Sharing, Data Transport, Platform Changes Can XML tags be invented? - Yes True of false? XML does not use predefined tags? - True How does XML provide a software- and hardware-independent way of storing, transporting, and sharing data? - By storing data in plain text format What does proper nesting mean in the XML context? - When a nested XML element is opened inside the parent element, it must be closed inside the parent element. True or false? All XML elements must have a closing tag - True True or false? XML documents must contain one root element that is the parent of all other elements. - True What is the XML equivalent to the HTML Doctype declaration? - The XML prolog True or false? UTF-8 is not the default character encoding for XML documents. - False True or false? XML tags are case sensitive - True What is the W3C markup validation service? - a service that takes an HTML document as an input, goes through it, and gives you a report to tell you what is wrong with your HTML How do you access browser devtools? - there are different ways to open devtools in different browsers and platforms What is the rules view? - a devtools view where you should be able to see the CSS properties and values applied to an HTML element How do you add a new property? - using rules view of devtools, you can click the closing curly brace in the rule to start entering a new declaration into it What are the three (3) components of the debugging process? - find it, fix it, identify it What languages can the Chrome devtools help debug? - CSS, HTML, JavaScript
Geschreven voor
- Instelling
- Western Governors University
- Vak
- WGU D276 (D276)
Documentinformatie
- Geüpload op
- 15 januari 2025
- Aantal pagina's
- 41
- Geschreven in
- 2024/2025
- Type
- Tentamen (uitwerkingen)
- Bevat
- Vragen en antwoorden
Onderwerpen
-
wgu
-
d276
-
wgu d276
-
wgu d276 web development foundations
-
wgu d276 web development foundations exam
Ook beschikbaar in voordeelbundel