0

web technology Online Quiz - 136

Description: web technology Online Quiz - 136
Number of Questions: 20
Created by:
Tags: web technology
Attempted 0/20 Correct 0 Score 0
  1. Where in an HTML document is the correct place to refer to an external style sheet?
  1. At the top of the document

  2. In the section

  3. At the end of the document

  4. In the section


Correct Option: B

AI Explanation

To answer this question, you need to understand how to link external style sheets in an HTML document.

Option A) At the top of the document - This option is incorrect because placing the reference to an external style sheet at the top of the document would not be the correct place. It is important to separate the structure and content of the document from its styling, which is why the section is typically used for linking external style sheets.

Option B) In the section - This option is correct because the section of an HTML document is where you should place the reference to an external style sheet. This ensures that the styles are loaded before the content is rendered, allowing for consistent and uniform styling throughout the document.

Option C) At the end of the document - This option is incorrect because placing the reference to an external style sheet at the end of the document would not be the correct place. By the time the styles are loaded, the content may have already been rendered without any styling, resulting in a visually inconsistent document.

Option D) In the section - This option is incorrect because the section is meant for the actual content of the HTML document, not for linking external style sheets. Placing the reference to an external style sheet in the section would not adhere to best practices and could result in unexpected styling behavior.

The correct answer is B) In the section. This option is correct because it allows the external style sheet to be loaded before the content is rendered, ensuring consistent and uniform styling throughout the document.

  1. Which HTML tag is used to define an internal style sheet?
  1. None of the above


Correct Option: A
  1. style

  2. font

  3. class

  4. styles


Correct Option: A
Explanation:

The correct answer is A. "style" is the HTML attribute used to define inline styles. This attribute is applied directly to the HTML element and allows you to specify CSS styles for that particular element.

Let's go through the other options and explain why they are incorrect:

B. "font": This attribute is not used to define inline styles. It was commonly used in older versions of HTML to specify font-related styles, but it is now considered deprecated and should be avoided.

C. "class": The "class" attribute is used to define a class for an HTML element, which can be used to apply styles defined in CSS. However, it is not specifically used for defining inline styles.

D. "styles": This is not a valid HTML attribute. The correct attribute is "style".

So, the correct answer is A. "style".

Which is the correct CSS syntax?

  1. body {color: black}

  2. {body;color:black}

  3. {body:color=black(body}

  4. body:color=black


Correct Option: A

How do you insert a comment in a CSS file?

  1. // this is a comment

  2. /* this is a comment */

  3. // this is a comment //

  4. ' this is a comment


Correct Option: B
  1. h1 {background-color:#FFFFFF}

  2. all.h1 {background-color:#FFFFFF}

  3. h1.all {background-color:#FFFFFF}

  4. None of the above


Correct Option: A

How do you change the text color of an element?

  1. fgcolor:

  2. text-color:

  3. color:

  4. text-color=


Correct Option: C
  1. text-style

  2. text-size

  3. font-size

  4. font-style


Correct Option: C
  1. font=

  2. f:

  3. font-family:

  4. None of the above


Correct Option: C
  1. style:bold

  2. font:b

  3. font-weight:bold

  4. None of the above


Correct Option: C
  1. indent:

  2. text-indent:

  3. margin-left:

  4. margin:


Correct Option: C
  1. (A)Spam

  2. (B)Hacking

  3. (C)Virus

  4. (D)Phishing

  5. (E)Vishing


Correct Option: A
  1. (A)Social networking sites

  2. (B)Mobile Phones

  3. (C)E-mails

  4. (D)Cyber caf

  5. (E)All of the above


Correct Option: B
  1. (A) gap between people having access to mobile and internet access

  2. (B) gap between people having access to internet /IT and no internet/IT

  3. (C) gap between people having access to broadband and narrowband internet

  4. (D) gap between people having access to internet banking and normal banking

  5. (E)Gap between the people having an email account and no email account


Correct Option: B
  1. (A)World Wide Web Consortium

  2. (B)World Wide Web Company

  3. (C)World Wide Web Center

  4. (D)World Wide Web Command

  5. (E)None of them


Correct Option: A
- Hide questions