Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by Shubham Vora
793 articles
Computer Network - Definition, Components, Objectives
A computer network is a collection of interconnected computing devices that can exchange data and share resources with each other. These networked devices use standardized rules called communication protocols to transmit information over physical or wireless connections. Computer networks enable distributed processing where tasks are divided among multiple computers rather than being handled by a single machine. This collaborative approach allows organizations to achieve greater efficiency, resource sharing, and scalability across different locations. Basic Computer Network Structure Client Client ...
Read MoreHow Does the Access-Control-Allow-Origin Header Work?
The Access-Control-Allow-Origin header is a fundamental component of Cross-Origin Resource Sharing (CORS) that enables web browsers to safely allow websites from one origin to request resources from another origin. An origin consists of three components: protocol (scheme), hostname, and port. For example, https://www.tutorialspoint.com:443 represents a complete origin, not just the hostname. How CORS Works CORS uses HTTP headers to inform browsers which origins are permitted to access resources from a server. Here's how the process works: Origin A (e.g., https://www.tutorialspoint.com) wants to request resources from Origin B (e.g., http://api.example.com) The browser blocks ...
Read MoreWhat are Max parallel HTTP connections in a browser?
In this tutorial, we will learn about Max parallel HTTP connections in a browser and how they impact web page loading performance. To understand this topic, we will explore what parallel connections are, the reasons behind connection blocking, browser limitations, and optimization strategies. What Are Parallel Connections? Instead of downloading embedded objects sequentially (original HTML page, first embedded item, second embedded object, etc.), browsers can establish multiple parallel connections to simultaneously carry out numerous HTTP transactions. Sequential vs Parallel HTTP Connections Sequential Loading ...
Read MoreHow to take HTML form data as text and send them to html2pdf?
The html2pdf is a JavaScript library that allows developers to convert HTML content to PDF format. It takes HTML elements as parameters and generates downloadable PDF documents. This library is particularly useful for creating reports, forms, and other documents from web page content. In this article, we will learn how to capture HTML form data and convert it to PDF using the html2pdf library. We will explore different approaches to include form data in PDF documents. Syntax Following is the basic syntax to convert HTML form data to PDF using html2pdf − var element = ...
Read MoreWhat can be done with style sheets that can not be accomplished with regular HTML ?
CSS stylesheets provide presentation and visual enhancements that go far beyond what regular HTML can accomplish. While HTML defines the structure and content of a web page, CSS controls the visual appearance, layout, animations, and responsive behavior that make modern websites attractive and functional. Why Stylesheets are Essential HTML alone can only create basic structure with limited presentation capabilities. Without CSS, web pages would appear as plain text with default browser styling. Stylesheets enable developers to create visually appealing, interactive, and responsive designs that enhance user experience significantly. The key advantages of using stylesheets include separation of ...
Read MoreTop 5 HTML Tricks That You Should Know
HTML continuously evolves with each new release, introducing powerful features that many developers overlook. These HTML tricks can significantly enhance your web pages and provide better user experiences without requiring complex JavaScript libraries or frameworks. Here are the top 5 HTML tricks that every developer should know, complete with practical examples and implementation details. Color Picker in HTML HTML5 provides a built-in color picker using the element with type="color". This creates a native color selection interface that allows users to pick colors visually or enter RGB/hex values directly. Syntax Following is the syntax to ...
Read MoreHow to add HTML and CSS to PDF?
In this tutorial, we will learn how to convert HTML and CSS content to PDF using JavaScript libraries. Creating PDFs from web content allows users to save styled webpages, forms, reports, or any HTML content as downloadable documents. Converting HTML and CSS to PDF from scratch using vanilla JavaScript is complex and requires extensive coding. Fortunately, several JavaScript libraries simplify this process by providing easy-to-use methods for generating PDFs from web content. We will explore two popular libraries − html2pdf.js and jsPDF − both of which can convert styled HTML content into PDF documents directly in the browser. ...
Read MoreHow to include another HTML file in an HTML file?
In this tutorial, we will learn different methods to include another HTML file within an existing HTML file. This technique is useful for creating reusable components, headers, footers, or content sections that can be shared across multiple pages. Several methods are available to include external HTML files, each with its own advantages and use cases. Let us explore the most effective techniques that have proper web browser support. Using jQuery Load Method The jQuery load() method is one of the most popular approaches for dynamically including HTML content. It fetches content from an external file and inserts ...
Read MorePOST unchecked HTML checkboxes
In HTML forms, checkboxes that are unchecked are not included in form submissions by default. This can create issues when you need to track the state of all checkboxes, not just the ones that are checked. This tutorial demonstrates how to POST unchecked HTML checkboxes to ensure complete form data is sent to the server. HTML forms typically send only data from checked checkboxes when using POST or GET methods. Unchecked checkboxes are omitted entirely from the submitted data, making it impossible for the server to distinguish between an unchecked checkbox and a checkbox that doesn't exist. This behavior ...
Read MoreHow to show some custom menu on text selection?
In text editors like Microsoft Word, selecting text reveals a custom menu with formatting options like bold, italic, color changes, and alignment controls. This tutorial demonstrates how to create a similar custom context menu that appears when users select text on a webpage. How It Works The technique involves capturing mouse coordinates during selection and positioning a custom menu at the selection point. We use the getSelection() API to detect when text is selected and getBoundingClientRect() to calculate the menu position. Implementation Steps Step 1 − Create HTML structure with content div and hidden custom ...
Read More