Question:
Which of the following is part of HTML code?
इनमें से कौन सा HTML कोड है?
Options:
- Tags
- Attributes
- Elements
- All options are correct
- टैग्स
- ऐट्रिब्यूट्स
- एलेमेन्ट्स
- सभी विकल्प सही हैं
Correct Answer: d)
Explanation:
Detailed Explanation:
The correct answer is d) All options are correct (सभी विकल्प सही हैं).
HTML (HyperText Markup Language) code is fundamentally built from three interrelated syntactic constructs:
- Tags (टैग्स): Keywords enclosed in angle brackets that tell the web browser how to format and display content. Examples include
<p>,<h1>,<a>,<div>, and their corresponding closing tags (e.g.,</p>). - Attributes (ऐट्रिब्यूट्स): Modifiers placed within opening tags that provide additional configuration, parameters, or metadata for an element. They are usually specified as name-value pairs (e.g.,
href="https://example.com"orsrc="image.jpg"). - Elements (एलेमेन्ट्स): The complete individual component in an HTML document consisting of the start tag, any attributes, the inner content, and the closing tag (e.g.,
<p class="intro">Hello World</p>).
Because tags, attributes, and elements collectively constitute HTML markup, option d is correct.
विस्तृत व्याख्या:
सही उत्तर d) सभी विकल्प सही हैं है।
एचटीएमएल (HyperText Markup Language) कोड के निर्माण में निम्नलिखित तीनों घटक शामिल होते हैं:
- टैग्स (Tags): कोण कोष्ठक
< >में बंद कीवर्ड जो ब्राउज़र को निर्देश देते हैं कि सामग्री को कैसे प्रदर्शित किया जाए (जैसे<p>,<b>,<table>)। - ऐट्रिब्यूट्स (Attributes): प्रारंभिक टैग के भीतर प्रयुक्त विशेषताएँ जो तत्व के बारे में अतिरिक्त जानकारी या गुण प्रदान करती हैं (जैसे
href,src,class)। - एलेमेन्ट्स (Elements): ओपनिंग टैग, ऐट्रिब्यूट्स, टेक्स्ट/कंटेंट और क्लोजिंग टैग का पूरा समुच्चय मिलकर एक HTML एलिमेंट बनाता है।
अतः ये सभी HTML कोड के अनिवार्य भाग हैं, इसलिए विकल्प d सही है।