• Skip to primary navigation
  • Skip to main content

  • Home
  • Tutorials
    • Computer Tutorial
    • Internet Tutorial
    • Windows Tutorial
    • Android Tutorial
    • MS Office
      • MS Word Tutorial
      • MS Excel Tutorial
      • MS PowerPoint Tutorial
    • HTML Tutorial
    • CSS Tutorial
    • WordPress Tutorial
    • Blogger Tutorial
    • MS Paint Tutorial
    • WordPad Tutorial
    • Notepad Tutorial
    • Paytm Tutorial
    • WhatsApp Tutorial
  • How To
  • Articles
  • Career Guide
  • Video Tutorials
  • Books
  • Courses

CSS comment Property क्या हैं पूरी जानकारी हिंदी में?

अंतिम सुधार September 29, 2018 लेखक TP Staff

इस Tutorial में हम आपको CSS Comment की पूरी जानकारी देने वाले हैं. आप जानेंगे की CSS Comment क्या हैं – What is CSS Comment in Hindi? CSS में Comment कैसे Add किया जाता हैं? और CSS Comment के क्या फायदे हैं?

इस Tutorial को छोटे-छोटे भागों में बांटा गया हैं. ताकि CSS Comment के प्रत्येक भाग को आसानी से समझा जा सके?

Table of Content

  1. CSS Comment का परिचय – Introduction to CSS Comment in Hindi.
  2. Benefits of Using CSS Comment?
  3. CSS Comment लिखने का तरीका – How to Write CSS Comment in Hindi?
  4. आपने क्या सीखा?

CSS Comment का परिचय

लगभग हर Web Designing Language में Comment Add करने की सुविधा होती हैं. आप PHP, Java, JavaScript और HTML आदि भाषाओं में Comment Write कर सकते हैं.

CSS Comment भी अन्य भाषाओं के Comment की भांती Browser द्वारा Ignore किये जाते हैं. Comments को Visitors नही देख सकते हैं. इन्हे केवल Web Masters ही देख पाते हैं.

Comments में Users के लिए कोई जानकारी नहीं लिखि जाती हैं. Comments के द्वारा Web Masters अपने लिए Notes लिखते हैं.

CSS Comment Use करने के फायदे

  1. Comment से CSS Code को Easily Explain किया जा सकता हैं.
  2. Comment एक Stylesheet को पठनीय (Readable) और समझने योग्य (Understandable) बनाते हैं.
  3. Web Masters भविष्य के लिए Notes बनाते हैं. ताकि बाद में CSS को आसानी से Maintenance किया जा सके.
  4. Comment के द्वारा एक Stylesheet को अलग-अलग Sections में बांटा जा सकता हैं.

CSS Comment लिखने का तरीका

Stylesheet में Code Add करना बहुत ही आसान हैं. CSS Comment के लिए Opening Tag और Closing Tag को सही Use करना आना चाहिए.

  • Forward Slash (/) और Asterisk (*) से Comment Open होता हैं. इस तरह – /*
  • और Asterisk (*) तथा Forward Slash (/) के साथ Comment Close होता हैं. इस तरह */

तो CSS Comment कुछ इस प्रकार लिखा जायेगा

/* Comment text यहाँ लिखा जायेगा… */

Opening और Closing Comment Tag के बीच में लिखा गया Text Comment Content कहलाता हैं. आप जरूरत के अनुसार Single Line Comment और Multi Line Comment भी Add कर सकते हैं.

Single Line Comment

Single Line Comment में आप बस एक Line का Comment Content लिखते हैं. इस तरह Add किया जाता हैं.

/* This CSS Property Make Paragraph Text Orange */

p {
color:orange;
}

Multi Line Comment

Multi Line Comment में आप एक से ज्यादा Line का Comment Content लिखते हैं. इस तरह Add किया जाता हैं.

/* This CSS property make paragraph text orange.
You can change this properety.
And write a new properety.*/p {
color:orange;
}

आपने क्या सीखा?

इस Tutorial में हमने आपको CSS Comment की पूरी जानकारी दी हैं. आपने जान है कि CSS Comment क्या होता है और CSS में Comment कैसे लगाया जाता है? उम्मीद हैं कि यह Tutorial आपके लिए उपयोगी साबित होगा.

About TP Staff

लेखक: TP Staff

TP Staff, TutorialPandit की कम्प्यूटर और टेक्नोलॉजी पेशेवरों की टीम है, जिसका नेतृत्व जी पी गौतम द्वारा किया जाता है. TutorialPandit के माध्यम से भारत देश में हर साल लाखों लोग फ्री डिजिटल शिक्षा ग्रहण कर रहे है.

Join TutorialPandit on Telegram
Use Filmora video editor to express your creativity and amaze with beautiful results.

Reader Interactions

Comments

  1. Taanraj says

    May 18, 2019 at 7:28 pm

    Wow very useful article and great work. thanks…

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

© Copyright TutorialPandit. All Rights Reserved.

  • About Us
  • Contact Us
  • Terms
  • Privacy Policy
  • Comment Policy