C779 Quiz Questions and Correct Answers
What are the benefits of using CSS? - ANS Consistency — CSS easily gives an entire site a
consistent look and feel. Easy change management — You have the ability to change the look
and feel of an entire site by simply changing one part of a single line of code, rather than having
to change possibly thousands of lines in hundreds of Web pages.
In CSS, what are the selector, property, value, declaration and rule. Give an example. - ANS
body Selector { background-color: Property lightblue; Value }
Describe inheritance or the "cascade" in CSS. - ANS The style you define will flow, or cascade,
throughout the documents, unless another style defined inside of a page specifically overrides
it.
You can apply CSS to your HTML in 3 ways. What are they? - ANS Declare an inline CSS style
attribute. Link to an external style sheet. Create an internal style sheet.
What are the three universally supported Web image formats? - ANS Graphics Interchange
Format (GIF) Joint Photographic Experts Group (JPEG) Portable Network Graphics (PNG)
Why do we need the alt attribute when using images on a web page? - ANS Specifies alternative
text to appear while the graphic is loading, or in place of the graphic in non-graphical browsers
such as Lynx. This alternative text will also display if the image fails to load or if the user has
configured his or her browser not to display images.
If I have an image with the size of 100px wide and 100px tall. What happens if I change the
width and height of the image to 200px by 200px using the width and height attribute in html? -
ANS The image will scale up but may look blurry or pixelated because it is displaying larger than
intended.
What are HTML entities? - ANS Special non-keyboard character
, What is the composition of a hexadecimal color code? - ANS Red hex value + green hex value +
blue hex value = hexadecimal color code, e.g. #FF9900
What is a browser-safe color palette? - ANS A limited color palette, necessary because many
computer screens have limitations., 216 RGB colors (8-bit color minus 40)
Why should you specify a few font-family names when setting up fonts for your website? - ANS
If the first font is not supported, the next value will attempt to render.
What are some layout guidelines to consider when designing your Web pages? - ANS Be
succinct — Limit words to clear, necessary verbiage, especially on the home page. Most users
simply scan pages quickly looking for specific information or links to it. Let users navigate to
additional pages if they want more information. Make sure that each page focuses on one topic
— No tangent message, regardless of its importance, should be added to a page. Use links to
point users to appropriate related topics on separate pages. Divide the page into three sections
— Use the left side of the page for navigation, the upper section of the page for a topic title (as
well as navigation), and the middle section of the page for the information. Include navigation
aids — A common way to enable navigation is to place links at the top and bottom of the page,
and within the body of the page, to reduce the need for users to scroll. Place comments in each
section of code — Comments help explain changes you have made to the code or page. You can
indicate the nature of the change, includin
What is a relative path name? - ANS A reference to a file within a directory or subdirectory is
called a relative path.
What is the anchor element? - ANS Links are created with the anchor element, <a>
What is a fully-qualified url? What other name does it go by? - ANS Contains a full path to a
resource, including the protocol indicator. Also known as a hard link or absolute link.
What are the four most common protocols you can specify in a hyperlink URL? - ANS http,
https, ftp, email (smtp)
What are the benefits of using CSS? - ANS Consistency — CSS easily gives an entire site a
consistent look and feel. Easy change management — You have the ability to change the look
and feel of an entire site by simply changing one part of a single line of code, rather than having
to change possibly thousands of lines in hundreds of Web pages.
In CSS, what are the selector, property, value, declaration and rule. Give an example. - ANS
body Selector { background-color: Property lightblue; Value }
Describe inheritance or the "cascade" in CSS. - ANS The style you define will flow, or cascade,
throughout the documents, unless another style defined inside of a page specifically overrides
it.
You can apply CSS to your HTML in 3 ways. What are they? - ANS Declare an inline CSS style
attribute. Link to an external style sheet. Create an internal style sheet.
What are the three universally supported Web image formats? - ANS Graphics Interchange
Format (GIF) Joint Photographic Experts Group (JPEG) Portable Network Graphics (PNG)
Why do we need the alt attribute when using images on a web page? - ANS Specifies alternative
text to appear while the graphic is loading, or in place of the graphic in non-graphical browsers
such as Lynx. This alternative text will also display if the image fails to load or if the user has
configured his or her browser not to display images.
If I have an image with the size of 100px wide and 100px tall. What happens if I change the
width and height of the image to 200px by 200px using the width and height attribute in html? -
ANS The image will scale up but may look blurry or pixelated because it is displaying larger than
intended.
What are HTML entities? - ANS Special non-keyboard character
, What is the composition of a hexadecimal color code? - ANS Red hex value + green hex value +
blue hex value = hexadecimal color code, e.g. #FF9900
What is a browser-safe color palette? - ANS A limited color palette, necessary because many
computer screens have limitations., 216 RGB colors (8-bit color minus 40)
Why should you specify a few font-family names when setting up fonts for your website? - ANS
If the first font is not supported, the next value will attempt to render.
What are some layout guidelines to consider when designing your Web pages? - ANS Be
succinct — Limit words to clear, necessary verbiage, especially on the home page. Most users
simply scan pages quickly looking for specific information or links to it. Let users navigate to
additional pages if they want more information. Make sure that each page focuses on one topic
— No tangent message, regardless of its importance, should be added to a page. Use links to
point users to appropriate related topics on separate pages. Divide the page into three sections
— Use the left side of the page for navigation, the upper section of the page for a topic title (as
well as navigation), and the middle section of the page for the information. Include navigation
aids — A common way to enable navigation is to place links at the top and bottom of the page,
and within the body of the page, to reduce the need for users to scroll. Place comments in each
section of code — Comments help explain changes you have made to the code or page. You can
indicate the nature of the change, includin
What is a relative path name? - ANS A reference to a file within a directory or subdirectory is
called a relative path.
What is the anchor element? - ANS Links are created with the anchor element, <a>
What is a fully-qualified url? What other name does it go by? - ANS Contains a full path to a
resource, including the protocol indicator. Also known as a hard link or absolute link.
What are the four most common protocols you can specify in a hyperlink URL? - ANS http,
https, ftp, email (smtp)