-1

I think markup languages don't have functions in them then what is rgb() ?

BenMorel
  • 34,448
  • 50
  • 182
  • 322
Rubinder
  • 47
  • 8

1 Answers1

1

In HTML, rgb() has no special meaning. It is just text.

In CSS, rgb() is a syntax for describing colours and is not a function.

In JavaScript, rgb() is a call to a function called rgb. This is not a built in function and you have to define it yourself.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335