DAV Class 8 Computer Chapter 2 HTML-I Question Answer Notes
DAV Class 8 Computer Chapter 2 HTML-I Question Answer Notes Solution by Expert Computer Teacher. DAV Class 8 Computer 2nd Chapter HTML-I for Students of DAV Schools.
Lesson No 2
HTML – I
(Q1) Fill in the blanks :-
(1) Website is a collection of related webpages consisting of text, images, sounds and videos.
(2) Static pages shows the same content each time they are viewed whereas Dynamic pages have can change each time they are accessed.
(3) The unique name of the website is called as URL (Uniform Resource Locator)
(4) The language which is used for creating or developing of webpages is known as HTML
(5) A text editor is a word processing program that is used for typing or editing an HTML program.
(Q2) State whether the following statements are True or False :-
(1) Home Page is the first page on every website which gives us basic details about the information the website contains. True
(2) Text editor is the software which is used for viewing websites. False
(3) HTML tag is composed of the name of the element, surrounded by curly brackets False
(4) A Tag can have more than one attributes also. True
(5) Empty Tags do not have an end tag. True
(6) <HTML> tag represents the root of an HTML document. True
7.) The first web browser World Wide Web, was developed in 1990 by Tim Berners
for the NeXT Computers. Lee True
Q3.) Write down the full forms for the following :-
1.) URL – Uniform Resource Locator
2.) HTML – Hyper Text Mark-up Language
3.) WSIWYG – What You See Is What You Get
4.) WWW – World Wide Web
5.) <HR> – Horizontal Rule
6.) Bg color – Background color
Q4.) Answer the following questions in one or two sentences each:-
(1) What do you mean by a Website?
Ans :- In simple words, Website is termed as the collection of related webpages which are consisting of text, images, sounds and videos. Website is a set of webpages which are related to each other. As per the need and design of the website, the website may have many pages. The persons who develop or creates the websites by making use of the programming languages is known as website developers. In every website there may be Home page and other pages. An individual or organization or institution etc can also own the website.
(2) What is a Home Page in HTML
Ans :- Home Page is the first page on every website which gives us basic details about the information the website contains.
(3) State the different types of webpages
Ans :- There are two different types of webpages which are
(a) Static Webpages :- Whenever such webpages are viewed, they display the same content.
(b) Dynamic Webpages :- When ever these webpages are viewed, this webpages displays the different content means the contents gets changed whenever the page is viewed.
(4) What is a HTML
Ans :- HTML stands for Hyper Text Mark-up Language. HTML is a special type of programming language which is used for creating or developing the websites. Text editors are made used for typing the programs in HTML whereas the web browsers are used for displaying the results.
(5) What is the difference between the Web Browser and Text editor
Ans :- The difference between the Web Browser and Text editor are as :-
(a) Text editor :- Text editor is word processing program which is only used for typing and editing the program in HTML. It is used for typing HTML program.
Ex:- Notepad for Windows and Gedit for Linux.
(b) Web Browser :- It is one type of software which is used for displaying the websites. It is used for viewing the result. For ex :- Mozilla Firefox , Internet Explorer.
(6) State the difference between the Container tags and Empty Tags
Ans :- The difference between the Container tags and Empty Tags are as :-
(a) Container Tags :- This tag includes text and other tags. In this tag, there is Start tag and End Tag. As if in this tag, there is inclusion of Start and End tag, so the Start tag starts within the angle brackets <> whereas the end tag is closed by using a forward slash inside the angle brackets </>. Ex :- <Title> </Title>
(b) Empty Tags :- This tag does not include any text or any other tags. This tag does not have end tags. As if there is no presence of Start tag and End tag so there is no need of defining it. <BR>, <HR> tag.
(Q5) Answer the following questions in brief :-
(1) Write down some Container Tags?
Ans :- Some of the Container Tags are as followed :-
(A) HTML Tag
This tag <HTML> tag defines the root/base/foundation of the HTML document. This tag acts as an container for all the elements of a HTML document.
In the HTML document, the code starts with <HTML> which is known as the opening tag and </HTML> is known as closing tag.
The HTML document is divided into two parts which are HEAD and BODY.
(B) HEAD Tag
It is the container tag.
This <HEAD> tag is the first element in the HTML Tag.
In the <HEAD> tag, there is inclusion of the Title of the HTML document. In <HEAD> tag, there is no text within it.
(C) TITLE Tag
For mentioning the title of the document, this tag is stated inside the <head> tag. The title which is given to the document appears at the top of the webpage i.e is on the Title Bar and not in viewing area of the actual webpage. This tag falls under the category of container tag.
(D) BODY Tag
This tag is usually used in define the body of the document.
This tag includes the HTML document contents like text, hyperlinks, images, tables, lists etc. In a HTML document, there is only one element <body> This tag also lies under the container element.
(2) Write down the steps in saving a file in HTML
Ans :- For saving a file in HTML the steps are :-
(i) Make a click on the File ______ and select the option as Save As The Save As dialog box appear.
(ii) Choose the location in the computer where you want to save the file.
(iii) Then in the Save As dialog box type the name for the file of your choice.
(iv) Click on Save button.
Note :- Kindly make a note of that while typing the name for the new file in HTML, it is a must for one to add .htm or .html as the file extension. The name that given to the HTML file is been displayed at the top of the Notepad or Word pad window at Title bar.
The Word pad or Note pad file is usually save in .txt as the file extension name by default but the HTML file is been saved with the .htm or .html file extension in Word pad or Notepad.
(3) Explain the Attributes in brief
Ans :- In HTML program, attributes are the properties of the tags. Always attributes are used in the opening brackets where as the values are been mentioned in the quotation marks. A tag can have one or more than one attributes. There are two parts in every attribute i.e is name and value.
(a) Name :- Name refers to the property that we want to set. For ex :- the paragraph
<p> element carries the an attribute whose name is align, which is sued for defining the paragraph’s alignment on the page.
(b) Value :- It is used to adjust or define the value of the property and is declared inside the quotation marks. For ex :- In the below example, you may notice the three values of the attribute align which are left, right and center.
Attribute |
Value | Description |
Left |
|
|
Align |
Right | This states the text alignments in the paragraph |
Center |
|
|
|
Justify |
|
Attributes of the Body Tag
Attribute | Description |
Bgcolor |
This is used for stating the background color of a document. |
Text |
It is used for stating the colour of the text in a document. |
Ex :- <BODY BGCOLOR=”GREEN”TEXT=”RED”>
(4) What do you mean understand Formatting Tags
Ans :- Formatting tags are the tags which are used for applying some textual effects to the selected text in the HTML document. Some of the formatting tags are explained below :-
- Bold, Underline and Italics
This tags are container tags. These tags are used for changing the face of the text in bold face, underline face and italic face within the document.
- Changing Fonts
In the document we can change the fonts of the selected text. There are different tags used for changing the font.
- Font tag
This tag is used for changing the font style, size and color of the text within the document.
This tag comes under the category of container tag i.e means without attributes this tags cant be used.
In this tag, you may also notice that the text is been enclosed in different styles and sizes.
The attributes of the Font Tags are
Attribute |
Value | Description |
Color | Color Name |
It specifies the color name of the enclosed text |
Face |
Font style | It specifies the face type of the enclosed text |
Size | Any number ranging from 1 to 7 |
It specifies the size of the enclosed text. |
- Center
This tag is much helpful in aligning the enclose text at the center of the webpage. It is also comes under the container tag.
(5) What do you mean by Font Tag? Write down its Attributes.
Ans :- Font tag :- This tag is used for changing the font style, size and color of the text within the document.
This tag comes under the category of container tag i.e means without attributes this tags can’t be used.
In this tag, you may also notice that the text is been enclosed in different styles and sizes.
The attributes of the Font Tags are
Attribute |
Value | Description |
Color | Color Name |
It specifies the color name of the enclosed text |
Face |
Font style | It specifies the face type of the enclosed text |
Size | Any number ranging from 1 to 7 |
It specifies the size of the enclosed text. |
(6) Explain the steps for viewing a web page in HTML
Ans :- Once the typing the programs coding is over, and the saving the file is also done, then the now it’s the time for viewing the created webpage by any of the web browser. The steps for performing the task of viewing the webpage is as followed :-
(i) First of all open any supportable web browser by clicking on its icon. For ex Internet Explorer.
Start ——– All Programs ——— Internet Explorer
(ii) Now make the click on the File menu and make the select for Open option.
(iii) Now select the place in the computer system, where you wish to save the HTML document file.
(iv) Now click on the Open Button, which allows the Open dialog box to get displayed. After which click on Ok button in the open dialog box.
(v) In the browser window we will see that the output of the HTML program/Webpage will be displayed.
For further update follow net explanations home page
Thanks