Hello दोस्तों इस chapter में हम सीखेंगे कि कैसे हम font
color change कर सकते है, background में इमेज लगाना और background का color change, और उसके साथ ही link create करके दो
webpages को आपस में connect करना |
Font –
इस कमांड कि सहायता से text का आकर , font
color,को बदला जा सकता है|
Syntax: <font attribute> Any text
</font>
attribute- Size (any value)
Face
(font name)
color (color name)
Example –
<Body>
<font size=10> Computer
Education</font>
<font size=10 face=Arial> Computer
Education</font>
<font size=10 face=Arial color=red>
Computer Education</font>
</Body>
Background color-
यह कमांड बनाये गए वेब पेज के background color
को change में use किया जाता है | यह कमांड body टैग के अंदर ना होकर body टैग के
साथ होती है |
Example –
<Body Bgcolor=Red>
Any Text
</Body>
Center-
इस कमांड की सहायता से text को center में show
किया जा सकता है | अत: text के प्रारंभ में <center> टैग तथा अंत में
</center> टैग का use किया जाता है|
Syntax –
<center> Any Text </center>
Text Color-
इस कमांड कि सहायता से webpage पर show हो रहे
सभी text का color बदला जा सकता है |
Example –
<Body Text=Red>
Any Text
</Body>
Horizontal line-
इस कमांड कि सहायता से एक line खिची जा सकती है उस line के color के साथ साथ उसकी
width color को भी change किया जा सकता है |
Syntax- <Hr attribute>
यहां attribute :
Color
Align = left,right,center
width = pixel or percentage
size – Any Numeric value
Background –
यह कमांड किसी भी picture को webpage के पीछे
(background) पर लगाने में use किया जाता है | अत: इसे body के अंदर ना देकर body
टैग के साथ में use किया जाता है |
Syntax- <Body Background=Path of file>
</Body>
Example –
<Body
Background=”C:/Windows/Photos/flower.jpg”>
Hyper Text –
इस प्रकार के टैग को anchor टैग भी कहा जाता है
| अत: इस टैग को <a> से start तथा </a> से close किया जाता है |
सामान्यत: hypertext का color नीला होता है क्योकि यह एक होती है anchor टैग का
use link बनाने तथा दो webpages को आपस में connect करने के लिए किया जाता है |
Syntax-
<a href=”Path of file” attribute> any text </a>
यहां attribute : <body link=color name>
(color name= hypertext के color को show करना
चाहता है |)
<body vlink = color name>
(color name = हाइपरलिंक के बाद hypertext का
color )
The target Attribute
We have used target attribute in our previous example. This attribute is used to specify the location where linked document is opened. Following are the possible options −
<a href="file path.html" target= "_blank"> click here </a>
<a href="file path.html" target= "_blank"> click here </a>
Sr.No | Option & Description |
---|---|
1 |
_blank
Opens the linked document in a new window or tab.
|
2 |
_self
Opens the linked document in the same frame.
|
3 |
_parent
Opens the linked document inthe parent frame.
|
4 |
_top
Opens the linked document in the full body of the window.
|
5 |
targetframe
Opensthe linked document in a named targetframe.
|
* Nilesh dadheech
0 Comments