In: Computer Science
23a - In CSS, what are the braces used for? { and }
b - What does the following CSS statement do? p { color:red; font-size:25px; font-family:Helvetica; }
c - What does the following CSS statement do? h1, h2 { border-bottom: 1px solid black;}
23. a)for ruleset curlybraces ({ })are used in CSS
A CSS ruleset consist selector and declaration block
example: h1{ color: red, font-size :10px}
b)
p { color:red; font-size:25px; font-family:Helvetica; } //paragraph with color red and with font 25 and font type as Halvetica
c) h1, h2 { border-bottom: 1px solid black;}
it gives 2 headings with underline of 1px with soli black color