Foundations WGU Study
Guide Exam Questions and
elaborated Correct Answers
What required <form> attribute specifies the manner in which the browser will send form
data to a web server? - answers Method
This required <form> attribute specifies the name and location of the CGI script used to
process the form - answers Action
What <form> method attribute value instructs the browser to append the form data to
the URL for use in a query string? - answers Get
What <form> method attribute value allows sending more characters and is slightly
more secure when submitting a Web-based form? - answers Post
In HTML, what is a container? - answers Part of a web document body that has opening
and closing tags
In HTML, what is a parent container - answers A container in which another element
resides
HTML elements that are containers - answers <footer>, <header>, <section>, and
<span>
A block element with no semantic meaning - answers <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? - answers Inline Element
Generic HTML element that creates inline containers to facilitate the managing content
on a webpage. Has no semantic meaning - answers <span>
What types of elements can be insides a block element? - answers Inline and block
elements
What types of elements can be insides an inline element? - answers Inline elements
What HTML element do we use to facilitate information gathering for submission to a
server? - answers <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? - answers Enctype
Five primary attributes for a <input> element - answers id, name, type, value,
placeholder
What is the <input> type attribute value of a text box widget? - answers text
Which HTML element should be used to produce a submit button widget in form? -
answers <input>
Which <input> attribute allows the input to start with a default value? - answers value
Which <input> attribute provides a hint to the user about the information being
requested? - answers placeholder
Which attribute inside the <label> element is used to associate the label with a widget? -
answers for
True of false? An <option> element must have a value attribute. - answers False
Which element can create a button with an image? - answers <button>
Four <input> types that exist for entering specific types of text. - answers email, search,
tel, url
Audio formats supported by nearly all web browsers - answers AAC, MP3
Correct HTML for referring to an external style sheet - answers <link rel="stylesheet"
type="text/css" href="mystyle.css">
Where in an HTML document is the correct place to refer to an external style sheet? -
answers In the <head> section
Which HTML tag is used to define an internal style sheet? - answers <style>
Which HTML attribute is used to define inline styles? - answers style
Which is the correct CSS syntax? - answers body {color:black;}
How to insert CSS comment - answers /* this is a comment */
Which property is used to change the background color? - answers background-color
, Property used to add a background color for <h1> elements? - answers h1
{background-color:#FFFFFF;}
Which CSS property is used to change the text color of an element? - answers color
Which CSS property controls the text size? - answers font-size
CSS syntax that makes all the <p> elements bold - answers p {font-weight:bold;}
How do you display hyperlinks without an underline? - answers a {text-
decorations:none;}
How do you make each word in a text start with a capital letter? - answers text-
transform:capitalize
Which property is used to change the font of an element? - answers font-family
How to make the text bold - answers font-weight:bold;
How to display a border. - answers boder-width:top border, right, bottom, left (px)
How to change the left margin of an element. - answers margin-left
Can you use negative values when using the padding property? - answers No
How do you make a list that lists its' items with squares? - answers list-style-type:
square;
How do you select an element with id 'demo'? - answers #demo
How do you select elements with class name 'test'? - answers .test
How do you select all p elements inside a div element? - answers div p
How do you group selectors? - answers Separate each selector with a comma
What is the default value of the position property? - answers static
Correct HTML for adding a yellow background color? - answers <body
style="background-color:yellow;">
HTML element to define important text - answers <strong>
HTML element used to define emphasized text? - answers <em>