Tuesday, October 28, 2025

About JS

JS stands for ‘JavaScript’.
It is a high-level programming language.
It is one of the three core technologies of the World Wide Web, alongside HTML (for structure) and CSS (for styling) and JS adds interactivity.
JavaScript enables content to be interactive and dynamic, turning static content into responsive content that can react to user actions like clicks, hovers, or input fields. It allows developers to update webpage content, control multimedia, animate graphics, validate forms, and handle user input directly in the browser.

Originally, JavaScript was designed to run directly in web browsers (client-side) using users' devices (computer, tab, mobile) and device's resources, enabling features like interactive forms, animations, dynamic content updates without needing full page reloads.
With the advent of Node.js, JavaScript can also be used on the server-side using server’s resources, allowing developers to build full-stack applications using a single language. This includes tasks like managing databases, handling user authentication, and processing data.

Analogously, if HTML builds a car and CSS paints it then JS adds user interactivity and motion to the car.

Three ways to add JS to an HTML document -
1 Inline JavaScript -
JavaScript can run directly from HTML element attributes, such as onclick, onmouseover, etc.
Code -
<!DOCTYPE html>
<html>
<head>
    <title>The title</title>
</head>
<body>
    <h1>Welcome!</h1>
    <button onclick="alert('This is inline JavaScript');">Click this</button>
</body>
</html>

2 Internal JavaScript -
Using the <script> tag JavaScript can be embedded in HTML documents.
Code -
    <!DOCTYPE html>
    <html>
    <head>
        <title>The title</title>
        <script>
            function greet() {
                alert("Hello!");
            }
        </script>
    </head>
    <body>
        <h1>Welcome!</h1>
        <button onclick="greet()">Click this</button>
    </body>
    </html>

3 External JavaScript -
Create a separate file with a .js extension (e.g., script.js).
Write the JavaScript code within this file.
Link this file to the HTML document using the <script> tag with the ‘src’ attribute, by typing the path or URL of the JavaScript file.
Code -
    <!DOCTYPE html>
    <html>
    <head>
        <title>The title</title>
    </head>
    <body>
        <h1>Welcome!</h1>
        <script src="script.js"></script>
    </body>
    </html>

JavaScript code to print ‘Hello World’ where output is accessible through the browser console -
console.log("Hello World");

Monday, October 27, 2025

About CSS

About CSS

CSS stands for ‘cascading style sheets’.
It is a stylesheet language used to define how the output looks. It works alongside HTML which structures the content.
CSS focuses on visual design, layout, colors, fonts, spacing and style.
It also has control over typography and layout grids.
It provides support for animations, transitions, shadows, and other visual effects.

Basic Structure of CSS -
A CSS rule consists of two main parts:
1 Selector - identifies the HTML element which is to be styled. Eg. h1, p

For more, follow this Quora link - About CSS

Friday, October 24, 2025

About HTML

About HTML

HTML -
It stands for ‘hyper text markup language’. It is a language which is used to create structure content or the skeleton.

Tag -
These are keyword/s enclosed in angle brackets ( < > ), tags in html define headings, paragraph, images and links, for example : 
<h1> tag starts heading 1 and is called the opening tag and </h1> tag closes heading 1 and is called the closing tag,
<p> tag starts the paragraph and </p> tag closes the paragraph.

For more, follow this Quora link - About HTML

Monday, October 20, 2025

Trigonometry

Q. What is trigonometry?

A. Trigonometry Basics,

Trigonometry deals with angles, triangles and ratio between length of two sides of a right angled triangle.

Trigonometry deals with functions taking angle as input and giving ratio between length of two sides of a right angled triangle.

For more follow this Quora link - Trigonometry

Mechatronics

Mechatronics consists of Mechanics, Electronics, Electrical and Computers.

It involves designing, planning and creation of various mechanically active systems and products.

Mainly it contains mechanical components, microcontrollers, megacontrollers and computerised systems with co-ordinating softwares which makes the work smooth and easily operable.

For more click this Quora link - Mechatronics

Sunday, October 19, 2025

Fireworks

Fireworks

Science behind fireworks is that it is a chemical reaction that produces sound, light, heat and other chemical byproducts followed by the spontaneous chemical reaction.

It produces chemical byproducts like carbon dioxide (CO2), carbon monoxide (CO), Nitrogen oxides (NOx), fine metal powders, fine powders of metal oxides.

Time dialation

Time dialation is a concept which describes the difference between time passed or time consumed as experienced by the observers or watchers.

And these watchers or observers are also having some relative velocities among them.

Follow this Quora link for more - Time dilation


Friday, October 17, 2025

Types of solar collectors

Types of solar collectors

1. Flat plate solar collector

2. Parabolic trough collector

3. Mirror-Strip Reflector

4. Fresnel lens collector

For more follow this quora link - Details about solar collectors

Thursday, October 16, 2025

Solar Flares

Solar Flares

1. It is defined as the ejection of solar plasma due to the variation in electromagnetic radiation.

For more click on this quora link - Solar Flares

What is Motion?

Q. What is Motion?

A. (Note - This answer involves some advanced concepts of this domain) For an object, motion is defined as the change in position of an object with respect to change in time. Sometimes an object can be stationary from one reference frame while it could appear to be in variable motion with respect to another frame.

For more, click on this quora link - What is Motion?

Wednesday, October 15, 2025

How to make Chapati (Roti)?

Q. How to make Chapati (Roti)?

A. You will need flour (wheat flour/maize flour/rice flour), water, tawa (cooking pan), chakla-belan (rolling pin and board), steel tong (chimta, for flipping the chapati) and some cooking source (heat source).

Steps :—

Knead the flour into dough by adding water slowly so that it is neither sticky nor very hard, knead the dough properly.

For more steps, click on this quora link :- How to make chapati (Roti)?

About JS

JS stands for ‘JavaScript’. It is a high-level programming language. It is one of the three core technologies of the World Wide Web, alongsi...