Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

PARAGON CONVENT SCHOOL

SECTER 24 B CHANDHIGARH
CLASS 8
CH- 7 INTRODUCTION TO HTML 5 AND CSS
BRAIN DEVELOPER
A. Fill in the blanks:

1. Hypertext is a piece of ordinary text that has a special feature of linking the other
documents or web pages
2. One way to apply CSS to HTML elements by using the style attributes.
3. The value is the option chosen for a property.
4. The container elements include both on and off tags.
5. The line break elements splits the line and displays the text on a new line.

B. State true or false:

1. <HTML> tag is also called root element. True


2. Tags and attribute names are case- sensitive. False
3. Property defines how different elements look on the web page . True
4. With inline method, the effects get applied to all the elements of the web page. False
5. We can add an image in the background of a web page with the help of a picture tag.False

C. Multiple choice Questions:

1. To display a long piece of text on a web browser, the ______ element is used.

a) <p> b) <L> c) <T>

2. Amaya is an example of ______ editor.

a) Text b)Web c) Word

3. _______ tag draws a horizontal lie across the web page.

a) <br> b) <hr> c) <line>

4. _______ provides the set of Style rules for defining the layout of HTML documents.

a) CSS b) WSS c) TSS


5. A property and its value, are collectively known as _______ .

a) Selector b) Attribute c) Declaration

D. Answer the following Questions:


1. What is HTML?
Ans. HTML stands for Hypertext Markup language. It is a complete code package that allows
the user to create web pages that contain both text and graphics. All the web browsers are
designed to understand and interpret this language.
`
2. Explain the terms Tags and Attributes.
Ans. Tags are the building blocks of a web page. They contain elements that define how the
information on a web page is formatted or displayed.
An Attribute is the property that provides additional information about an HTML element. It
enhances the functionality of a tag. An attribute is always specified inside the opening tag.

3. What is an Element? Explain its various types.


Ans. An HTML element consists of an on tag, the content and an off tag. The HTML elements
can be categorized as: Container Elements, Empty Elements.

4. Write a short note on Heading and Paragraph elements.


Ans. Heading tag is used to define different heading levels in HTML document. It is basically
used to emphasize the text. There are six heading levels, H1 to H6.
To display a long piece of text on a web browser, paragraph element <p> is used, which
marks a block of text as a paragraph. To mark the end of a paragraph, </p> element is
used.

5. What are Cascading Style Sheets? Name the different methods available for applying Style
rules.
Ans. Cascading Style Sheet (CSS) is a style sheet that provides a set of style rules for defining
the layout of HTML documents. By using CSS, you can control the colour of the text, style of
fonts, spacing between paragraphs, size and layout of columns, background images as well as
a variety of other effects.
There are three methods of applying style rules:
a. Inline (the attribute style)
b. Internal or embedded style sheet
c. External style sheet

You might also like