In CSS, how do we make a comment?
CSS में, हम कमेंट कैसे बनाते हैं?
The correct answer is / *content*/.
Key Points
- In CSS (Cascading Style Sheets), a comment is used to add notes or explanations about the code, which can be helpful for anyone reading the code.
- A comment in CSS starts with /* and ends with */.
- Comments are ignored by the browser and do not affect the layout of the web page.
सही जवाब / *content*/ है।
मुख्य बातें
• CSS (कैस्केडिंग स्टाइल शीट्स) में, कमेंट का इस्तेमाल कोड के बारे में नोट्स या स्पष्टीकरण जोड़ने के लिए किया जाता है, जो कोड पढ़ने वाले किसी भी व्यक्ति के लिए मददगार हो सकता है।
• CSS में कमेंट /* से शुरू होता है और */ पर खत्म होता है।
• ब्राउज़र कमेंट को नज़रअंदाज़ कर देते हैं और वे वेब पेज के लेआउट पर कोई असर नहीं डालते हैं।
The HTML element used to enter a scrolling area of text is______.
टेक्स्ट के स्क्रॉलिंग एरिया को डालने के लिए इस्तेमाल होने वाला HTML एलिमेंट ______ है।
Solution:
Key Points
- The < marquee > HTML element is used to create a scrolling text or image within a web page. It is a non-standard HTML element and is not recommended for use in modern web development due to its lack of support in HTML5.
- The < marquee > element can be used to scroll text horizontally or vertically, and it includes various attributes for controlling the scroll speed, direction, and behavior.
समाधान:
मुख्य बातें
• < marquee > HTML एलिमेंट का इस्तेमाल वेब पेज में स्क्रॉलिंग टेक्स्ट या इमेज बनाने के लिए किया जाता है। यह एक नॉन-स्टैंडर्ड HTML एलिमेंट है और HTML5 में सपोर्ट न होने के कारण मॉडर्न वेब डेवलपमेंट में इसके इस्तेमाल की सलाह नहीं दी जाती है।
• < marquee > एलिमेंट का इस्तेमाल टेक्स्ट को हॉरिजॉन्टली (आड़ा) या वर्टिकली (खड़ा) स्क्रॉल करने के लिए किया जा सकता है, और इसमें स्क्रॉल की स्पीड, दिशा और व्यवहार को कंट्रोल करने के लिए कई एट्रिब्यूट होते हैं।
Which of the following is used with the tag as an attribute to specify an alternate text for an image, if the image for some reason cannot be displayed?
अगर किसी वजह से इमेज दिखाई नहीं देती है, तो इमेज के लिए एक वैकल्पिक टेक्स्ट (alternate text) बताने के लिए इनमें से किस एट्रिब्यूट का इस्तेमाल किया जाता है?
Solution:
Key Points
The required alt attribute specifies an alternate text for an image if the image cannot be displayed. The alt attribute provides alternative information for an image if a user for some reason cannot view it (because of slow connection, an error in the src attribute, or if the user uses a screen reader).
Syntax: <img alt="text">
Hence the correct answer is alt.
समाधान:
मुख्य बातें
ज़रूरी alt एट्रिब्यूट इमेज के लिए एक वैकल्पिक टेक्स्ट बताता है अगर इमेज दिखाई नहीं देती है। alt एट्रिब्यूट इमेज के लिए वैकल्पिक जानकारी देता है अगर कोई यूज़र किसी वजह से उसे देख नहीं पाता है (जैसे धीमे कनेक्शन, src एट्रिब्यूट में कोई गड़बड़ी, या अगर यूज़र स्क्रीन रीडर का इस्तेमाल करता है)।
सिंटैक्स: <img alt="text">
इसलिए सही जवाब alt है।
Which of the following is not true about HTML?
HTML के बारे में इनमें से कौन-सी बात सही नहीं है?
Solution
The correct option is (2)
<meta....../>
Concept:-
The <meta> tag defines metadata about an HTML document. Metadata is the data about data that is included in the metadata tag.
Examples:
Define keywords for search engines:
<meta name = "keywords"
content = "HTML, CSS, JavaScript">
Solution
The correct option is (2)
<meta....../>
कॉन्सेप्ट:-
<meta> टैग HTML डॉक्यूमेंट के बारे में मेटाडेटा को परिभाषित करता है। मेटाडेटा, डेटा के बारे में वह डेटा है जिसे मेटाडेटा टैग में शामिल किया जाता है।
उदाहरण:
सर्च इंजन के लिए कीवर्ड्स परिभाषित करें:
<meta name = "keywords"
content = "HTML, CSS, JavaScript">
HTML used
HTML में इस्तेमाल होने वाले टैग
Solution
The correct answer is Fixed tags defined by language
Key Points
In the context of HTML, it uses a fixed set of tags defined by the language itself. Every HTML tag serves a specific purpose and they are predefined - they are standardized, and their behavior is predefined by the HTML specification. Developers must use these set tags to structure and mark up the content in HTML documents
It's also worth noting that while these tags are "fixed" in the sense that their names and behaviors are predefined, they can be used flexibly to create a wide variety of document structures and designs, as the specifics of
how they are used and combined is up to the developer.
समाधान
सही जवाब है: भाषा द्वारा तय किए गए फिक्स्ड टैग
मुख्य बातें
HTML में, भाषा द्वारा ही तय किए गए टैग के एक फिक्स्ड सेट का इस्तेमाल किया जाता है। हर HTML टैग का एक खास मकसद होता है और वे पहले से तय (predefined) होते हैं - वे स्टैंडर्डाइज़्ड होते हैं, और उनका व्यवहार HTML स्पेसिफिकेशन द्वारा पहले से तय होता है। डेवलपर्स को HTML डॉक्यूमेंट में कंटेंट को स्ट्रक्चर और मार्क-अप करने के लिए इन तय टैग्स का इस्तेमाल करना होता है।
यह भी ध्यान देने वाली बात है कि भले ही ये टैग इस मायने में "फिक्स्ड" हों कि इनके नाम और व्यवहार पहले से तय हैं, फिर भी इनका इस्तेमाल अलग-अलग तरह के डॉक्यूमेंट स्ट्रक्चर और डिज़ाइन बनाने के लिए लचीले ढंग से किया जा सकता है, क्योंकि
इनका इस्तेमाल और कॉम्बिनेशन कैसे किया जाए, यह डेवलपर पर निर्भर करता है।
What indicates the content in file is HTML when delivered on the network?
नेटवर्क पर भेजे जाने पर क्या बताता है कि फ़ाइल का कंटेंट HTML है?
Solution:
- Content-type header indicates the content in the file is HTML and can see file content through it when delivered on the network
- .html is the file extension for HTML
समाधान:
• कंटेंट-टाइप हेडर बताता है कि फ़ाइल का कंटेंट HTML है और नेटवर्क पर भेजे जाने पर इसके ज़रिए फ़ाइल का कंटेंट देखा जा सकता है
• .html, HTML के लिए फ़ाइल एक्सटेंशन है
Which of the following statement(s) is/are true about web browser?
(i) They are application software used to search, retrieve and display information available on the World Wide Web.
(ii) They send requests to web servers all over the Internet using HTTP.
वेब ब्राउज़र के बारे में इनमें से कौन सा/से कथन सही है/हैं?
(i) ये ऐसे एप्लीकेशन सॉफ़्टवेयर हैं जिनका इस्तेमाल वर्ल्ड वाइड वेब पर मौजूद जानकारी को खोजने, प्राप्त करने और दिखाने के लिए किया जाता है।
(ii) ये HTTP का इस्तेमाल करके पूरे इंटरनेट पर वेब सर्वर को अनुरोध (requests) भेजते हैं।
Solution
The correct answer is Both (i) and (ii).
Key Points
A web browser takes you anywhere on the internet.
It retrieves information from other parts of the web and displays it on your desktop or mobile device.
The information is transferred using the Hypertext Transfer Protocol, which defines how text, images and video are transmitted on the web.
समाधान
सही उत्तर (i) और (ii) दोनों है।
मुख्य बिंदु
वेब ब्राउज़र आपको इंटरनेट पर कहीं भी ले जाता है।
यह वेब के अन्य हिस्सों से जानकारी प्राप्त करता है और उसे आपके डेस्कटॉप या मोबाइल डिवाइस पर दिखाता है।
जानकारी को हाइपरटेक्स्ट ट्रांसफर प्रोटोकॉल (HTTP) का इस्तेमाल करके ट्रांसफर किया जाता है, जो यह तय करता है कि वेब पर टेक्स्ट, इमेज और वीडियो कैसे ट्रांसमिट किए जाते हैं।
Consider the following statements for XML (Extensible Markup Language):
A. The number of tags decreases and users can define their own tags.
B. Its is used for Presentation.
C. It is case sensitive.
D. It is dynamic.
Which of the above statements are true?
XML (एक्सटेंसिबल मार्कअप लैंग्वेज) के लिए नीचे दिए गए कथनों पर विचार करें:
A. टैग की संख्या कम हो जाती है और यूज़र अपने खुद के टैग बना सकते हैं।
B. इसका इस्तेमाल प्रेजेंटेशन के लिए किया जाता है।
C. यह केस-सेंसिटिव है।
D. यह डायनामिक है।
ऊपर दिए गए कथनों में से कौन से सही हैं?
Key Points
- Statement A: True. The number of tags decreases in XML since users can define their own tags based on their needs. This flexibility allows XML to be extensible and customizable.
- Statement B: False. XML is not used for presentation purposes. It is a data description and storage format. Presentation is typically handled by technologies like HTML or XSLT when XML data is displayed.
- Statement C: True. XML is case-sensitive. For example, `` and `` would be treated as two distinct elements.
- Statement D: True. XML is dynamic in nature because it allows users to define their own custom tags and adapt the structure as needed.
मुख्य बातें
• कथन A: सही। XML में टैग की संख्या कम हो जाती है क्योंकि यूज़र अपनी ज़रूरतों के हिसाब से अपने खुद के टैग बना सकते हैं। यह लचीलापन XML को एक्सटेंसिबल और कस्टमाइज़ेबल बनाता है।
• कथन B: गलत। XML का इस्तेमाल प्रेजेंटेशन के मकसद से नहीं किया जाता है। यह डेटा के विवरण और स्टोरेज का फ़ॉर्मैट है। जब XML डेटा दिखाया जाता है, तो प्रेजेंटेशन का काम आमतौर पर HTML या XSLT जैसी टेक्नोलॉजी करती हैं।
• कथन C: सही। XML केस-सेंसिटिव है। उदाहरण के लिए, `` और `` को दो अलग-अलग एलिमेंट माना जाएगा।
• कथन D: सही। XML स्वभाव से डायनामिक है क्योंकि यह यूज़र को अपने कस्टम टैग बनाने और ज़रूरत के हिसाब से स्ट्रक्चर को बदलने की सुविधा देता है।
Which of the following language defines the structure, the legal elements and the attributes of an XML document?
इनमें से कौन सी भाषा XML डॉक्यूमेंट के स्ट्रक्चर, लीगल एलिमेंट्स और एट्रिब्यूट्स को परिभाषित करती है?
Question Not Attempted
Solution
The correct answer is 2) DTD.
Explanation:
A DTD (Document Type Definition) is a language used to define the structure, legal elements, and attributes of an XML document. It specifies the rules for the document's markup, including which elements are allowed, their
order, nesting, and the attributes they can have, ensuring that the XML document is valid and well-formed.
XSL (Extensible Stylesheet Language): XSL is a family of languages used for transforming and presenting XML documents, not for defining their structure. It includes XSLT and XSL-FO
CSS (Cascading Style Sheets): CSS is used to style and format the presentation of web documents (e.g., HTML or XML), not to define the structure or legal elements of an XML document.
XSLT (Extensible Stylesheet Language Transformations): XSLT is a subset of XSL used specifically for transforming XML documents into other formats (e.g., HTML or another XML structure). It does not define the structure or legal elements of XML.
Thus, DTD is the language that defines the structure, legal elements, and attributes of an XML document, making 2) the correct answer.
समाधान
सही उत्तर 2) DTD है।
व्याख्या:
DTD (डॉक्यूमेंट टाइप डेफ़िनिशन) एक ऐसी भाषा है जिसका उपयोग XML डॉक्यूमेंट के स्ट्रक्चर, लीगल एलिमेंट्स और एट्रिब्यूट्स को परिभाषित करने के लिए किया जाता है। यह डॉक्यूमेंट के मार्कअप के लिए नियम तय करती है, जिसमें यह शामिल है कि कौन से एलिमेंट्स की अनुमति है, उनका क्रम, नेस्टिंग और उनमें कौन से एट्रिब्यूट्स हो सकते हैं, जिससे यह सुनिश्चित होता है कि XML डॉक्यूमेंट वैलिड और सही ढंग से बना हुआ (well-formed) है।
XSL (एक्सटेंसिबल स्टाइलशीट लैंग्वेज): XSL भाषाओं का एक समूह है जिसका उपयोग XML डॉक्यूमेंट को बदलने और प्रस्तुत करने के लिए किया जाता है, न कि उनके स्ट्रक्चर को परिभाषित करने के लिए। इसमें XSLT और XSL-FO शामिल हैं।
CSS (कैस्केडिंग स्टाइल शीट्स): CSS का उपयोग वेब डॉक्यूमेंट (जैसे HTML या XML) के प्रेजेंटेशन को स्टाइल और फ़ॉर्मेट करने के लिए किया जाता है, न कि XML डॉक्यूमेंट के स्ट्रक्चर या लीगल एलिमेंट्स को परिभाषित करने के लिए।
XSLT (एक्सटेंसिबल स्टाइलशीट लैंग्वेज ट्रांसफॉर्मेशन): XSLT, XSL का एक हिस्सा (सबसेट) है जिसका उपयोग विशेष रूप से XML डॉक्यूमेंट को अन्य फ़ॉर्मेट (जैसे HTML या किसी अन्य XML स्ट्रक्चर) में बदलने के लिए किया जाता है। यह XML के स्ट्रक्चर या लीगल एलिमेंट्स को परिभाषित नहीं करता है।
इस प्रकार, DTD वह भाषा है जो XML डॉक्यूमेंट के स्ट्रक्चर, लीगल एलिमेंट्स और एट्रिब्यूट्स को परिभाषित करती है, इसलिए 2) सही उत्तर है।
Which HTTP status code is returned when a requested web page is permanently moved to a new URL?
जब कोई रिक्वेस्ट किया गया वेब पेज स्थायी रूप से नए URL पर ले जाया जाता है, तो कौन सा HTTP स्टेटस कोड मिलता है?
Solution:
Key Points
- HTTP status code 301 indicates that the requested resource has been permanently moved to a new URL.
- When a server responds with a 301 status code, it also provides the new location (URL) where the resource can be found.
- This status code is primarily used for URL redirection, ensuring users and search engines are directed to the updated web page.
- It helps maintain SEO rankings by preserving link equity when a page's URL changes.
- Browsers automatically redirect users to the new URL specified in the response.
समाधान:
मुख्य बातें
• HTTP स्टेटस कोड 301 बताता है कि रिक्वेस्ट किया गया रिसोर्स स्थायी रूप से नए URL पर ले जाया गया है।
• जब सर्वर 301 स्टेटस कोड के साथ जवाब देता है, तो वह नया लोकेशन (URL) भी बताता है जहाँ रिसोर्स मिल सकता है।
• इस स्टेटस कोड का इस्तेमाल मुख्य रूप से URL रीडायरेक्शन के लिए किया जाता है, ताकि यह पक्का हो सके कि यूज़र्स और सर्च इंजन अपडेटेड वेब पेज पर पहुँचें।
• यह पेज का URL बदलने पर लिंक इक्विटी को बनाए रखकर SEO रैंकिंग को बनाए रखने में मदद करता है।
• ब्राउज़र अपने-आप यूज़र्स को रिस्पॉन्स में बताए गए नए URL पर रीडायरेक्ट कर देते हैं।


