Java Script (JS) is a high-level, dynamic, and versatile programming language that is primarily used for adding interactivity and behavior to websites. It allows web developers to create dynamic and interactive features within web pages, such as animations, form validation, and updating content without requiring a full page reload. JavaScript is an essential component of web development alongside HTML (Hypertext Markup Language) and CSS (Cascading Style Sheets).
Client-Side Scripting: JavaScript is executed on the client side, which means it runs in the web browser of the user. This enables it to interact with the Document Object Model (DOM) of a web page and respond to user actions.
Dynamic Typing: JavaScript is a dynamically typed language, meaning you don't need to declare the data type of a variable explicitly. The type of a variable can change during the program's execution.
Event-Driven: JavaScript is heavily event-driven, meaning it can respond to events such as user clicks, form submissions, and more, and trigger actions in response to these events.
Cross-Platform: JavaScript is supported by most modern web browsers, making it a cross-platform language. This means code written in JavaScript will work on various operating systems and browsers.
Extensibility: JavaScript can be extended through the use of libraries and frameworks, such as jQuery, React, Angular, and Vue.js, which provide pre-written code for common tasks.
Server-Side Development: While JavaScript is primarily used on the client side, it can also be used on the server side with technologies like Node.js. This allows developers to use JavaScript for both front-end and back-end development. JavaScript has evolved significantly over the years, and it is an integral part of modern web development. It's also used in various other contexts, such as mobile app development (using frameworks like React Native), desktop application development (using frameworks like Electron), and even in some server-side applications.
HTML Code Example
All HTML documents must start with a document type declaration: .
The HTML document itself begins with and ends with .
The visible part of the HTML document is between
HTML tag
The HTML
element is used as a container for metadata (data about data). It is used between tag and tag. The head of an HTML document is a part whose content is not displayed in the browser on page loading. It just contains metadata about the HTML document which specifies data about the HTML document.An HTML head can contain lots of metadata information. But head part has a crucial role an HTML document while creating a website.
Metadata defines the document title, character set, styles, links, scripts, and other meta information.
HTML tags
Bootstrap sample code
Bootstrap sample code for practice
Columns in bootstrap
In bootstrap, every row is divided into 12 equal parts. Its provide mobile friendly and all device responsive design framework to manage html them on all devices.
Responsive containers
Responsive containers allow you to specify a class that is 100% wide until the specified breakpoint is reached, after which we apply max-widths for each of the higher breakpoints. For example, .container-sm is 100% wide to start until the sm breakpoint is reached, where it will scale up with md, lg, xl, and xxl.
Fluid containers
In bootstrap use .container-fluid class for a full width container, spanning the entire width of the viewport.
Utilities for layout
For faster mobile-friendly and responsive development, Bootstrap includes dozens of utility classes for showing, hiding, aligning, and spacing content.
Bootstrap is built with flexbox, but not every element’s display has been changed to display: flex as this would add many unnecessary overrides and unexpectedly change key browser behaviors. Most of our components are built with flexbox enabled.
Use the margin and padding spacing utilities to control how elements and components are spaced and sized. Bootstrap includes a six-level scale for spacing utilities, based on a 1rem value default $spacer variable. Choose values for all viewports (e.g., .me-3 for margin-right: 1rem in LTR), or pick responsive variants to target specific viewports (e.g., .me-md-3 for margin-right: 1rem —in LTR— starting at the md breakpoint).
Navbar code of HTML with CSS
Nav tag is used for navigation. Ul, li, achor tags are also used in navbar coding.
Navbar with bootstrap5
Navbars come with built-in support for a handful of sub-components
HTML Form sample code
The input from the user is generally sent to a server (Web servers, Mail clients, etc). We use the HTML tag