Important Notice:

Course Content
Heading Tag / Paragraph Tag
0/2
Horizontal Rules (HR element)
0/1
Font Element
0/1
Image Element
0/1
HTML Basic (Chapter 3) M2-R5.1
About Lesson
  • BGCOLOR:-

    <body> tag में इस Attribute का Use Webpage का background color सेट करने के लिए किया जाता है। 

Syntax:-<body bgcolor= “color name”>

Example:-<body bgcolor= “cyan”>

  • Background:-

इस Attribute का Use body के Background में Images सेट करने के लिए किया जाता हैं। 

Note: यदि image व HTML की file एक ही फ़ोल्डर में हैं तो image का Name तथा  उसका extension ही आएगा। और यदि image व html की file एक ही folder में नहीं हैं तो double quotes(” “)  के अंदर image के  extension के साथ – साथ उसका पूरा Path आएगा। 

Syntax:-<body background=”pathfilename”>

Example:-<body background=”c:imagea.jpg”>

  • Text:-

इस Attribute का उपयोग body के text को color दिया जाता हैं। 

Syntax:-<body text=”color name”>

Example:-<body text=”red”>

  • TopMargin:-

इस Attribute का उपयोग body के text को top से मार्जिन देने के लिए किया जाता हैं। 

Syntax:-<body topmargin=”value”>

Example:-<body topmargin=”20px”>

  • Left Margin:-

इस Attribute का उपयोग body के text को left से मार्जिन देने के लिए किया जाता हैं। 

Syntax:-<body leftmargin=”value”>

Example:-<body leftmargin=”20px”>

  • Link:-

हाइपरलिंक का डिफ़ॉल्ट color सेट करने के लिए बॉडी टैग की ‘लिंक’ attribute का उपयोग किया जाता है, ताकि यह अन्य सामान्य टेक्स्ट से अलग दिखाई दे।

Syntax:-<body link=”color name”>

Example:-<body link=”green”>

  • Alink:-

बॉडी टैग की ‘एलिंक’ attribute का उपयोग active हाइपरलिंक का color सेट करने के लिए किया जाता है, ताकि यह अन्य हाइपरलिंक से अलग दिखाई दे।

Syntax:-<body alink=”color name”>

Example:-<body alink=”yellow”>

  • Vlink:-

बॉडी टैग की ‘vlink’ attribute का उपयोग विज़िट किए गए हाइपरलिंक का color सेट करने के लिए किया जाता है, ताकि यह अन्य हाइपरलिंक से अलग दिखाई दे।

Syntax:-<body vlink=”color name”>

Example:-<body vlink=”purple”>

 

  • BGCOLOR:-

    This attributes is used to add a color to the background of a web page.

Syntax:- <body bgcolor= “color name”>

Example:- <body bgcolor= “cyan”>

  • Background:-

The background attribute is used to specify the image to be display as background of the web page. In this attribute, we specify the image filename with its complete path of location.

Syntax:- <body background=”pathfilename”>

Example:- <body background=”c:imagea.jpg”>

  • Text:-

This attribute is used to change color of the text written within the body tag.

Syntax:- <body text=”color name”>

Example:- <body text=”red”>

  • TopMargin:-

This attribute is used to give margin from top to the body text.

Syntax:-<body topmargin=”value”>

Example:-<body topmargin=”20px”>

  • Left Margin:-

This attribute is used to give margin from left to the body text.

Syntax:-<body leftmargin=”value”>

Example:-<body leftmargin=”20px”>

  • Link:-

The ‘link’ attribute of Body tag is used to set the default color of the hyperlink, so that it appears different from other ordinary text.

Syntax:-<body link=”color name”>

Example:- <body link=”green”>

  • Alink:-

The ‘alink’ attribute of Body tag is used to set the color of the active hyperlink, so that it appear different from other hyperlinks.

Syntax:- <body alink=”color name”>

Example:- <body alink=”yellow”>

  • Vlink:-

The ‘vlink’ attribute of Body tag is used to set the color of the visited hyperlink, so that it appears different from other hyperlinks.

Syntax:- <body vlink=”color name”>

Example:- <body vlink=”purple”>

error: Content is protected !!