значения свойства:
.a {
color
:
navy
;
}
.c {
: rgba(
0
,
255
0.5
);
.d {
: hsl(
315
100%
50%
.e {
: hsla(
.a { color: navy; } .c { color: rgba(0, 255, 0, 0.5); } .d { color: hsl(315, 100%, 50%); } .e { color: hsla(315, 100%, 50%, 0.5); }
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
link
href
"css/style.css"
rel
"stylesheet"
script
type
"text/javascript"
src
"https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"
></
</
body
p
class
"a"
>Hello World!</
br
id
"p1"
>To be or not to be?</
"b"
>Привет Мир!</
"c"
>I live in Ukraine.</
"d"
>I develop a software.</
"e"
>I must write this story.</
/*JavaScript*/
document.getElementById("p1").style.color = "#006400";
/*jQuery*/
$(document).ready(function () {
$(".b").css({ "color": "rgb(255, 0, 0)" });
});