Posts

CSS Basics

Image
CSS (Cascading Styles of Sheets) is the language used for styling the HTML documents/elements. Web page with plain HTML is like human skeleton without any skin/muscle, while HTML with CSS is like Human with skin,muscle and skeleton. CSS Improves the User Experience and asthetics of the web page. Cascading styles meaning the style applied to parent element will be cascaded down to child elements. Styles of higher precendence override the lower precendence. Example is, we may apply the font size of the body tag(Parent) to 16px, while applying font size 20px to a div(child), 16px will be overriden by 20px. if there is no font size mentioned then it will take 16px font size from parent's style. Basic syntax of css style is as below selector{  property_name: property_value; } There are different

HTML Basics

HTML (Hypertext markup language) is used to build web pages, which are accessed across internet, it defines the structure/skeleton of webpage content using different tags, ex: <h1>Heading1</h1> . Each tag represent a structure, which usually has opening and closing tags as above example, though there are few exceptions,which are self closing. ex: <br/> Below is the sample HTML structure. <html> &lt- root html tag <head> &lt- head tag has meta,title,style and script etc. tags <title>Title</title> </head> <body> &lt- actual page content goes inside <h1>Header</h1> <body> </html> Let's understand some basic HTML tags

Javascript Date Methods

Date plays an important role in tracking moments when an event has occurred. new Date() returns a Date object with current date and time(Ex: Sat Aug 05 2023 13:13:26 GMT+0530 (India Standard Time)). const d = new Date("2023-03-24");//Date is 2023-03-24 const d = new Date();// Below are the different kinds of date formats that are accepted(Y-Year;M-Month;D-Date) ISO (YYYY-MM-DD) const d = new Date("2024-06-29") Short (MM/DD/YYYY) const d=new Date("06/29/2024"); Long (MMM DD YYYY )(DD MMM YYYY) Note : Month and Date order can be in any order. Separator can

Java Script Array Methods

Array is a collection of data of the same type, data is stored in the contiguous memory locations, arrays are accessed using index, the variable for which the array is assigned will be pointing to the address of first value of array, location of any item can be calculated quickly, thus accessing an array using an index is quick. Let us see some array methods in javascript. Array methods can be mutable or immutable Mutable meaning original array is modified Immutable meaning method will return a new array without modifying original array Let's be little animated, let's take array with animals as values.

Computer Science Basics

Image
Computers Computers are used for solving real time problems, compared to humans they are not intelligent ,they cannot think on thier own (well ! time will change things...computers please don't get offended till then &#128515),still computers are having huge impact on humans is because of their potential to solve any bigger problem with simple operations,which humans otherwise give up in the mid way due to monotonous and time consuming process in solving. Unlike humans they don't have girl friends or family or friends. Their focus and power is truly dedicated in solving problems. and they are trust worthy because they don't have any prejudice or predetermination. Computer Programs are used for solving problems, they are written in Programming languages such as C,C++,Java,Javascript and Python etc., a program is written in a specific f