Saturday, September 30, 2023

Chapter -5 HTML Fundamentals(10+1)

 

Chapter -5

HTML Fundamentals

Q.1 Define HTML.

Ans. HTML एक MarkUp Language है, जिसे वेब डॉक्युमेंट (वेब पेज) बनाने के लिए विकसित किया गया है. इसका विकास 90 के दशक में हुआ था. यह एक वेब पेज का आधार होती है और वेब पेज एक वेबसाइट का आधार होते है. HTML वेब डॉक्युमेंट को बनाने के किए 'Tags' का इस्तेमाल करती है.

 

Q.2 What is structure of HTML document?

Ans.Basic structure of an HTML document

An HTML document has two* main parts:

1.     head. The head element contains title and meta data of a web document.

2.     body. The body element contains the information that you want to display on a web page.

In a web page, the first tag (specifically, <html>) indicates the markup language that is being used for the document. The <head> tag contains information about the web page. Lastly, the content appears in the <body> tag. The following illustration provides a summary.

In a web page, the first tag (specifically, <html>) indicates the markup language that is being used for the document. The <head> tag contains information about the web page. Lastly, the content appears in the <body> tag. The following illustration provides a summary.

Summary of Basic HTML Tags

Q. 3. Explain following attributes of <BODY> tag:-

1.     BGCOLOR

2.     BACKGROUND

3.     TEXT

4.     TOPMARGIN

5.     LINK

Ans. 1. BGCOLOR:- The bgcolor attribute specifies the background color of a document.

2       BACKGROUND:- The background attribute specifies a background image for a document.

3.     TEXT:- text attributes (in the sense of attributes of a text) are some data associated with particular chunks of text, except of its characters itself. Say, something more than a plain text.

4.    TOPMARGIN:- The margin-top property sets the top margin of an element by specifying a length or a percentage. Percentage values refer to the parent element's width. Negative margins are permitted. Note that adjoining vertical margins are collapsed to use the maximum of the margin values.

5.     LINK :- The HTML <a> tag defines a hyperlink. It has the following syntax: <a href="url">link text</a> The most important attribute of the <a> element is the href attribute, which indicates the link's destination. The link text is the part that will be visible to the reader.

Q. 4 What are tags and attributes in HTML?

Ans. HTML Attributes का उपयोग HTML Tags की विशेषताओं (Characteries) को Define करने के लिये किया जाता है. सभी HTML Tags अपनी Default Value में Show होते है. इस Default Value को Change करने के लिये ही Attributes का इस्तेमाल किया जाता है.

Q.5  Write a short note on Font tag with its attributes.

Ans. HTML font tag के द्वारा आप text पर different font attributes define कर सकते है। अपनी website के fonts को configure करके आप उसे और भी attractive, readable और structured बना सकते है।

इस tag को आप किसी paragraph पर भी apply कर सकते है और आप चाहे तो किसी paragraph में particular text पर भी इसे apply किया जा सकता है। <font> tag के 3 attributes होते है। 

  • size – इस attribute से आप font की size change कर सकते है। Font की size numbers में दी जाती है।    
  • face – इस attribute के द्वारा font family change की जाती है। आप जो font family चाहते है उसे inverted commas में define करते है।    
  • color – ये attribute font का कलर change करने के लिए यूज़ किया जाता है। आप color का hex code लिख सकते है या फिर color का नाम भी दे सकते है। 

 

 

Q.6 Write a short note on BR and HR tag ?

Ans. <Hr> – <hr> Element का पूरा नाम Horizontal Line है. Hr Element से HTML Document में Horizontal Line को Define किया जाता है. <Br> – <br> Element का पूरा नाम Break है. Br Element का उपयोग Single Line Break देने के लिए किया जाता है.

 

Q.7 Write a program in html to show the use of <hr> tag with attributes ?

Ans. <HTML>

<HEAD>

<TITLE>

HR tag with size attribute.

</TITLE>

</HEAD>

<BODY>

<HR size=”3”>

This is a line.

</BODY>

</HTML>

 

Q.8 Write a short note on Comment Tag?

Ans. <–…–> – यह Comment Tag है. Comment Element का उपयोग HTML Document में Comment Define करने के लिए किया जाता है.

Q.9 Explain <h1> to <h6> tag with Example ?

Ans.  The <h1> to <h6tags are used to define HTML headings. <h1> defines the most important heading. <h6> defines the least important heading. Note: Only use one <h1> per page - this should represent the main heading/subject for the whole page.

The HTML <h1> to <h6> tag is used to define headings in an HTML document. <h1> defines largest heading and <h6> defines smallest heading.

<html>

 

   <head>

      <title>HTML <h1> to <h6> Tag</title>

   </head>

 

   <body>

      <h1>Around the World</h1>

      <h2>Asian Countries</h2>

      <h3>India</h3>

   </body>

 

</html>

This will produce the following result −

 

Q. 10 Write a Program display the list of five animal names using <ol> tag ?

 

Ans. <html>

<head>

<title> HTML Ordered List </title>  

</head>

<body>

<ol>

 <li>Tiger</li>

 <li>Lion</li>

 <li>Monkey</li>

  <li>Dog</li>

   <li>Cow</li>

</ol>

</body>

</html>

The above program will output:

1. Tiger

2. Lion

3. Monkey

4. Dog

5. Cow

Q.11 Explain various List available in the HTML with example.

Ans. HTML में Data को Points में दिखाने के लिए कई प्रकार की Lists का Use किया जाता है. प्रत्येक प्रकार की List का अपना विशेष उद्देश्य और अर्थ होता है. नीचे HTML List के प्रकार के बारे में बताया जा रहा है.

·         Unordered List -UL List

·         Ordered List – OL List

·         Definition List – DL List

Unordered List

Unordered List को <ul> Tag द्वारा Define किया जाता है. इस Type की List का उपयोग एक प्रकार की सूचना को बिना किसी तय क्रम में दिखाने के लिए किया जाता है. Unordered List को Bulleted List भी कहते है. क्योंकि List Items के पहले Bullet लग जाते है.

Ordered List

Ordered List को <ol> Tag द्वारा Define किया जाता है. और List Item को <li> Element से Define करते है. Order List को Numbered List भी कहते है. OL का उपयोग एक प्रकार की सूचना को एकक तय Order (क्रम) में दिखाने के लिए किया जाता है. OL List में List Items के पहले Number Order से लिख जाते है.

Definition List

किसी शब्द या Term विशेष को परिभाषित करने के लिए Definition Lists को बनाया जाता है. Definition List को <dl> Tag से Define किया जाता है. Definition Term को <dt> और Definition Description को <dd> Element से Define किया जाता है.

 

Q.12 : What do you mean by hyperlink or linking in HTML?

Ans. हाइपरलिंक (Hyperlink) या link एक प्रकार का text होता है जिसे HTML द्वारा बनाया जाता है। जब इस पर click किया जाता है तो browser हमें किसी दुसरे web page पर लेकर जाता है। क्लिक करने पर कौन सा पेज open होगा यह HTML के code से तय होता है जिसमे हम उस पेज के URL यानि address का उपयोग करते हैं।

Q.13. What are types of linking  in HTML?

Ans Links are used to “link” a visitor from one area to another.There area many types of links :

§  Local: A page on the same server or directory

§  Internal: A section on the current page or document

§  External: A page or site on a different server or directory

§  Download: A file for the visitor to download

§  E-mail: Opens the visitor’s e-mail program

True /False

1.     HTML is language of Internet. True

2.     <Br> tag has no companion tag. T

3.     Tags used in HTML are case sensitive. F

4.     You can make a text bold by using <B> tag. T

5.     HTML provides six types of Heading. T

6.     <H6> defines the largest heading. F

7.     <P> tag is container Tag. T

8.     Scr is an attribute of <IMG> tag. T

9.     Values in HTML are provided with in Quotation marks. T

10.            In HTML links can be created by using <a> tag. T

11.            The <TR> tag defines a row in the table. T

12.            The <TD> tag defines a column in the table. T

13.            The <TH> tag is used to define  heading of the table.

14.            <HTML> tag tells the web browser where the web page starts and where it ends. T

15.            <BODY> tag starts after the </HEAD>. T

16.            Hexadecimal code “#0000FF” means Red color. T

17.            The default color of text is white. F

18.            The default color of hyperlinks is blue. T

 

 

 

 

 

 

 


Chapter -5 HTML Fundamentals(10+1)

  Chapter -5 HTML Fundamentals Q.1 Define HTML. Ans. HTML   एक MarkUp Language है , जिसे वेब डॉक्युमेंट (वेब पेज) बनाने के लिए विकसित ...