teleren/devto huggingface dataset:
Why hasn't the SVG format been fully accepted?
Tags: svg, javascript, design, html
Published: 2023-02-25 14:57:37

SVG format has gained widespread adoption and is used in various fields, including web design, digital art, and mobile app development. However, there are still some limitations and challenges that have prevented it from being fully accepted in some contexts. Here are a few reasons.


![Why hasn't the SVG format been fully accepted](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vjzkmsqtagnn7oiekfr2.jpg)

- **The companies that create design software**, first bet on their own file formats, they want users to only use their application.
- **Limited support in older web browsers:** Although SVG is supported by all major web browsers, some older versions may not fully support the format. This can cause compatibility issues for websites that need to support a wide range of browsers and devices.
- **File size and performance:** SVG files can be larger than other image formats like JPEG or PNG, which can impact website performance and load times. Additionally, complex SVG images can require a lot of processing power, which can be a concern for lower-end devices.
- **Limited interactivity:** While SVG files can be used to create interactive elements like buttons or animations, they are not as versatile as other web technologies like JavaScript or CSS.
Lack of awareness and education: Despite its benefits, SVG is not as well-known or widely understood as other image formats, which can make it less likely to be used or recommended in certain contexts.


Despite these challenges, SVG continues to gain popularity and acceptance as a versatile and flexible format for vector graphics on the web and beyond. As technology improves and awareness grows, it is likely that SVG will continue to be used more widely in a variety of applications.



**Is there an alternative to svg filters?**


Yes, there are alternative ways to achieve similar effects to SVG filters. Here are a few options:

- **CSS filters:** CSS filters can be used to apply effects like blurring, color shifts, and brightness adjustments to HTML elements, including images. While not as versatile as SVG filters, CSS filters are widely supported in modern web browsers and can be used to create a range of effects.
- **Image editing software:** Image editing software like Adobe Photoshop or GIMP can be used to apply a wide range of filters and effects to images, including blurs, color adjustments, and more. These effects can then be exported as standard image formats like JPEG or PNG for use on the web.
- **JavaScript libraries:** There are several JavaScript libraries that can be used to create dynamic effects on the web, including image filters. For example, the library called "CamanJS" provides a range of image filters that can be applied to HTML images using JavaScript.


While SVG filters can be a powerful tool for creating visual effects on the web, they are not the only option available. Depending on the specific needs of your project, one of these alternative approaches may be a better fit.
Scalable Vector Graphics SVG File Format
Tags: svg, javascript, design, html
Published: 2023-02-25 14:41:04

SVG (Scalable Vector Graphics) is a file format used to display vector images, which are images that are made up of geometric shapes such as lines, curves, and polygons. While there is no single story associated with SVG files, here is a brief overview of the history and use of SVG:

SVG was developed in the late 1990s as a standard format for vector graphics on the web. Unlike other image formats like JPEG or PNG, SVG files are scalable, meaning they can be resized without losing quality. This makes them ideal for use in web design and other digital applications where images need to be resized to fit different screen sizes.


![Scalable Vector Graphics SVG File Format](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kg949bpny2aayu2l071o.png)

SVG files are created using vector graphics software such as ArtDraw, InkScape, CorelDraw or Adobe Illustrator. Once created, they can be used in a variety of ways, from simple web graphics to complex animations and interactive applications.

Today, SVG files are widely used in web design, especially for creating responsive websites that look good on different devices. They are also used in mobile app development, gaming, and other digital applications.

In addition to their practical uses, SVG files have also become popular in the world of digital art and design. Many artists and designers use SVG files to create intricate illustrations and patterns that can be easily edited and customized.



SVG files have become an important part of the digital landscape, offering a flexible and versatile format for creating and displaying vector graphics on the web and beyond.
Vector Drawing vs Bitmap Raster Drawing
Tags: svg, javascript, design, html
Published: 2023-02-25 14:37:52

Vector drawing and bitmap raster drawing are two different techniques used for creating digital graphics. Here are some of the pros and cons of each.


![Vector Drawing vs Bitmap Raster Drawing](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4dfwy32y58605ezt4yqm.png)

**Vector Drawing**
Pros
- Scalability: Vector graphics can be scaled up or down without losing quality, making them ideal for logos, illustrations, and other designs that need to be reproduced in different sizes.
- Small file sizes: Vector graphics are typically smaller in file size than bitmap images, which can make them quicker to load and easier to work with.
- Easy editing: Vector graphics are made up of shapes and lines that can be easily edited and adjusted using vector editing software.

Cons
- Limited detail: Vector graphics are made up of geometric shapes, which means they may not be able to capture fine details or subtle color variations as effectively as bitmap images.
- Limited realism: Because vector graphics are made up of simple shapes and lines, they may not be as well-suited for creating realistic or naturalistic images.



**Bitmap Raster Drawing**
Pros
- High detail: Bitmap images are made up of pixels, which means they can capture fine details and subtle color variations in a way that vector graphics may not be able to.
- Realistic: Bitmap images can be used to create highly realistic or naturalistic images, including photographs.

Cons
- Scalability: Bitmap images do not scale well, and resizing them can result in loss of quality and detail.
Large file sizes: Bitmap images can be quite large in file size, which can make them slower to load and more difficult to work with.
- Limited editing: Bitmap images can be more difficult to edit and adjust than vector graphics, especially when it comes to changing the overall shape or structure of the image.

Ultimately, the choice between vector and bitmap raster drawing will depend on the specific needs of the project. Vector graphics are ideal for designs that require scalability, small file sizes, and easy editing, while bitmap images are better suited for capturing fine detail and creating realistic images.
Why should logos be designed with vectors?
Tags: svg, javascript, design, html
Published: 2023-02-25 14:12:10


Design your logo, using [ArtDraw Online Design Software](https://artdraw.org).

Logos should be designed with vectors for several reasons:

![SVG Logo Creator Online](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4udgiqgdsoo9k1rwf5i9.png)

**Scalability:** Vector graphics are resolution-independent, which means they can be scaled up or down without losing quality. This is important for logos, as they need to look good in a variety of sizes, from small social media icons to large billboards.

**Editability:** Vector graphics are easy to edit and modify, allowing designers to make changes to the logo design quickly and easily. This is particularly important for businesses that may need to update their branding over time.

**Consistency:** Vector graphics allow designers to ensure consistency in the logo design across different media and platforms. This is because vector graphics use mathematical formulas to create shapes and lines, ensuring that they look the same no matter where they are used.

**Versatility:** Vector graphics can be used on a variety of backgrounds, from solid colors to complex patterns, without losing quality or clarity. This is important for logos, as they may need to be used in a variety of contexts.


Overall, designing logos with vectors provides a high degree of flexibility and versatility, ensuring that they look good and remain consistent across different media and platforms.
How to change the image on hover using JSX.
Tags: react, javascript, webdev, css
Published: 2023-02-25 14:29:37

I came across this problem while working for the display part of the e-commerce type project. So I thought it to share it with everyone.

**Pre-requisite**: React and JavaScript Basics.

When you want to change the image on hover and you want to do that by doing some change in JSX. Good news - You can do it!!

So here the simple logic is to use the onMouseOver and onMouseLeave events and change the src of the image in the JSX on the event of onMouseOver on the card. And change the src back to the original on the event on onMouseOut.

```
<div className="card">
    <img  src="https://image.ibb.co/b8UJBc/administration_architecture_big_ben_221166.jpg"
        onMouseOver={(e) => (
            e.currentTarget.src = "https://image.ibb.co/mmyvrc/anniversary_balloons_birthday_68369.jpg"
            )}
        onMouseLeave={(e) => (
            e.currentTarget.src = "https://image.ibb.co/b8UJBc/administration_architecture_big_ben_221166.jpg"
            )}
    />
</div>
```

Here is the codepen link for the same: 

{% codepen https://codepen.io/kriyanshishah/pen/ExegQqN %}


Here, 
* **onMouseOver** - This event occurs when the mouse pointer enters an element.
* **onMouseOut** - This event occurs when the mouse pointer moves out from the element.

Using this simple logic we can eliminate writing common CSS. 
And, this is also helpful if the image is coming from backend.

I hope you enjoyed reading this article.

Happy learning.✨
Online or Desktop Software: Pros and Cons
Tags: svg, javascript, design, html
Published: 2023-02-25 14:28:49

Online and desktop software both have their pros and cons. Here are some of the key advantages and disadvantages of each.


![Online or Desktop Software: Pros and Cons](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jde4kirofo50mwz7hedd.png)


**Online Software**
Pros:

- Accessibility: Online software can be accessed from anywhere with an internet connection, making it a convenient option for remote work or collaboration.
- Automatic updates: Online software is automatically updated by the provider, so you always have the latest version without needing to manually update.
- Collaboration: Online software often includes collaboration features, making it easy to work with team members or clients in real-time.
- Scalability: Online software can often be scaled up or down as needed, mak
ing it a flexible option for businesses with changing needs.

Cons:
- Dependence on internet: Online software requires a stable internet connection to work effectively, which can be a disadvantage in areas with slow or unreliable internet connections.
- Security concerns: Storing data online can present security concerns, especially if sensitive data is being shared or stored.
- Limited functionality: Online software may have limited functionality compared to desktop software, depending on the specific software and the user's needs.


**Desktop Software**
Pros:
- Functionality: Desktop software typically has more advanced features and functionality compared to online software, especially for specialized tasks.
- No dependence on internet: Desktop software doesn't require an internet connection to work, making it a reliable option in areas with slow or unreliable internet connections.
- Control over data: Desktop software allows users to store and control their data on their own device, rather than relying on a third-party provider.

Cons:
- Limited accessibility: Desktop software can only be accessed from the device it is installed on, which can be a disadvantage for remote work or collaboration.
- Manual updates: Desktop software needs to be manually updated by the user, which can be time-consuming and may require technical knowledge.
- Lack of collaboration features: Desktop software may not include collaboration features or may require additional tools to collaborate with team members or clients.


The choice between online and desktop software will depend on the specific needs and preferences of the user. Some users may prefer the convenience and collaboration features of online software, while others may value the advanced functionality and control over data of desktop software.
From Graphite Pencil to Optical Pencil
Tags: svg, javascript, design, html
Published: 2023-02-25 14:22:23

The graphite pencil has been a popular tool for artists and writers for hundreds of years, and its evolution to the modern optical pencil is a fascinating story of innovation and technological advancement.

The first known graphite pencils were made in the 16th century in England, where graphite was discovered in the Borrowdale region of the country. The graphite was sawn into sticks and wrapped in string or sheepskin to create a writing instrument. The earliest pencils were very brittle and difficult to sharpen, but they quickly gained popularity as an alternative to the messy and unreliable ink pens of the time.


![Pencil Evolution](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g19x1moujlirc4boo1vl.png)

Over the centuries, pencil-making techniques evolved to create stronger, more reliable pencils. In the 19th century, the French chemist Nicolas-Jacques Conte discovered a way to mix graphite powder with clay and other materials to create a stronger and more uniform pencil lead. This invention revolutionized the pencil industry and allowed for the production of high-quality pencils in large quantities.

In the early 20th century, the mechanical pencil was invented. This type of pencil used a refillable lead that could be advanced or retracted using a mechanism in the pencil's barrel. Mechanical pencils quickly gained popularity for their convenience and reliability, and they remain a popular writing tool to this day.


![Pencil Evolution](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fqs1jlywyvfqvtcuerbz.png)

In the mid-20th century, the optical pencil was invented. Also known as a "light pen," this device used a light-sensitive tip to detect movements on a computer screen or other display. The optical pencil was used primarily in computer-aided design (CAD) and other technical fields, where it allowed for precise and efficient input of information.

Today, the pencil remains a popular and versatile tool for artists, writers, and designers. While the traditional graphite pencil has been largely replaced by digital drawing tools in many fields, the mechanical pencil and optical pencil continue to play important roles in certain applications. The evolution of the pencil from its humble beginnings as a simple graphite stick to its modern incarnations as a high-tech drawing tool is a testament to human ingenuity and innovation.
What is Color Theory?
Tags: svg, javascript, design, html
Published: 2023-02-25 14:18:17

Color theory is a set of principles used to understand the relationships and effects of colors in visual design and art. It encompasses various concepts such as color mixing, color harmony, and color psychology.

Color theory is based on the color wheel, a circular diagram that organizes colors according to their relationships with each other. The primary colors (red, blue, and yellow) are located at the wheel's center, and secondary colors (orange, green, and purple) are located between them. Tertiary colors (such as red-orange or blue-green) are located in between primary and secondary colors.


![SVG Editor Online](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z6rf0dhldcsvd4vc8pwq.png)

Color theory also explores the ways in which different colors interact with each other. For example, complementary colors are those located opposite each other on the color wheel, such as red and green or blue and orange. When placed next to each other, complementary colors create a strong contrast and can make each other appear brighter.

**Analogous colors** are those located next to each other on the color wheel, such as red, orange, and yellow. These colors create a harmonious and unified palette that is often used in design and art.


![SVG Editor Online](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jlje647xh3i3ncyi55qi.jpg)

Color theory also includes concepts such as saturation (the intensity of a color), value (the lightness or darkness of a color), and temperature (whether a color is warm or cool). These factors can affect the mood and emotional impact of a color palette.

By understanding the principles of color theory, designers and artists can create visually appealing and effective color palettes that communicate a desired message or emotion.
SVG Editor Online
Tags: svg, javascript, design, html
Published: 2023-02-25 14:03:40

Introducing our [ArtDraw](https://artdraw.org), powerful and intuitive online graphic design software - the perfect tool for designers and non-designers alike. Our software is packed with features that make creating stunning designs easy and fun.

![SVG Editor Online Design](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r9kcohl2zvujrlt0vc1r.png)

With a vast library of templates, graphics, and fonts, you can create professional-quality designs in minutes. Our drag-and-drop interface allows you to easily customize your designs, so you can make them truly unique. And with our collaboration tools, you can easily share your designs with others, get feedback, and work together to create something amazing.


![SVG Editor Online Design](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/air4sszwn3xjgrjz5zv3.png)

Whether you're creating logos, social media graphics, or marketing materials, our software has everything you need to make your designs stand out. Plus, our cloud-based platform means you can work from anywhere, on any device.


![SVG Editor Online Design](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iq9ooczx147pvmerk7xh.png)

Say goodbye to complicated design software and hello to easy, beautiful designs with our online graphic design software. Try it today and see what you can create!

[Go to ArtDraw SVG Editor](https://artdraw.org)
Paracetamol.ts💊| #19: Explica este código TypeScript
Tags: typescript, spanish, javascript, webdev
Published: 2023-02-25 14:00:00

## **<center>Explica este código TypeScript</center>**
#### <center>**Dificultad:** <mark>Básico</mark> </center>

```ts
enum Constantes {
  "PI" = "Pi",
  "E" = "e",
}

const func = (con: Constantes.PI):string => {
  return con;
}
console.log(func(Constantes.PI)); // 🤔
```

- A. `TypeError`
- B. `ReferenceError`
- C. `Pi`
- D. `e`


{% details **Respuesta** %} 

✅ C. `Pi`

Los `enum` pueden ser usados como tipos de datos, así tal y como se tratara de un literal type. No es muy usual este comportamiento porque tenemos types e interfaces para hacer lo mismo, pero de que se puede se puede.

En este ejemplo, el parámetro `con` al ser de tipo `Constantes.PI` solo podrá recibir el valor `Constantes.PI` como argumento, convirtiendo en inutil el valor `Constantes.E`. 

{% enddetails %}


---

Puedes ver el reto anterior acá:

{% post https://dev.to/duxtech/paracetamolts-18-explica-este-codigo-typescript-3l1l %}
FREE AWS Cloud Project Bootcamp Week 1 Part 2
Tags: aws, cloud, awscommunity, 100daysofcloud
Published: 2023-02-25 13:58:56

[56/100] #100DaysOfCloud Today, I completed the Week 1 of the FREE AWS Cloud Project Bootcamp by Andrew Brown.

Checkout what I did for Week 1: [GitHub](https://github.com/aaditunni/100DaysOfCloud/blob/main/Journey/056/Readme.md)

You can watch the Bootcamp through this YouTube playlist : [FREE AWS Cloud Project Bootcamp playlist](https://youtube.com/playlist?list=PLBfufR7vyJJ7k25byhRXJldB5AiwgNnWv)
ArtDraw SVG Mandala Generator
Tags: svg, javascript, design
Published: 2023-02-25 13:52:43

Creating mandalas is simple and easy, with the SVG ArtDraw editor. The editor has a mandala generator, which creates complex geometric figures from simple figures.


![Javascript SVG Mandala Generator](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ykqle49xcny172o8p09x.png)

It is only a matter of deciding how many rings of figures the madala is going to have, configuring the number and rotation of the shapes. The javascript mandala generator has 30 basic shapes included. But we are sure that soon there will be much more.


![Javascript SVG Mandala Generator](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vlkluzgoxivcyjq2esq7.png)

In a couple of minutes you will get a wonderful and magical mandala to decorate shirts, mugs or embroidery. The SVG files generated by the ArtDraw program are compatible with Cricut cutters or CNC machines.

In the following 2 minute video, we will see the simple process of creating a Tibetan Mandala.

{% youtube https://www.youtube.com/watch?v=-NuTEYKzLJk %}

[ArtDraw SVG Online Design](https://artdraw.org)
Javascript logo animation
Published: 2023-02-25 13:38:16

Creating logo animation is not hard, in this content i will be helping you to simplify logo animation.

This is the code below.

```
 <div id="logoContainer">
  <img id="logo" src="your-logo.png" alt="Your Logo">
</div>

<style>
  #logoContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
  }

  #logo {
    width: 100px;
    height: 100px;
    animation: logoSpin 2s linear infinite;
  }

  @keyframes logoSpin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
</style>

```
What is Char in C++?
Tags: cpp
Published: 2023-02-25 13:34:40

**_What Is Char in C++?_**
Computers only deal with numbers and do not understand characters as such. But as humans, we like to read and write using the characters of our respective languages. That’s why a character type is integrated into programming languages like C++.

char allows you to store individual characters or arrays of characters and manipulate them. But how does it all work? What are best practices for dealing with char in C++? We’ll now address these questions. 
_In C++, the char keyword is used to declare character type variables. A character variable can store only a single character._
variables
Tags: programming
Published: 2023-02-25 13:27:52

C++ Variables
Variables are containers for storing data values.

In C++, there are different types of variables (defined with different keywords), for example:

_int_ - stores integers (whole numbers), without decimals, such as 123 or -123
_double_ - stores floating point numbers, with decimals, such as 19.99 or -19.99
_char_ - stores single characters, such as 'a' or 'B'. Char values are surrounded by single quotes
_string_ - stores text, such as "Hello World". String values are surrounded by double quotes
_bool_ - stores values with two states: true or false
OTP Verification Form in HTML CSS & JavaScript
Tags: uncategorized
Published: 2023-02-27 06:45:41

---
title: OTP Verification Form in HTML CSS & JavaScript
published: true
date: 2023-02-25 13:20:03 UTC
tags: Uncategorized
cover_image: https://hassanrao.com/wp-content/uploads/2023/02/OTP-Verification-Form-in-HTML-CSS-JavaScript.png
canonical_url: https://hassanrao.com/otp-verification-form-in-html-css-javascript/
---

If you’re looking for a form for verifying one-time passwords and want to learn how to make one in HTML, CSS, and JavaScript, this blog may be for you.

This blog will teach you how to make an OTP Verification Form in HTML, CSS, and JavaScript. You will learn how to structure the form and input fields in HTML, how to style the form and input fields in CSS, and how to manage form submission and OTP verification in JavaScript. In a previous article, I established a Star Rating System that will help you improve your coding abilities.