Good morning fellas. I'm writing a HTML layout and I came across this doubt: What's the point of wrapping the img element inside a div tag when there's only the img inside of it? Please look at my code:
<!DOCTYPE <span class="searchword">html</span>> 02 <<span class="searchword">html</span>> 03 <head> 04 <meta charset="UTF-8" /> 05 <meta name="author" content="au.ceif." /> 06 <meta name="description" content="Analog Specialists Page" /> 07 <meta name="robots" content="index, follow" /> 08 <meta http-equiv="pragma" content="no-cache" /> 09 <meta name="viewport" content="width=device-width, 10 height=device-height, initial-scale=1.0, user-scalable=no" /> 11 </head> 12 <body> 13 <div id="main-container"> 14 <img src="images/logo.gif" width="150" height="58" 15 alt="Analog Specialists" title="Analog Specialists" /> 16 <ul> 17 <li>Home</li> 18 <li>For Sale</li> 19 <li>Repairs</li> 20 <li>About</li> 21 <li>Contact</li> 22 </ul> 23 <img src="images/keys.jpg" width="600" height="150" 24 alt="classic keyboards" title="classic keyboards" /> 25 <p> 26 We specialize in the sale and repair of classic keyboards, 27 in particular the Fender Rhodes, Wurlitzer EP200, and Hohner Clavinet. 28 </p> 29 </div> 30 </body> 31 </<span class="searchword">html</span>>
please help!
thank you!