Sunteți pe pagina 1din 2

CHAPTER - 6 HTML BASICS

I. very Short answers :

1. Name the attribute of the <body> tag that is used to set the background color of the webpage.

<BODY BGCOLOR=”COLOR_NAME”>

2. Name any one text editor used to create an HTML document.

NOTEPAD , WORDPAD.

3.Which HTML tag is used to draw a horizontal line?

<hr>

4.Give two examples of the Container tags.

<ol></ol> , <head></head> <!-- -- >

5. What is the default text color in HTML ?

Black

II. Short answers :

1. Mention the attributes of the <hr> tag ?

ATTRIBUTE VALUE EXAMPLE


size numeric <hr size = “5”>
width Numeric or percentage value <hr width = “150”>

<hr width = “50%”>


Align Left/right / center <hr width = 30% align = “right”>
color Color name or hexadecimal <hr size = “6” coor=”blue”>
code
Noshade <hr noshade>

2. What are web browsers ?

Web browsers are software packages or programs that can display HTML pages.

A web browsers can thus be understood as a program that read and interprets HTML documents available on
the world wide web.

3. What is the use of the text attribute of the <body> tag?

This attribute is used to set the color of the text in the document.

4. Name the attribute used to change the alignment of a paragraph. What values can be assigned to this tag?

The ALIGN attribute of the <p> tag to change the alignment of a paragraph. Left / right/ center/ justify are the
values assigned to this tag?

5. Write an HTML code to set the top margin to 50 and background color to yellow.

III. Long answer questions :

1. Explain the structure of an HTML Document.


An HTML Document is mainly divided into two parts:
 HEAD: This contains the information about the HTML document. For Example,
Title of the page, version of HTML, Meta Data etc.
 BODY: This contains everything you want to display on the Web Page.
html>: This is called HTML root element and used to wrap all the code.
<head>: Head tag contains metadata, title, page CSS etc. All the HTML elements that
can be used inside the <head> element are:
 <style>
 <title>
 <base>
 <noscript>
 <script>
 <meta>
 <title>
<body>: Body tag is used to enclosed all the data which a web page has from texts to links. All of the
content that you see rendered in the browser is contained within this element.

2. differentiate between the BACKGROUND & bgcolor ATTRIBUTES OF THE <BODY> tag.

S-ar putea să vă placă și