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
Articles by Tanya Sehgal
4 articles
How to Resize SVG in HTML?
Every HTML document can contain different image formats, such as PNG, jpeg, SVG, gif, etc. that can be adjusted according to your needs. This article will explore various ways to resize an SVG image in HTML. SVG (Scalable Vector Graphics) is an image format used in web development. It is an XML-based image format that can be scaled to any size without losing its quality. Due to this reason, it is best to use an SVG image for logos and icons. These images are resolution-independent, meaning they can be scaled to any size without losing quality. Resizing ...
Read MoreHow to Render an HTML String Preserving Spaces and Line Breaks?
Sometimes while writing the content of an HTML file, there might be the need to preserve blank spaces and line breaks. You might have noticed when you try to write something in the paragraph tag or the tag that has a lot of white spaces or a line break, it is not visible when the HTML page is rendered in the web browser. This article will show how to preserve those spaces while rendering the HTML page. Render an HTML String Preserving Spaces and Line Breaks Using HTML pre Tag ...
Read MorePyCharm vs. VS Code: Which is the Best Python IDE
Today on the internet we have a large number of software options to choose from for Python programming language, such as IDLE, VS Code, Atom, Jupyter, Pycharm, etc. In this article, we will mainly discuss Pycharm and VS Code. What is an IDE? Before diving into the difference between PyCharm and VS Code, let us first understand what an IDE is. It stands for Integrated Development Environment, which is a software application that is used to develop software. Its main features include: Code Editor: editor to write the code Debugging: tools to detect ...
Read MorePython Program for Mirror of matrix across diagonal
The mirror of a matrix across a diagonal means swapping the elements at position[i, j] with the elements at position[j, i]. Problem statement You are given a 2-D matrix in Python in the form of a nested List, and you need to find the transpose, that is, the mirror is that matrix across the diagonal. Example Input: matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] Output: [[1, 4, 7], [2, 5, 8], [3, 6, 9]] Mirror of a Matrix Using Nested for Loop In this approach, we will use ...
Read More