Showing posts with label HTML. Show all posts

What is HTML attributes with Example

HTML attributes Kya hai 

Html

जितने भी HTML tags होते है उन सबके attributes होते है। ये name और value के pair में लिखे जाते है। Attributes के द्वारा आप tags को अपने according configure कर सकते है। Attributes को हमेशा starting tag में define किया जाता है। इन्हे define करने का उदाहरण निचे दिया जा रहा था।
<tagName attrName="value">
some text here.
</tagName>

Attributes advanced configuration के लिए यूज़ किये जाते है। जैसे की आप default page background नहीं चाहते तो उसको अपने according change कर सकते है। ऐसे ही आप यदि default text color नहीं चाहते है तो उसे भी change कर सकते है। Attributes को यूज़ करना बहुत ही simple है। बस आपको पता होना चाहिए की कौनसा attribute किस जगह यूज़ करना है। आगे attributes से related एक simple उदाहरण दिया जा रहा है।
<html>
<head>
<title>myPage</title>
</head>

<body bgcolor="black">

<h1 style="color:pink"> Heading </h1>
<p style="color:yellow">
This is a paragraph. And you are learning html in Hindi.
</p>

</body>

</html> 

ऊपर दिए हुए example में 2 जगह attributes यूज़ किये गए है। सबसे पहले <body> tag में bgcolor attribute यूज़ करते हुए page का background color define किया गया है। जब आप default body tag यूज़ करते है तो page का background color white रहता है। लेकिन जैसा की मैने आपको बताया की आप attributes के द्वारा page और text आप अपने according configure कर सकते है। इस attribute के द्वारा आप जो background अपने page का रखना चाहते है वो रख सकते है। जैसे की मैने example में black दिया है।

दूसरा attribute paragraph tag में यूज़ किया गया है। ये style attribute है। इस attribute के द्वारा आप tag पर CSS (Cascading Style Sheet) apply कर सकते है। CSS के द्वारा advanced configuration किया जाता है, जिसके बारे में आप आगे पड़ेंगे। जैसे की आप देख सकते है style attribute के द्वारा CSS apply किया गया है। इससे text का color change किया जाता है। और ऐसा ही heading tag के साथ भी किया गया है।
Scope of attributes 

Attributes का scope उनके tags के according होता है। जिस tag के साथ आप जो attribute apply करते है वो उसी tag तक रहता है। जैसे की आपने body tag में style tag को यूज़ करते हुए text color red define किया है। Body tag पुरे page के लिए होता है इसलिए ये attribute पुरे page के text को red में show करेगा। लेकिन ऐसा तब तक ही होगा जब तक कोई body tag से छोटा tag text को दूसरे color में define नहीं करता है। जैसे की आप आगे चलकर किसी paragraph tag का color green define करते है। तो ये color body tag के color को override करेगा। और आपका ये paragraph green text में show होगा। इसका उदाहरण निचे दिया जा रहा है। इसे आप execute करवा कर देख सकते है।    

<html>
<head>
<title> myPage </title>
</head>

<body style="color:red">

Learn html in Hindi <br>
Lean html in Hindi in 2 days. <br>
Learn html in Hindi pdf.

<p Style="color:green">
This is some text here
</p>

</body>

</html> 
     
ऊपर दिए हुए उदाहरण में आप देख सकते है की paragraph का text color अलग से define किया गया है। ये body के text color को override करता है। HTML attributes को यूज़ करने की कुछ guide line होती है। जिनको follow करके आप attributes का बेहतर इस्तेमाल कर सकते है। इनके बारे में निचे दिया जा रहा है।

Guidelines for using HTML attributes 
  1. हमेशा attributes को lower case में define करे। 
  2. हमेशा attributes की values quotation mark में ही define करे। 
 Most Popular HTML attributes 

निचे आपको HTML में commonly यूज़ होने वाले attributes की list दी जा रही है।  

 Attribute Explanation  Example  

id  

HTML document में किसी tag को uniquely identify करने के लिए id attribute यूज़ किया जाता है। किन्ही 2 tags की id same नहीं हो सकती है।
   

<p id="mypara"> 

class 

ये attributes tags को अलग अलग class में categories करने के लिए यूज़ किया जाता है। बहुत से tags एक class के हो सकते है।

    

<h1 class="java"> 

title  

किसी tag का tittle देने देने के लिए title attribute यूज़ किया जाता है।  

<p title="Hello"> 

style 

इस attribute के द्वारा आप tag पर style rules apply कर सकते है।  

<p style="color:red






















अगर आप को हमारा यह Artical कैसा  लगा comments के द्वारा  जरूर बताऐ और इस आर्टिकल को शेयर करे 

HTML links kya hai aur kaise use kare

HTML links kya hai aur kaise use kare

 

एक link ऐसा text या image होती है जिस पर click करते ही आप दूसरे page पर redirect कर दिए जाते है। जब भी आप किसी link पर अपना cursor ले जाते है तो वह एक clickable hand icon में convert हो जाता है। Links का उपयोग basically एक page से दूसरे page पर जाने के लिए किया जाता है। Links web की दुनिया की roads होती है।  

HTML में link create करने के लिए <a> tag यूज़ किया जाता है। इसे anchor tag भी कहा जाता है। इस tag के सबसे basic attributes href और target होते है। इन दोनों attributes के बारे में निचे बताया गया है। 

href 
इस attribute के द्वारा आप उस page का address define करते है जो आप link के click होने पर show  करना चाहते है।  

href = "page-Address"

target 
target - इस attribute के द्वारा आप वह frame define करते है जँहा पर आप page शो करना चाहते है। ये attribute optional होता है। यदि आप इसे define नहीं करते है तो page new tab में open होता है। इस attribute कि कुछ predefined values होती हिए जिन्हें आप युज कर सकते हैं। 

target = "frame-Name"
  • _blank - जब आप ये value define करते है तो आपका webpage new tab या window में open होता है। 
  • _self - जब आप ये value define करते है तो आपका webpage उसी tab या frame मे open होता है जिसमें link पर click किया गया था। 
  • _parent - ये value webpage को parent frame में open करती है। 
  • _top - इस value के द्वारा web page full document में open होता है। 
  • customFrame - आप खुद का भी कोई frame define कर सकते है। ऐसा करने पार webpage उसी मे open होगा।                  

Creating links in HTML 

जैसा की मैने आपको बताया की HTML के द्वारा link create करने के लिए आप <a> tag यूज़ करते है। यँहा पर में आपको इसे कैसे यूज़ करते है ये बताने वाला हूँ। आइये इस tag का normal structure देखते है।      

<a href="address-of-webpage> link-Name </a>

HTML में links create करने का complete उदाहरण नीचे दिया जा रहा है।
<html>
<head>
<title>Text Formatting</title>
</head>

<body>

<p>
Go to Google <a href="www.google.com">Click Here</a>
</p>

<p>
Go to Best Hindi Tutorials <a href="www.besthinditutorials.com">Click Here</a>
</p>

<p>
Go to Facebook <a href="www.facebook.com">Click Here</a>
</p>

</body>

</html> 

Configuring links 

Links को आप अपने page के according configure भी कर सकते है। जैसे की आप apply कर सकते है की जब भी कोई link पर mouse ले जाये तो उसका color green हो जाये और mouse हटाते ही red हो जाये। ये सब आप style tag के द्वारा कर सकते है। इसके लिए आप a के साथ condition colon लगाकर define करते है। इनके बारे में निचे दिया जा रहा है। इनका उदाहरण आप CSS वाली tutorials में देख सकते है।  

Condition Explanation  
a:linkइस condition में link first time web page पर show होती है।  
a:visitedइस condition में link पहले visit कि जा चुकी होती है।  
a:hoverइस condition में mouse पर cursor ले जाया जाता है।  
a:activeजब आप किसी link पर click करते है तो वह link active होती है।  

Aap ko hamara yah Artical kaisa laga comments ke through jarur bataye aur latest updates ke liye hamari site ko follow kare 

HTML formatting Tags with Example

 HTML formatting Tags with Example


Hello friends हमने आपको अपने पिछले Artical मे HTML के बारे मे बताया था और अब html के artical को आगे बढाते हुए बात करते है HTML Formatting Tags 

HTML में कुछ tags सिर्फ text formatting के लिए provide किये गए है। इन tags का इस्तेमाल करते हुए आप web page पर text की presentation और position को control कर सकते है। जैसे की आप text को bold या underline कर सकते है। किसी text editor में आप ये काम एक button click से कर सकते है लेकिन HTML में इसके लिए आप tags यूज़ कर सकते है। कुछ common formatting type है जो आप text पर apply करते है उसकी list निचे दी जा रही है।
  • Bold
  • Italic
  • Underline
  • Marked
  • Superscript 
  • Subscript
  • Small
  • Deleted

HTML <b> tag   
HTML के द्वारा किसी text को bold करने के लिए <b> tag यूज़ किया जाता है। इसके लिए आप starting और ending tags के beech में text को लिखते है।
<b> This text will be bolded. </b>

HTML <i> tag  
HTML में किसी text को italic बनाने के लिए <i> tag यूज़ किया जाता है। 

<i> This text will be italic. </i>
   

HTML <ins> tag 
किसी text को underline करने के लिए <ins> tag यूज़ किया जाता है। 

<ins> This text will be underlined</ins>
   
HTML <mark> tag
यदि आप किसी text को highlight करना चाहते है तो उसके लिए <mark> tag यूज़ कर सकते है।  

<mark> This text will be highlighted </mark>
   

HTML <sup> tag
किसी text को super script करने के लिए आप <sup> tag यूज़ कर सकते है।
<p> This is normal text<sup> This will be super scripted </sup> This is normal again </p>
  

HTML <sub> tag 
अगर आप text को subscript में लाना चाहते है तो उसके लिए आप <sub> tag यूज़ करेंगे।   

<p> This is normal text <sub> This text will be subscripted </sub></p>

HTML <small> tag
यदि आप किसी text को दूसरे text से छोटा रखना चाहते है तो इसके लिए आप <small> tag  यूज़ कर सकते है। कई editors ऐसा text को highlight करने के लिए भी करते है। 

<p> Normal Text <small> Smal Text </small> </p>
    

HTML <del> tag
किसी tag को deleted शो करने के लिए आप <del> tag का इस्तेमाल कर सकते है। जब किसी tag को deleted शो करते है तो उस text के through line show होती है। 

<p> <del> This text will be deleted</del></p>


इसका एक complete उदाहरण निचे दिया जा रहा है।
<html>
<head>
<title>Text Formatting</title>
</head>

<body>

<p>
<b> This text will be bolded. </b>
</p>

<p>
<i> This text will be italic. </i>
</p>

<p>
<ins> This text will be underlined</ins>
</p>

<mark> This text will be highlighted </mark>

<p> This is normal text<sup> This will be super scripted </sup> This is normal again </p>

<p> This is normal text <sub> This text will be subscripted </sub></p>

<p> Normal Text <small> Smal Text </small> </p>

<p> <del> This text will be deleted</del></p>

</body>

</html> 

Styling HTML text 

Text को style करने के लिए जैसे की उसका color change करना या font family change करना आदि के लिए CSS को यूज़ किया जाता है। CSS एक बड़ा topic है। इसके बारे में आप बाद में पढ़ सकते है। यँहा पर सिर्फ आपकी समझ के लिए कुछ styles का इस्तेमाल बताया जा रहा है। इसके लिए आप Style tag यूज़ करते है। और एक CSS property और उसकी values देते है। 

Changing text color 
किसी भी tag के text का color change करने के लिए आप CSS की color property यूज़ करते है। और इसके बाद colon लगाकर color का नाम देते है। 
   
<p style="color:red">This text will be red. </p>

Changing font family 
Text की font family change करने के लिए आप font family property यूज़ करते है और value के रूप में font family का नाम देते है।
<p style="font-family:Arial"> This text will be in Arial </p>

Changing text size 
Text की size change करने के लिए आप font size property यूज़ करते है और value के रूप में जो size आप चाहते है वह देते है।
<p style="font-size: 45"> This size is changed by style tag. </p>

Changing text position 
Text की position change करने के लिए text align property यूज़ की जाती है और value के रूप में आप left, right या center pass कर सकते है।
<p style="text-align="center"> This position is change by style tag</p>

इसका उदाहरण निचे दिया जा रहा है।
<html>
<head>
<title>Text Formatting</title>
</head>

<body>
<p style="color:red">This text will be red. </p>

<p style="font-family:Arial"> This text will be in Arial </p>

<p style="font-size: 45"> This size is changed by style tag. </p>

<p style="text-align:center">
This position is changed by style tag.
</p>

</body>

</html>
अगर आप को ये artical पसंद आए तो हमें comments के through जरूर बताऐ और इस Article को social media पर Share करें

Formatting Tag Kya hai? Aur iska use kaise kare

Aap apna webpage banane ke time images ke sath kai tarah ke text ko bhi page me likhe ne ki jarurat hoti hai. Page me write kiye Jaane wale text ko aap apne according format kar sakte hai. Text, sentence, aur paragraph ko format karne ke liye aapko niche  example diye ja rahe hai jiske through aap apne webpage ko bahut Acha bana sakte hai.
<P>(Paragraph Tag)- Is element ka use karke aap page me paragraph likh sakte hai jo ki  aap ke through use kiye ja rahe browser ki setting ke according wavsthit hoti hai. 

Example: <P> .. apna Paragraph likhe... </P>
<Font> (Font Tag)- Is element ka use karke aap Likhe hue Data ke  font ka color, Size ko change kar  sakte  hai . Ek example ke through Welcome ko nimn setting ke according dikha sakte hai.

     
Font - Arial 
Size - 20
Color - Green

Example 

<Font face ="arial" Size = 20 color ="Green">
WelCome
</Font>
Is example ke through aap samgh gaye hoge ki Face, Size, aur color ye sab Font tag ke option hai. Jinhe Font tag ke sath upar dikhaye steps ke sath use kiya ja sakta hai. Example. <Font Color ="Red"> Matter</Font>
<B> Isse bold tag kaha jata hai. Iska use karke aap apne text ko Bold bana sakte hai.

So friends in formating tags ka use karke aap apne page me title heading aur page ka color apply kar sakte hai.
hum ummide karte hai ki aapko ye artical pasand kaya hoga. So plz is artical ko social media me share jarur kare.

What is HTML ? Puri jankari Hindi Me

Hello dosto aapko hum is site ke through HTML ki puri jankari step by step batane wale hai. To aap is artical ko dhayan se read kare.

HTML(Hyper Text Markup Langauge

HTML ka pura naam Hyper text markup langauge hai. Jiske through internet par WWW ki yah main programming langauge hai. HTML ke through internet par Web page ya Website ko develop kiya jata hai. HTML ka use karke hum apne webpage me Text, images, sound aur kisi aur website ke link dal sakte hai. HTML ki  file ko hum notepad me bana sakte hai. HTML ka निर्माण  Tim Bemers Lee ne CERN me Geneva ki European Laboratory me kiya gaya tha. HTML ke through hum ek simple webpage ya website bana sakte hai. To dosto apko pta chal gaya hoga ki html kya hai. Aage hum bataye ge ki html ke under hum ek document kaise banate hai.

HTML Document

HTML me banaye gaye document text(ASCII) me likhe hote hai. jinko kisi bhi text editer me kiya ja sakta hai. kisi bhi HTML document me fixed text ka use hota hai.
<HTML>
<Head>
<Title>
<Head>
<hi>to <h6>
<Body>

Tags ka use karne ke bade unhe close karne ke bade. jise aap us tag ke samne '/' laga sakte hai jaise <HTML> ko band karne ke liye </HTML> tag ka use karke band kar sakte hai. Aur inhi tags ke under hi hum webpage me Text, heading , Video,  add karke ek simple webpage bana sakte hai.
Header Element:

HTML langauge ki saari
programming Tags ke through ki jati hai. Kisi bhi HTML document ka sabse pahla tag hamsha  <html> hona chahiye aur is tag me sampurn tags ka use hota chahiye. Header tag ki help se webpage ki heading jis me  <title> aur bhi heading ko write kiya jata hai. <TITLE > tag ki help se diya gaya text Internet Explorer ke title bar me display hote hai. Head me di Jane wali Heading  <h1>se lekar <h6> tak ho sakti hai. Aur har ek tag ki ek opening hoti hai jo uske name se start aur har tab ko last me close kiya jata hai. For example- 
<HTML>
<HEAD>
<TITLE>First page</TITLE></HEAD>
</HTML>

Body Tag:
Is tag ke under HTML ke sabhi tag likhe Jaane chahiye iske pehle likhe Jaane wale tag hai HTML, HEAD, TITLE,  etc.
To dosto aapko html kya hai. aur html Document ki jankari kaisi lagi agar achi lage to plz iske baare hume comments ke through jarur bataye. Aur hamari site ko follow kare kyoki hum is site ke through html ki puri jankari dene wale hai.