what is the div attribute | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

what is the div attribute

28th Aug 2016, 4:39 AM
Sruthi
5 Respuestas
+ 3
div is division attribute which is use divides the content into individual sections
30th Aug 2016, 5:34 PM
Vijay Gurav
Vijay Gurav - avatar
+ 2
The main differences are that frames can load other resources using purely HTML; this includes presenting resources external to your website while keeping them at your own website. Drawbacks include a static URL in the address bar and thus increased difficulty to bookmark specific pages; even if you do bookmark them, when you go to them the page will be presented outside of the intended frameset unless you use some kind of script. It's also understood that frames affect search engine optimization (SEO) because, since the contents are independent of one another, seach engine spiders have great difficulty of making sense of the content and indexing it; in addition, if a search engine delivers a user to your site, it will likely be without the frameset without a script meaning that you need to put navigation links on every page to ensure that users can get to the rest of your site as they might have scripts disabled. Page divisions on the other hand can serve local content in the manner of the frames but that content is not actually independent of the page (what would be the frameset). In other words, if you don't control the content, you can't put it in a div. Divisions, as stated, are also a form of layering that can have far more styles applied to them, re-positioned, hidden, et cetera with many more robust display capabilities and purposes than frames. Using the position: fixed CSS declaration one of the desired effects of frames: static content such as navigation, headers, or advertisements. Of course, when you click a link, all of this static content will reload, so you don't get the decreased bandwidth usage that frames allow for by only reloading content that is actually new. For that you need to use an iframe but it has the same drawbacks as frames. The other desirable point of frames was the ability to have a single navigation
30th Aug 2016, 4:00 PM
Seamus Gillespie
Seamus Gillespie - avatar
+ 2
Div is a division element in HTML 5 that is used to divide different parts of the webpage
31st Aug 2016, 8:33 PM
Daniel Muriithi
Daniel Muriithi - avatar
+ 1
It is the division attribute... Which is used to divide the whole Web page ... Its slightly same as frame
28th Aug 2016, 12:41 PM
Karthik Karthik
Karthik Karthik - avatar
0
thank yu but then what is the difference btw frames and div then?
29th Aug 2016, 3:11 PM
Sruthi