Friday, January 16, 2026

CSS Properties: Complete Reference.

 In this example, we will see the use of many properties usage, all the keywords mentioned inside of { and } braces are properties.



Contituents of the head tag in html

 The HTML <head> element acts as a container for metadata about the document, which is data not displayed on the actual web page. The contents of the <head> are used by browsers and search engines to define the page's title, link external resources, and provide other important information. 

The primary constituents of the <head> tag are: 
  • <title>: This element is required in every HTML document and defines the title of the page, which is shown in the browser's title bar or page tab and is crucial for SEO.
  • <meta>: This tag is used to specify metadata such as the character set, page description, keywords, author, and viewport settings (for responsive design). For example, <meta charset="UTF-8"> ensures proper character display.
  • <link>: This element defines the relationship between the current document and an external resource. It is most commonly used to link to external CSS stylesheets or a favicon.
  • <style>: This tag is used to define internal CSS styling information for the specific HTML document, though linking external stylesheets with <link> is generally preferred for larger projects.
  • <script>: This element is used to embed or reference client-side JavaScript files, adding interactivity to the webpage.
  • <base>: This element specifies the base URL and/or target for all relative URLs within the document. Only one <base> element can exist in a document.
  • <noscript>: This tag defines alternative content to be displayed if the user's browser does not support or has disabled JavaScript. 

HTML Vs HTML5

 HTML stands for Hyper Text Markup Language. It is used to design web pages using a markup language. HTML is a combination of Hypertext and Markup language. Hypertext defines the link between the web pages. A markup language is used to define the text document within the tag which defines the structure of web pages. This language is used to annotate (to add notes to a book or text, giving explanations or comments, at the note for the computer) text so that a machine can understand it and manipulate text accordingly.

Features of HTML:

  • It allows the creation of hyperlinks with the <a> tag, connecting different web pages.
  • Uses tags to mark elements and content, such as headings (<h1> to <h6>).
  • It supports embedding images (<img>), videos (<video>), and audio (<audio>) for multimedia content.
  • It provides form elements like <form>, <input>, and <button> for user input and data submission.
  • Semantic tags like <article>, <section>, and <nav> for better document structure and accessibility.

HTML 5 is the fifth and current version of HTML. It has improved the markup available for documents and has introduced application programming interfaces(API) and Document Object Model(DOM). It has introduced various new features like drag and drop, geo-location services

Features of HTML5:

  • Older version of HTML are less mobile-friendly. HTML5 language is more mobile-friendly
  • Introduced new semantic elements like <header>, <footer>, <section>, and <article> for improved structure.
  • Enhances multimedia capabilities with native support for audio and video elements.
  • Provides the localStorage API, allowing web applications to store data locally on the user's device.
  • Enables websites to access a user's geographical location.
  • Uses SQL database to store data offline.

Purpose of "!DOCTYPE html"

 The purpose of the declaration is to ensure web browsers display the webpage in standards mode by instructing them to use modern HTML5 specifications. [1, 2]


It is a required preamble, not an actual HTML tag, and must be the very first line of code in an HTML document. [1, 3]

Key functions of the declaration:
  • Enables Standards Mode: Without the correct declaration, browsers may switch to "quirks mode" to support legacy websites. This outdated mode can lead to inconsistent or broken layouts and rendering bugs, especially with CSS and JavaScript features.
  • Ensures Consistent Rendering: By triggering standards mode, it guarantees that all modern browsers (Chrome, Firefox, Safari, Edge, etc.) interpret HTML and CSS according to the same rules, resulting in a consistent user experience across different platforms.
  • Aids in Validation: It provides essential information to markup validation services (like the W3C Markup Validation Service) so they can check your code against the correct HTML standards and specifications.
  • Supports Modern Web Technologies: The HTML5 declaration is necessary for modern web development, ensuring that responsive design techniques, media queries, and the latest HTML elements work as intended. [4, 5, 6, 7, 8]
In short, the declaration is a small but critical line of code that "sets the stage" for how a browser should interpret and display a webpage correctly. [4]



Monday, January 12, 2026

Java Reverse Reducing Half Triangle pattern

 import java.util.Scanner;


class ReverseReducingHalfTriangle

{

static void reverseReducingHalfTriangle()

{

int height = 9;

//Run the outer for loop for 5 times, to print 5 rows.

for(int i = 0; i<5; i++)

{

//Reset height to 9 after each iteration of the inner loop.

height = 9;

//Run the inner for loop as many times as the value of 'i'.

for(int j = 0 ; j <= i ; j++)

{

//Print values from 9, reducing by 2 in each iteration. Number of iterations = 'i'.

System.out.print(height);

height -= 2;

}

//Introduce a new line after each iteration of the inner loop.

System.out.println();

}

}

public static void main(String[] args)

{

reverseReducingHalfTriangle();

}

}


Output:




Sunday, January 11, 2026

Sample informal letters in Hindi

सैंपल 1: अपने छोटे भाई को पैसे बचाने और वित्तीय रूप से जागरूक होने की सलाह देते हुए एक पत्र लिखना।

बी, 38 रेनबो अपार्टमेंट्स,

211001, लखनऊ, उत्तर प्रदेश

भारत

28 नवंबर, 2021

प्रिय रोहित,

आप कैसे हैं? मैं आशा करता हूँ कि आप ठीक हैं। माता और पिता यहां अच्छे हैं। चूंकि हमने लंबे समय से संवाद नहीं किया है, इसलिए मैंने आपको एक पत्र लिखने का फैसला किया है। चूंकि आप छुट्टियों के दौरान भी कॉलेज में पढ़ाई जारी रखना चाहते हैं, ऐसा लगता है कि आप अपने नए कॉलेज और शहर में अच्छा समय बिता रहे हैं। पिताजी ने कल आपके क्रेडिट कार्ड बिल का भुगतान किया; उन्होंने कुछ नहीं कहा, लेकिन मैं कह सकता हूँ कि वह निराश थे! मैं आपको अपने खर्च में कटौती करने के लिए प्रोत्साहित करूंगा, एक बड़े भाई के रूप में नहीं, बल्कि एक मित्र के रूप में। क्योंकि मैं वहां जा चुका हूं और वह कर चुका हूं, मैं एक नई जगह में अकेले रहने का उत्साह और दोस्तों के साथ घूमने का मजा समझता हूं। दुनिया में जाना और पूरी तरह से जीवन जीना बहुत अच्छा है, लेकिन हमें विवेकपूर्ण भी होना चाहिए।

परिवार सभी खर्चों को वहन करने के लिए तैयार हैं क्योंकि वे नहीं चाहते कि आप किसी भी अवसर या अनुभव से चूकें, लेकिन यह सुनिश्चित करना आपके ऊपर है कि पैसा बुद्धिमानी से खर्च किया जाए। व्यापक दृष्टिकोण अपनाने और प्राथमिकताएँ निर्धारित करने का प्रयास करें। अपने दैनिक खर्चों पर ध्यान दें और जो आवश्यक नहीं हैं उनपर फिजूल खर्च न करें। एक या दो सप्ताह के लिए सूची का पालन करने का प्रयास करें और आप धीरे-धीरे अतिरिक्त को कम करने में सक्षम होंगे। जैसा कि कहा जाता है, "एक पैसा बचाया एक पैसा प्राप्त किया है," इसलिए जीवन को पूरी तरह से जारी रखते हुए बुद्धिमानी से दिए गए धन का प्रबंधन करें क्योंकि जीवन में बेहतरीन चीजें मुफ्त हैं।

अंत में, मैं आपको आपकी पढ़ाई और अन्य प्रयासों के लिए शुभकामनाएं देना चाहता हूं। हम सभी आपको याद करते हैं और आपसे मिलने का इंतजार नहीं कर सकते, इसलिए कृपया जल्द से जल्द घर लौट आएं।

तुम्हारा प्यारा भाई,

अनुराग

सैंपल 2:  एक मित्र को उसकी सफलता पर बधाई देने के लिए एक पत्र

56. पन्ना एन्क्लेव एमजी रोड,

3 लेन कोलकाता -89

पश्चिम बंगाल

दिनांक: 18 जून 2020

प्रिय प्रीति,

आप कैसी हैं? आपके परिवार में बाकी सदस्य कैसे हैं? वहां मौसम कैसा है? मैं आशा करता हूँ की तुम अच्छी होगी। मैं भी यहाँ बहुत अच्छा हूँ।

मैंने सुना है कि आप अपनी कक्षा में प्रथम स्थान पर थीं। मुझे आप पर बेहद खुशी और गर्व है। मैं आपको आपकी उपलब्धि पर बधाई देना चाहता हूं। मुझे यकीन है कि आपने इसके लिए बहुत मेहनत किया है, और अब आपने अंततः अपना लक्ष्य प्राप्त कर लिया है।

मैं आपके भविष्य के प्रयासों के लिए शुभकामनाएं देता हूं। ऐसे ही करते रहो। मैं आपसे मिलने और आपको व्यक्तिगत रूप से बधाई देने का भी प्रयास करूंगा। यदि हम कभी मिलते हैं, तो निस्संदेह हम आपको आपकी उपलब्धियों के लिए बधाई देंगे।

तब तक आप अपना और अपने परिवार का ख्याल रखें।

अपना ध्यान रखना।

प्यार से,

रवि

सैंपल 3: अपने पिता को वार्षिक समारोह में आमंत्रित करने के लिए एक पत्र लिखें

33. फिफ्थ एवेन्यू

चौथा चौराहा

मुंबई -89

महाराष्ट्र

दिनांक: 18 जून 2020

प्रिय पिताजी (या आप अपने पिता को कैसे संबोधित करते हैं)

आप कैसे हैं? माँ कैसी हैं? वहां मौसम कैसा है? मुझे आशा है कि सबकुछ अच्छा होगा। मैं भी अच्छा हूं।

मैं आपको यह बताने के लिए पत्र लिख रहा हूं कि मेरा कॉलेज अगले महीने एक वार्षिक समारोह आयोजित करेगा। मैं समारोह का मेजबान बनूंगा, और मैं वहां एंकरिंग करूंगा। मुझे बहुत खुशी होगी अगर आप और मां इस कार्यक्रम में शामिल हो सकें। वार्षिक समारोह दिनांक 30 जून 2020 को हमारे महाविद्यालय के सभागार में होगा।

कृपया भाग लेने के लिए हर संभव प्रयास करें; हमें आपको देखे हुए काफी समय हो गया है। अगर मैं आपके सामने प्रदर्शन कर पाऊं और आपको गर्व महसूस करा पाऊं, तो मैं सचमुच अभिभूत हो जाऊंगा। शायद लौटते समय मैं भी आपके साथ आ जाऊँगा। मुझे आपसे फिर मिलने का इंतज़ार रहेगा। तब तक अपना ख्याल रखें।

अपना ध्यान रखना

ढेर सारा प्यार

सैंपल 4: अपने बोर्डिंग स्कूल का वर्णन करते हुए अपने मित्र को एक पत्र लिखें

सैनिक स्कूल, कुंजपुरा

हरयाणा

10 अक्टूबर, 2022

प्रिय सुमित (आपके मित्र का नाम) 

मुझे उम्मीद है कि आपके साथ सब ठीक है। आपके अनुरोध के अनुसार, मैं यह पत्र अभी लिख रहा हूं कि मैं आपके साथ अपने अनुभव साझा करने के लिए बोर्डिंग स्कूल में नामांकित हूं।

मैं कुछ दिन पहले यहां पहुंचा हूं। स्कूल पर्यावरण के अनुकूल है, जिसमें हरियाली और विभिन्न रंगों के फूल हैं। मेरी कक्षाओं और छात्रावास के दोनों कमरों में उत्कृष्ट वेंटिलेशन है और प्रकाश के संपर्क में हैं। हमें गर्मियों में एयर कंडीशनर की भी आवश्यकता नहीं होती है।

मेरे सहपाठी बहुत अच्छे हैं और मैंने कुछ अच्छे दोस्त भी बनाए हैं। डॉर्म साथियों के लिए भी यही सच है। यहां का खाना भी बेहतरीन है। हमारे पास टेलीविजन खेलने और देखने दोनों के लिए समय है।

इस जगह में हर कोई अपनी पढ़ाई और दैनिक कार्यक्रम के बारे में अविश्वसनीय रूप से अनुशासित और सख्त है। कुल मिलाकर इस जगह का वातावरण बहुत ही प्यारा है। अपने आप को लिखित रूप में अभिव्यक्त करने से डरो मत।

आपका प्यारा

विश्वास

सैंपल 5: अपने मित्र को पत्र लिखकर बताएं कि आपने नया साल कैसे मनाया।

14वीं जाट गली

सफियाबाद रोड 

नरेला, दिल्ली

18 अक्टूबर, 2022

प्रिय राकेश

क्या चल रहा है? मुझे उम्मीद है कि आपके साथ सब ठीक है। हम सब यहाँ ठीक हैं। मैं आपको यह बताने के लिए पत्र लिख रहा हूं कि मेरा नया साल कैसा रहा। सबसे पहले आपको और आपके परिवार को नव वर्ष की बहुत बहुत बधाई। आशा है कि यह वर्ष आपके लिए खुशी और सफलता लेकर आए। यह साल क्वारंटीन का साल था और सभी ज्यादातर समय घरों के अंदर ही रहे। इसलिए मैंने अपना घर अपने चचेरे भाइयों के लिए खोल दिया। उस शाम हम सबने एक साथ बैठकर स्वादिष्ट भोजन और तरह-तरह की मिठाइयाँ खाईं। मैंने और मेरे कजिन्स ने घर को गुब्बारों और अलग-अलग रंग की लाइटों से सजाया।

मेरे पिताजी और मेरे चाचा बगीचे में चिकन बीबीक्यू ग्रिल कर रहे थे। मेरी माँ और मौसी रसोई में रात के खाने के लिए एक प्यारी सी बिरयानी बना रही थी। हम सभी "अपने गुब्बारे को फूटने से कौन रोक सकता है?" जैसे खेलों में लगे हुए हैं। एक और खेल जिसे हमने तब भी खेला था जब संगीत नहीं चल रहा था लेकिन जब संगीत चल रहा था तब भी नृत्य करना जारी रखा। हारने वाला वह होगा जो आगे बढ़ा। उस रात मैंने खूब मस्ती की।

अपने अलाव के चारों ओर, हम नाचते-गाते हुए नए साल में झूम उठे। यह एक बेहतरीन समय था। इसके बाद स्वादिष्ट भोजन परोसा गया। उसके बाद हम सबने फैसला किया और सो गए। आपके नए साल की पूर्व संध्या पर क्या हुआ? मुझे लिखें और इसका विस्तार से वर्णन करें। मुझे आपके पत्र का बेसब्री से इंतजार रहेगा। कृपया अपने माता-पिता को मेरा अभिवादन प्रेषित करें।

आपका प्यार से

प्रकाश

सैंपल 6: एक मित्र को एक मिलन समारोह आयोजित करने के बारे में पत्र।

369, बीएम कॉलोनी

अन्ना नगर

चेन्नई

16 दिसंबर, 2021

प्रिय मिथुल

नमस्ते! आप क्या कर रहे हैं? हमें पिछली बार बात किए हुए कुछ समय हो गया है। मेरे द्वारा आयोजित एक सभा में हमारे सभी दोस्तों को आमंत्रित किया गया है। मैंने बहुत सारे लोगों को आमंत्रित किया, जिनमें... (नामों का उल्लेख करें) शामिल हैं... यह शानदार होगा यदि हम सब एक साथ मिल सकें।

मुझे याद है कि हम अपने कॉलेज के दिनों में कितनी बार एक साथ घूमते थे। दोस्तों के साथ फिल्मों में जाना, डाउनटाउन बियर पीना, और आम तौर पर हमारे जीवन का समय चिंता मुक्त होना। मुझे खुशी है कि मुझे आप सभी के साथ अपने बेहतरीन साल बिताने का मौका मिला।

हम रोज साथ घूमते थे, लेकिन आजकल हम शायद ही कभी एक-दूसरे को देखते हैं। हम सभी के पास बात करने के लिए, हंसने के लिए, एक दूसरे के परिवारों से मिलने के लिए और भी बहुत कुछ है। आप सभी के साथ एक दिन बहुत यादगार रहेगा।

कार्यक्रम का स्थान:___

तारीख: ____

समय: ____

मैं आप सभी को एक बार फिर देखकर रोमांचित हूं। कृपया मुझे बताएं कि क्या आप सभा में भाग लेने में सक्षम हैं।

आपका प्यार से 

नवीन (आपका नाम)


What is a superconductor?

 A superconductor is a material that can conduct electricity with zero electrical resistance when it is cooled below a specific, very cold t...