Inline CSS for Setting Page Background: Simplifying HTML Code

  • Context: HTML/CSS 
  • Thread starter Thread starter biferi
  • Start date Start date
  • Tags Tags
    Css
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
biferi
Messages
191
Reaction score
0
When I use HTML I set my Page Tag like this

<BODY BGCOLOR="#000000" BACKGROUND="food.jpg" text="#FFFFFF" link="#FFFF00" vlink="#FFFF00" alink="#FFFF00">

But now I am using Inline CSS so can I do this to set my page background?

<body style="background:black;">
 
Physics news on Phys.org