Use radio buttons or drop-down lists

Well, I'm curious about the nature of Radio groups and drop-down lists in HTML. I found that the radio buttons are complex in style, but I would like to style my elements for the required fields. I asked the previous question about setting the radio buttons and set the border color as you can with text fields, for example:

<input type="text" style="border-color:#FF0000">
<input type="radio" style="border-color:#FF0000">

Applying a style to a switch to change the color of the frame does not work.

My question is: is there a reason why I should not use the drop-down list in the radio group?

+3
source share
5 answers

( ), , ... .

, . .

+2

, , , , -. - , .

+2

( , ) , /, / .. .

0

, ( ). . , , , . 5 , .

0

ux.stackexchange.

, " ", , , , . , . , , , .

, , , , , , 1 5 .

Another factor to consider is on-screen real estate: you don’t need toggles to select one of the 50 states, and you probably don’t need a drop-down list to choose the gender (male or female), depending on your design and philosophy this a factor may or may not exceed the above factors.

0
source

Source: https://habr.com/ru/post/1744817/


All Articles