Web Development Course: Comments And Tags In HTML
Hey Coders! Ye hmara new lesson hai jisme hm seekhege Comments and Tags ke baare mai. Comments mai iitna jada kuch seekhne wala nhi hai. Tags ek bahut important role play krte hai, Tags to hme aane hi chaiye aagar hme HTML seekhni because HTML sari tags pr hi based hai. Bina Tags ke HTML, HTML hi nhi khelayi jayegi. To chaliye start krte hai.

What Are Comments?

Comments basically hmari facility ke liye bnaya gya hai like aagar hme kisi koi code dena hai or hme koi particular line ko show krna hai bt vo code hmara browser mai show na ho to mai us line ko comment kr dete hai ise mai Comment Out bhi khe dete hai, Comments hmara browser ignore kr deta hai or baki code run kr deta hai, originally vo comment webpage pr source code mai available reta hai bt user ko dikhai nhi pdta hai Comments ki Starting hm <!-- se krte hai or ending --> iski example niche di gyi hai Have A Look to some examples!
<!-- This is an example of comment -->
<!-- This is DOCTYPE -->
<!DOCTYPE html>

<!-- This is HTML opening tag -->
<html lang="en">

<!-- This is HEAD opening tag -->
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HindiCoder</title>
</head>

<!-- This is BODY opening tag -->
<body>
    <!-- Here our body content come,
    Demo by HindiCoder,
    https://hindicoder.blogspot.com -->

</body>
</html>

Some Points About Comments.

  1. Comment hmesha (<!) ise start hota hai and (>) isse end hota hai. Exclamation sign se hi start hoga hmesha.
  2. Hmara Browser Comments ko ignore kr deta hai and baki code rum kr deta hai.
  3. Comments hmari  maddad kr liye liye bnaye gye hai. taki hme aagar future mai code samajna hai to hme comments dekh kr samaj aa jey.
  4. Single line comment ho ya multi line comment  dono ka formate same rehta hau jaise ki uuper second example di gy hai.

What Are Tags In HTML

Tags ek aaisi chiz jiski madad se hm aapni puri website build krte styling ko chod kr structure hm html ke tags se hi bnate hai generally tags ki opening and closing side hoti hai opening tag hme btata hai ki hmara tag yha se start hua hai and closing tag btata hai ki yha pr end hua hai chaliye tags ke baare ai or jante hai kya hote hai.

Some Examples of  Opening/Closing Tags

<p></p> -  Paragraph Tags.
<b></b> -  To style Bold something we will use Bold Tags.
<i></i> - To style Italic something we will use Italic Tags.
<u></u> -  To style Underline something we will use Underline Tags.
<div></div> -  To create a Div we use Div Tags.
* These are only some examples in further tutorials we will learn more about Tags.

Some Examples Of Empty Tags.

Empty Tags hm use khete hai jiska opening tag ho but closing tag na ho muje pta hai aapko confusion ho rhi hogi bt don't worry aap dheere dheere seekh jayege sb kuch easily.

<br> - This Tag is used for line break.
<hr> - This Tag is used to insert a line in web page.
<link> -  This Tag is used to link something (style/plugins).
<input> - This Tag is used to take input from user.
These are only some examples in further tutorials we will learn more about Tags.

Aagar aapko koi bhi dikar aa rhi ho to muje neeche comment kijiye mai jld se jld aapka reply dene ki koshish kruga {alert-warning}

Thanks For Visiting! Happy Coding!

2 Comments

Post a Comment

Previous Post Next Post