CGS 3066 Midterm 1 Flashcards
(14 cards)
The following are the three elements of a network discussed in class:
Communication Links, Hosts, and Network Devices
What is the function of a Domain Name Server (DNS)?
To map domain names to IP addresses
One of the following is NOT a purpose of the back-end code:
Execute JavaScript code in the user’s web browser
From the following pieces of HTML code, select the one that correctly creates a link to FSU’s web page:
<a>Link to fsu.edu</a>
The following are the three ways to include CSS rules in a web page:
External, embedded, inline
In order to apply a CSS rule to an element that is inside another element, you use as a selector:
Element Element
One of the following statements is NOT CORRECT regarding CSS cascading priority (A > B means A has more priority than B):
Element > ID
Select the statement that is INCORRECT, regarding the differences between margin and padding:
The margin section is included in the click area of the element
Select the correct definition of absolute positioning:
The position of the element is with respect to its first non-static positioned ancestor
Select the statement that is NOT CORRECT about inline-block positioning:
Because it is a “block”, consecutive “inline-block” elements will stack one on top of another
True/False: The flex box positioning system is based on a container and items, and the size of the container does not adjust itself to the internal items
False, it does adjust
True/False: The clear-fix technique is used to stop non-float elements from appearing next to float elements, and it uses the CSS declaration {clear:fix;}
False, {clear: right;}, {clear: left;}, or {clear: both;}
True/False: The declaration {margin: 0 20px} specifies that there are no top and bottom margins, and that the left and right margins are 20 pixels long
True
True/False: A CSS rule that uses the selector #container applies the rule to all the elements that have their id attribute equals to “container”
True