0% found this document useful (0 votes)
4 views20 pages

HTML Head Title Title Head Body h1 h1 P P Body HTML

The document provides an overview of HTML structure, including key elements like <!DOCTYPE html>, <html>, <head>, <title>, <body>, <h1>, and <p>. It also includes multiple-choice questions and answers related to CSS properties, selectors, and functions, testing knowledge on topics such as color manipulation, font properties, and media types. The document serves as a study guide for understanding HTML and CSS fundamentals.

Uploaded by

Danial Shaheen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views20 pages

HTML Head Title Title Head Body h1 h1 P P Body HTML

The document provides an overview of HTML structure, including key elements like <!DOCTYPE html>, <html>, <head>, <title>, <body>, <h1>, and <p>. It also includes multiple-choice questions and answers related to CSS properties, selectors, and functions, testing knowledge on topics such as color manipulation, font properties, and media types. The document serves as a study guide for understanding HTML and CSS fundamentals.

Uploaded by

Danial Shaheen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

A standard HTML file is shown below:

<!DOCTYPE html>
<html>
<head>
<title>Title Page</title>
</head>
<body>

<h1>Heading Line</h1>
<p>Paragraph Lines</p>

</body>
</html>

From the above code, the components of an HTML file document is as explained
below:

 <!DOCTYPE html> acts as a declaration that this document is an HTML5 document.


 <html> element is the root element of the HTML page.
 <head> element contains metadata for the HTML page.
 <title> tag produces a title for the webpage we are currently rendering(our HTML
page).
 <body> defines the body of the document, and is basically a container for all the
contents which is visible in the HTML page like hyperlinks, headings, titles,
paragraphs, etc.
 <h1> tag is basically a heading. The ‘1’ represents the size of the heading, 1 being the
largest and 6 being the smallest.
 <p> tag basically defines a paragraph.

The general syntax for an HTML element is defined by a start tag, an end tag, and
some content enclosed within it. For some HTML elements, the end tag is not needed

1. The “color:red” in CSS can be known as _____________:

a. Value

b. Declaration

c. Selector

d. Rule

Answer: (b) Declaration


2. Which selector do we use to specify the rule for binding some particular unique
element?

a. class

b. tag

c. both tag and class

d. id

Answer: (d) id

3. In an HTML page, which of these tags is used for embedding CSS?

a. <!DOCTYPE html>

b. <css>

c. <style>

d. <script>

Answer: (c) <style>

4. Which of these functions would convert the color of an element by the filter property
to a grey shade, for use?

a. grayscale()

b. shade()

c. brightness()

d. black()

Answer: (a) grayscale()

5. Which of these functions is the 2D transformation in the matrix format?

a. perspective
b. matrix3d()

c. matrix2d()

d. matrix()

Answer: (d) matrix()

6. Which one of these is NOT an appropriate value for the font-variant property?

a. small-caps

b. large-caps

c. default

d. inherit

Answer: (b) large-caps

7. Which value is a slightly bolder weight than the standard bold in the font attribute?

a. dark

b. lighter

c. light

d. emphasize

Answer: (a) dark

8. The CSS property that is equivalent to the align attribute is:

a. text-align

b. float

c. text-align & float

d. centre

Answer: (b) float


9. No single, integrated ____________________ specification exists, because it gets
split into various separate modules:

a. CSS4

b. CSS3

c. CSS2

d. CSS1

Answer: (a) CSS4

10. ___________ describes the CSS properties for manipulating the “ruby” position, that
are small annotations next to or on top of words, especially common in Japanese and
Chinese.

a. text-align

b. lang

c. ruby

d. align

Answer: (c) ruby

11. What tag do you use to directly write the style rules within a document found within
the document’s head?

a. <css>

b. <style>

c. <php>

d. <script>

Answer: (b) <style>

12. The screen media type can be used with:


a. television-type devices

b. computer devices

c. handheld screens

d. all devices

Answer: (b) computer devices

13. Which one is NOT the audio element’s attribute?

a. check

b. controls

c. loop

d. src

Answer: (a) check

14. The CSS property that is primarily used for giving a line over a text would be:

a. text-decoration: none

b. text-decoration: line-through

c. text-decoration: underline

d. text-decoration: overline

Answer: (d) text-decoration: overline

15. Which of these measurements would define a measurement that is relative to the x-
height of a font?

a. px

b. pt

c. em
d. ex

Answer: (d) ex

16. Which property sets the actual amount of spacing between the various letters?

a. letter-spacing

b. letter-space

c. line-height

d. space

Answer: (b) letter-space

17. Which CSS3 Color Feature could be used as a macro for any current color?

a. HSLa Color

b. RGB Color

c. CurrentColor keyword

d. HSL Color

Answer: (c) CurrentColor keyword

18. Which CSS3 Color Feature is like RGB color and adds the alpha channel value so
as to specify a color’s opacity?

a. AlphaRGB

b. RGBalpha

c. RGBa

d. RGB

Answer: (c) RGBa


19. Which Selector selects any element in case it is the only child element of its parent
element with its type?

a. :target

b. :only-of-type

c. @media

d. ::selection

Answer: (b) :only-of-type

20. Which of these protocols would enable a hyperlink to easily access any file on the
available local file system?

a. ftp

b. https

c. telnet

d. file

Answer: (d) file

1.
What is css stands for
A. Color Style Sheets

B. Cascade Sheets Style

C. Cascade Style Sheet

D. Cascading Style Sheets

Answer & Solution Discuss in Board Save for Later


Powered By

Play
Unmute

Loaded: 1.20%

Fullscreen

2.
In css what does h1 can be called as
A. Selector

B. Attribute

C. Value

D. Tag

Answer & Solution Discuss in Board Save for Later

3.
In css what does “color:red” can be called as
A. Selector

B. Rule

C. Declaration

D. None of the above

Answer & Solution Discuss in Board Save for Later

4.
Which of the following attributes is used to specify
elements to bind style rules to?
A. id

B. class

C. tag

D. all of the mentioned

Answer & Solution Discuss in Board Save for Later

5.
________ selectors, which are used to specify a rule to
bind to a particular unique element
A. id

B. class

C. tag

D. both (B) and (C)

Answer & Solution Discuss in Board Save for Later

6.
In css what does “font-size” can be called as
A. Selector

B. Rule

C. Property
D. Property-Name

Answer & Solution Discuss in Board Save for Later

7.
_________ selectors, which are used to specify a group
of elements
A. id

B. class

C. tag

D. both (B) and (C)

Answer & Solution Discuss in Board Save for Later

8.
__________ implementation that introduced text, list,
box, margin, border, color, and background properties.
A. css

B. html

C. ajax

D. php

Answer & Solution Discuss in Board Save for Later

9.
Is it the best way to include H1 heading only one time in
the web page. State true or false.
A. True

B. False

Answer & Solution Discuss in Board Save for Later

10.
Is it the best way to include H1 heading only one time in
the web page. State true or false.
A. True

B. False

Answer & Solution Discuss in Board Save for Later

11.
Which of the following element is used by the filter
property to blur the images?
A. opaque()
B. scatter()
C. blur()
D. all of the mentioned

Answer & Solution Discuss in Board Save for Later

Powered By

Play
Unmute

Loaded: 1.20%

Fullscreen
12.
Which of the following function adjust the brightness of
an element’s color, for use by the filter property?
A. contrast()

B. dark()

C. light()

D. brightness()

Answer & Solution Discuss in Board Save for Later

13.
Which of the following function adjusts the difference
between light and dark values, for use by the filter
property?
A. contrast()

B. dark()

C. light()

D. brightness()

Answer & Solution Discuss in Board Save for Later

14.
Which of the following function with filter property to
create your own sophisticated effects on DOM
elements?
A. create()

B. DOM()

C. custom()

D. none of the mentioned

Answer & Solution Discuss in Board Save for Later

15.
Which of the following function converts an element’s
color to a shade of gray, for use by the filter property?
A. shade()

B. grayscale()

C. black()

D. brightness()

Answer & Solution Discuss in Board Save for Later

16.
Which of the following function flips an element’s
colors, for use by the filter property?
A. image()

B. flip()

C. invert()

D. contrast()
Answer & Solution Discuss in Board Save for Later

17.
Which of the following function applies a saturation
effect to an element’s color, making it appear more or
less vivid, for use by the filter property?
A. color()

B. saturation()

C. saturate()

D. none of the mentioned

Answer & Solution Discuss in Board Save for Later

18.
Which of the following function defines a linear
gradient as a CSS image?
A. grayscale()

B. gradient()

C. image()

D. linear-gradient()

Answer & Solution Discuss in Board Save for Later

19.
Which of the following function two dimensional
transformation in matrix format?
A. matrix()

B. matrix2d()

C. matrix3d()

D. perspective

Answer & Solution Discuss in Board Save for Later

20.
Which of the following function apply a sepia tinge to
an element’s color, typical of old photographs, for use
by the filter property?
A. grayscale()

B. sepia()

C. contrast()

D. brightness()

Answer & Solution Discuss in Board Save for Later

21.
Which of the following value is supposed to be a
slightly bolder weight that standard bold in font
attribute?
A. empasize

B. light
C. lighter

D. dark

Answer & Solution Discuss in Board Save for Later

Powered By

Play
Unmute

Loaded: 1.20%

Fullscreen

22.
Which of the following property allows contextual
adjustment of inter-glyph spacing, i.e. the spaces
between the characters in text?
A. font-style

B. font-family

C. font-kerning

D. font-variant

Answer & Solution Discuss in Board Save for Later

23.
Which of the following is not a value for font-style
property?
A. normal
B. italic

C. oblique

D. none of the above

Answer & Solution Discuss in Board Save for Later

24.
Which of the following value specifies whether the user
agent is allowed to synthesize bold or oblique font
faces when a font family lacks bold or italic faces?
A. font-weight

B. font-synthesis

C. font-kerning

D. font-variant

Answer & Solution Discuss in Board Save for Later

25.
Which of the following selects a normal, or small-caps
face from a font family?
A. font-weight

B. font-synthesis

C. font-kerning

D. font-variant

Answer & Solution Discuss in Board Save for Later


26.
Which of the following is not a appropriate value for
font-variant property?
A. inherit

B. default

C. large-caps

D. small-caps

Answer & Solution Discuss in Board Save for Later

27.
Which of the following property adjusts the font-size of
the fallback fonts defined with font-family, so that the x-
height is the same no matter what font is used?
A. default

B. font-size-fallback

C. font-adjust

D. font-size-adjust

Answer & Solution Discuss in Board Save for Later

28.
Which of the following Allows you to expand or
condense the widths for a normal, condensed, or
expanded font face?
A. font-style

B. font-stretch

C. font-expand

D. none of the mentioned

Answer & Solution Discuss in Board Save for Later

29.
Which of the following font-size-adjust is value used in
calculating the size of the fallback fonts?
A. auto

B. number

C. count

D. none

Answer & Solution Discuss in Board Save for Later

30.
“font-style comes first than font-weight in font
attribute”.State true or false.
A. True

B. False

Answer & Solution Discuss in Board Save for Later

You might also like