The Gateway to Computer Science Excellence
+4 votes

To add a background color for all <h1> elements, which of the following HTML syntax is used

  1. h1 { background-color :#FFFFFF}
  2. { background-color :#FFFFFF} . h1
  3. h1 { background-color :#FFFFFF} . h1(all)
  4. h1. all{bgcolor= #FFFFFF}
in Web Technologies by Veteran (106k points) | 1.8k views

3 Answers

+3 votes
Best answer

h1 {background-color:#FFFFFF} 

by Boss (10.8k points)
selected by
That is the nicest way of replying. :D
+6 votes
Answer is A)
by Veteran (50.9k points)
+1 vote
Option A is correct

h1 { background-color :#FFFFFF}
by Active (1k points)
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,391 answers
105,442 users