0

Why the browsers take shades of blue (colors specified in SO post here) while we select the text ?

Is there any special reason for the same ?

Note:Question moved from StackOverflow

utility
  • 103
  • 3

2 Answers2

5

Most browsers take the standard selection color of the operating system. This color is chosen to be consistent with the rest of the operating system.

If you use Windows that color is blue, with Ubuntu for example the selection color is orange. And you will see that the selection color in browsers in Ubuntu the selection color is also orange. Browser selection in Ubuntu

Pesikar
  • 1,048
  • 1
  • 10
  • 24
0

The color of the text highlight can be changed using the CSS pseudo element '::selection'.

Therefor, I would guess (and it is just a guess) that the blue color was chosen simply because it worked as a part of the browsers default (without site or user CSS) color scheme.

Roux Martin
  • 14,209
  • 2
  • 31
  • 51
  • thank you @AndrewMartin but different browsers are developed using different technologies then how come every browser takes blueshades,correct me if im wrong was curious to know that.. – utility Jul 02 '15 at 10:53
  • Like I said, my answer is no more than an educated guess. - As for why the default color schems are the same, I think that probably goes back to Tim Berners-Lee or someone he was working with at the time they developed the first protocols and browsers. – Roux Martin Jul 02 '15 at 11:00