COMP 126 MIDTERM QUESTIONS & ANSWERS
What is the term we use to describe any item on a web page that can be distinguished
via HTML tags? - Answer -Element
How many levels of heading text does HTML include by default? - Answer -6
The title element in the head section of an HTML document specifies the text... -
Answer -that's displayed in the browser's tab for the page.
Which of the following is an HTML attribute in the below code?
<body><a href="http://www.google.com">Google</a><br/></body> - Answer -
href=http://www.google.com
When you comment out a portion of HTML code, you disable it by... - Answer -
enclosing it within these characters: <!-- and -->
Within a CSS style rule, a declaration consists of... - Answer -a property and a value.
The portion of a web page that contains all the content to be displayed on the page
should be coded as an HTML5... - Answer -body element
HTML is used to define... - Answer -the structure and contents of a web page.
CSS is used to... - Answer -format the HTML elements of a web page.
The best practice for adding CSS to a website is... - Answer -via a <link> element
pointing to an external stylesheet.
In the box model for an element, the border - Answer -is between the padding and the
margin
When you set the border for a block element, you can set - Answer -its color, style, and
width
Which of the following can you not do with flexbox properties and values alone (that is,
with no other methods)? - Answer -Make a row of elements collapse together into a
hamburger menu when viewed on a small mobile browser
Flexbox allows you to lay out elements side by side... - Answer -without using floats
You use the justify-content property to align the flex items in a container - Answer -
along the main axis
Which CSS property do you use to display a block element as a flex container? -
Answer -display
What is the term we use to describe any item on a web page that can be distinguished
via HTML tags? - Answer -Element
How many levels of heading text does HTML include by default? - Answer -6
The title element in the head section of an HTML document specifies the text... -
Answer -that's displayed in the browser's tab for the page.
Which of the following is an HTML attribute in the below code?
<body><a href="http://www.google.com">Google</a><br/></body> - Answer -
href=http://www.google.com
When you comment out a portion of HTML code, you disable it by... - Answer -
enclosing it within these characters: <!-- and -->
Within a CSS style rule, a declaration consists of... - Answer -a property and a value.
The portion of a web page that contains all the content to be displayed on the page
should be coded as an HTML5... - Answer -body element
HTML is used to define... - Answer -the structure and contents of a web page.
CSS is used to... - Answer -format the HTML elements of a web page.
The best practice for adding CSS to a website is... - Answer -via a <link> element
pointing to an external stylesheet.
In the box model for an element, the border - Answer -is between the padding and the
margin
When you set the border for a block element, you can set - Answer -its color, style, and
width
Which of the following can you not do with flexbox properties and values alone (that is,
with no other methods)? - Answer -Make a row of elements collapse together into a
hamburger menu when viewed on a small mobile browser
Flexbox allows you to lay out elements side by side... - Answer -without using floats
You use the justify-content property to align the flex items in a container - Answer -
along the main axis
Which CSS property do you use to display a block element as a flex container? -
Answer -display