Class 9 Computer Chapter 5 Question Answer
Important MCQs and short questions notes Class 9 Computer Chapter 5 Question Answer of Designing Website in 9th Class Computer Science English Medium written by Sir Saud Khan. These computerized notes are very helpful in the preparation of Designing Website Class 9 Computer Chapter 5 Question Answer for students of Computer Science and these are according to the paper patterns of all Punjab boards.
Summary and Contents:
Topics which are discussed in the notes are given below:
- Designing Website Multiple Choice Questions ( MCQs ) with correct Answers
- Body Section: Body section contains the actual contents of a webpage that are visible inside a webpage. This section starts with < body > tag and ends with < / body >.
- Text Formatting: Content Formatting in HTML: HTML defines special elements for defining text with a special meaning. Here is the description about performing various content formatting tasks in HTML.
- Creating a paragraph: The < p > tag marks starting of a paragraph, and < / p > tag marks closing of the paragraph. The text inside < p > < / p > tags is actual contents of the paragraph.
- Insert line breaks: The < br > element inserts a line break without starting a new paragraph. For example, < p >This is < br > a paragraph < / p > displays text in two lines, as following. This is a paragraph
- Insert spaces: If you insert multiple spaces in a text, HTML only considers one space and ignores the others. For example, < p > I study in 9th class. < / p > generates the following output. I study in 9th class.
- You can see that HTML has ignored the multiple spaces inside the text. In order to insert spaces you need to write "& nbsp;" where the space is needed. For example, < p > I study & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; in 9th class. < / p > generates the following output. I study in 9th class. In order to add two spaces, you can use "& ensp;".
- Add headings/sub-headings: Headings are defined with the < h1 > to < h6 > tags. < h1 > defines the most important heading. < h6 > defines the least important heading. For example, < h1 > Heading 1 < / h1 > < h2 > Heading 2 < / h2 > < h3 > Heading 3 < / h3 > < h4 > Heading 4 < / h4 > < h5 > Heading 5 < / h5 > < h6 > Heading 6 < / h6 > produces the output.
- Identify the Text Formatting Tags: The < font > tag specifies the font styles, font size, and colour of text. You can use color attribute of the < font > tag to specify the colour of text. For specifying the size of text, size attribute is used. Similarly, face attribute is used to set the font style of text. For example, < font color = "red" size = "5" face = "verdana" > Some Text < / font >.
- Creating Lists: Sometimes, you need to provide information in the form of lists e.g. list of subjects, list of teachers, list of friends etc. In the following, we study what type of lists are available in HTML and how to create them.
- Types of Lists: There are following three types of lists in HTML:
- Unordered List: In an unordered list, the order of the list items is not important. In other words, shuffling of items in an unordered list has no effect. For example, list of cities in Pakistan. An unordered list is created inside the < ul > < / ul > tags. Each list item is added with < li > tag, as shown below.
- Ordered List: An ordered list keeps each list item with an order number. If you change the order, the meaning of the whole list may also change. For example, if your teacher makes a list of students with respect to their marks then definitely order will matter. An ordered list starts with < ol > and ends with < / ol > tag. Each list item starts with < li > tag, as shown below.
- HTML Code Snippet , Output
- < ol >, < li > First item < / li > , 1. First item
- < li > Second item < / li > , 2. Second item
- < li > Third item < / li > , 3. Third item
- < li > Fourth item < / li > , , 4. Fourth item