Chapter-4
Advance HTML
Short Questions
- Write the full form of HREF attribute.
Ans. Hyperlink reference
- Explain the term HTML briefly.
Ans. The HTML or hypertext markup language offers us with different kinds of elements. It provides a set of tools that help us to insert into our document to make it more comprehensive and appealing.
- What happens when we click on a hyperlink on a web page?
Ans. When we click on a hyperlink on a web page then that other page will be open according to that URL.
Long Questions
- What is the purpose of using HREF attribute with tag <A>?
Ans. If we want connect other page with our main page then we use HREF attribute with <A> (anchor tag). By the help of HREF attribute we can also use download link.
- What is the difference in functions of the two tags.
1. <a href= “......”> 2. <a name= “......”>?
Ans. By <a href= “......”> option we can linking to the anchor inside the document.
By <a name= “......”> option we can link words or image to be referenced.
- What happens when you click a link that points to be an anchor?
Ans. Anchor show the name which reflected on page as a link when we click on that link that link will be open containing source page.
- what is the purpose of name and href attributes of <a> tag?
Ans. When we create an anchor inside the document i.e. marking and naming the point inside the document to which we wish to link to. This is done with anchor Tag A and the attribute NAME (instead of “HREF”).
- Which tags and attributes are used to:
a. Jump to a new page b. another location on the same page
Ans. a Jump to a new page :- <a href= “........”>
b. another location on the same page :- <a name= “......”>
MCQ
1. A.
2. D.
3. A
4. B
D Distinguish between the following pairs:
1. Ordered and Unordered lists
Ordered List: If we want to show a sequence , the we use ordered lists.
For example: Steps to make a cup of tea or reaching a particular destination.
Given below is the list of items, which has an order that is represented by a number , Roman numeral, or alphabetical character. Ordered lists are also called sequenced or numbered lists.
Example: 1. Inauguration
2. Tea
3. Presentation by Marketing
Manager- Mr. Devesh Sharma
Unordered List: Here, the list has a bullet proceeding before each listed item.
If we want to show no sequence, then we use unordered lists.
Example:
· Biscuits
· Sweets
· Fruits
2. Attribute Height and attribute WIDTH.
Width: The WIDTH attribute specifies the horizontal width of the image.
Width is specified in number of pixels or as the percentage of page width.
Syntax can be as: WIDTH = “n/n%” – where n is a natural number.
Height: The HEIGHT attribute specifies the height of the image.
Height is specified in number of pixels or as the percentage of page height.
Syntax can be as: HEIGHT= “n” – where n is a natural number
Example: <img src =”Welcome pic.jpg” width= “304” height= “228”/>
No comments:
Post a Comment