0

Is it best to set a background image in CSS or HTML

I noticed you can set background images in both HTML and CSS, but CSS had attributes like "fixed" background whereas HTML has things like "alt" . Which one do I use to set a background image for my HTML website?

16th May 2018, 4:28 AM
Kyle
Kyle - avatar
1 Resposta
0
I'd use CSS for background images. With JavaScript you can create an alternative textbox. Markup and design should be two different things. I prefer it.
16th May 2018, 6:29 PM
David
David - avatar