PSEB Class 10 Computer Science Chapter 4 HTML Part – III Solution

PSEB Punjab Board Class 10 Computer Science Textbook Solution Chapter 4 HTML Part – III Exercise Questions and Answers

Q1) Multiple Choice Questions :-

1) URL gives complete location to a resource (file).

a) Relative b) Absolute c) Internal d) External

2) Which tag is used to add an image in HTML document?

a) <picture> b) <pic> c) <image> d) <img>

3) Which of the following attribute is not used by anchor tag in HTML?

a) href b) src c) target d) title

4) A link is underlined and shown in purple color by default.

a) Unvisited Link b) Visited Link c) Active Link d) None of these

5) Which HTTP method is used to send form-data to web server?

a) GET and SET b) GET and POST c) POST and SEND d) GET and SEND

6) Which of the following form control is used to accept multiple lines of text in the web page?

a) Textbox b) Dropdown Box c) Password Field d) Text Area

Q2) Fill in the blanks :-

1) In relative paths, index.html delimiter points to the parent folder of the current working file.

2) Every image tag has a src attribute which tells the browser where to find the image that we want to display.

3) Named anchors are also called Bookmarks

4) Form submission with POST HTTP method cannot be bookmarked.

5) Planning is nothing but prioritizing tasks for website completion.

Q3) Write the full forms of the following

1) URL : Uniform Resource Locator

2) GIF : Graphics Interchange Formats

3) PNG : Portable Network Graphics

4) JPEG : Joint photographic Experts Group

5) HREF : Hypertext Reference

6) SRC : Source

7) <A> :  Anchor tag

8) <IMG> : Image tag

Q4) Short Answer Type questions :-

1) How will you insert an image in your HTML document.

Ans :- We can insert images into our HTML document or webpage by making use of

<IMG> tag.

2) What is Hyperlink

Ans :- Links helps the user to navigate from one topic to the next on website and from one website to the another. Mostly the links can be in the form of images or text. As the user makes a click on the links, the browser performs the action of opening / executing the destination webpage or website. Links are the typically coloured or underlined words that looks little different form the normal words on a page. When the user moves the mouse cursor/pointer on the link, then the pointer shape changes into the pointing hand which indicates the presence of the active link in the webpage that can be clicked.

3) What are Forms

Ans :- Form is the Information regarding the persons who have visited your website is been feeded into the form. With the help of form, it can remind users to inputting information and valid options has limitations too avoid the wrong entering of data. It helps the user to collect that is needed from the visitor’s webpage. Every form is divided into three parts that is <Form> tag, form input elements and a Submit button. In the forms making, HTML writing is required for stating the objects (which can include text fields, check boxes etc) radio buttons, in the form which helps the user to type or select the information. It is a must to add a Submit button in the form for sending the data to a webserver for processing.

4) Write the name of various controls used in the web form.

Ans :- Textbox control, Text Area control, Password Field control, Checkbox control, Radio button control, Selection List control, file selection control, Button control, Submit button control, Reset button controls.

5) What are the different types of buttons used in the HTML forms.

Ans :- Submit, Reset, Button, Image etc are the buttons which are used in HTML forms.

Q5) Long Answer Type Questions :-

1) What is URL? Explain different types of URL

Ans :-   The full form of URL is Uniform Resource Locator. In other words URL means remote resources on a file server ad a file-path refers to local resources that is inside our computer. So it can be stated that any server that has internet location is said to be web URL or a web address. Every website or web address has a unique URL. For ex:- if the website of Punjab School Education Board has web address and web-URL called as http://pseb.ac.in/. whereas the file-Path states the location of the file inside the local computers folder structure. This acts just the file address by which we can use it. By making use of file paths and URL we can link the external resources like images, videos, style sheets, and other web pages etc. It is necessary for one to know the source of the file when you want/wish to insert it file into the webpage. For ex:- It is a must for one to know the path of the file of the image for specifying it in the HTML document if incase we wish to insert an image in the webpage. The URL is been formed by four basic parts which are Protocol, Host name, Folder name, File – name. for ex:-

There are two types of URL which are Absolute and Relative URL

i) Absolute URL :- In this type of URL, you may get the complete location of the resource file. This URL includes all the basic/detailed information which is required to search the files on the internet or on the local computer. In this type, The URL does not change even if the location of the server or file gets changed.

ii) Relative URL :- In this type of URL, it states the path of the file which relates to the location the current webpage file. This URL consists of only File name or the file name or only the file name. There is no need of server name or protocol indicator for the browser when its in Relative URL. Such type of path changes according to the requesting resources own location at the web server or local directory structure. For ex:- if the path of the absolute URL is been written down in the form of Relative URL, then it changes as per the location of index.html changes.

2) Explain the various text input controls used in web forms.

Ans :- This type of form control accepts only the single texted line from the user. For ex:- search box of username etc. We make use of <input> tag with type=”text” attribute. Below is the example of the textbox input control in the web forms for accepting the single lined text.

<input type=”text”> . This results the rectangular box which allows the user in entering the text data. Along with the <input> tag, we can make use of different attributes which are as followed:-

  • name :- This attribute helps in typing/setting the name of the control. For getting the data to be filled, this is required for the service side scripting such as JSP, ASP, PHP etc.
  • value :- This attribute is sued for providing the default value to the textbox control.
  • size :- According to the characters to be typed in this control, this attribute is used for defining the width of the textbox control.
  • max length :- This attribute is used for defining the maximum number of characters that a user can enter into the text box control.

To accept the username, the additional attributes related example is below :-

User Name : <input type=”text” size=”20” maxlength=”50”>

In the above example, the code helps to create text box which accepts 50 characters in a single line where as it shows 20 characters wide on the webpage. In this text box, the user can fill the field of text data.

3) What are the various phases of web development.

Ans :- There are basically 6 phases involved in the development of the webpage. The 6 phases are been illustrated with the figure and below its explained in detail

Phase 1 : Information gathering :-

In developing the website, this stage is the prime and very important. This phase completely relates with the proper understanding regarding the clients expectations/needs, and helping the clients by giving a proper solution. In this phase, there are some points which should be taken into consideration which are :-

  • Stating the main purpose or reason for creating the website?
  • Clarify the main aim of creating/developing the website?
  • What type of audience we want to be targeted?
  • We should make sure/ take care of the contents for which the targeted contents are looking for?

As the people creates different websites for various purposes, and the information gathered for creating one website cannot be used for the other website. So hence it is very important to collect/gather the information.

Phase 2 : Planning :-

Good website is the result of proper planning. In simple words, planning means the performance of the tasks which is needed for website completion. While performing the planning stage in creating website, it is essential for one to consider the clients involvements as if doing this clients can be much aware about the projects blueprints. In this phase, there are some points which should be taken into consideration which are :-

  • The sitemap of the website must be develop
  • For easy navigation, it is essential for one to take care of the proper interface.
  • The task related to deciding of menu, contents and navigational systems for website creation.
  • The areas of the websites and its sub topics list must be prepared in detail.

Phase 3 : Design & Layout :-

This phase is related to the designing the website. In such phase, the website look and feel is been looked/taken care of. While designing the website, the designer must consider the clients need/requirement/expectation and try to sketch as per it. In this phase, the designer adds the life into the graphics, typography, colors, animations, buttons, drop- downs and pop-up menus and many more that is required by the project. In this phase everything such as designing of logo and templates is discovered.

Phase 4 : Development :-

Once the design phase is completed then it comes to the development phase. This is the very important phase for the web site design. It is the phase where the actual work of website creation starts. Whatever elements are been contained are been utilized in this phase for proper functioning of the website. Firstly the website is created by creating/developing the homepage and its interior pages. Whatever the information is been created from the internal phases, those information is feeded in this section. The work of creating database, logic and actual programming is been done here. In this phase, the person who is going to develop or create the websites make use of some programming languages like Hyper Text Markup Language (HTML), Cascading Style Sheets (CSS), Client- Slide Scripting Languages like JavaScript and Server Slide Scripting Languages like PHP, ASP etc.

Phase 5 : Testing & Launch :-

Once the development of website process gets completed, now it’s the time to make the testing of the functions of the website along with the devices functionalities. Whatever the codes are been written for website creation, those codes are been tested/validated by the tester. Below you may find the various types of website testing :-

  • Content testing
  • Functional testing
  • Design testing

Now the website is been tested in the offline mode, and then the files are been uploaded to the server. Then again, the work of testing is been conducted in an online mode. in this testing we should make sure that whether the files which are been uploaded are working properly or Not, website is working properly or not. And after the final confirmation, the website is been launched to everyone (public).

Phase 6 : Maintenance :-

It is the last phase in website creation which deals in the maintenance work which relates to the making changes in the elements as per the user’s/clients feedback, support or maintenance. The updation of contents and performing designing work is to be termed as Maintenance. It is a never ending process. If you want to attract the visitors for their regular website visits, then it is essential for one to make updation in the contents of the website and add the new ones (contents).

Dear Student, I appreciate your efforts and hard work that you all had put in. Thank you for being concerned with us and I wish you for your continued success.

For more update, follow this page PSEB Notes and Solutions

Updated: August 9, 2022 — 1:22 pm

Leave a Reply

Your email address will not be published. Required fields are marked *