Element. Is there any reason for this? The element does not contain any content directly. In brief, div is a block-level element. However, we will refer ID by # (hash) sign followed by the ID name. We will use the same code as created for the above div class example. Browser compatibility. Instead much emphasis on "div" as the container of choice is taught. The aptly named "main" element will change that. Hence, this is another difference between div id and div class. 1. The
element is widely supported. The div with ID attribute and CSS example. Updated on 1 November 2018: Jaws scripts no longer available. The main class can have any name, although typically it will just be called "Main". Conclusion. The
element must occur only once on a page, and cannot be a child of an