Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

difference between body and main html

Differences between main and body:

main:
<!-- 
The content inside the main element should be unique to the document. 
It should not contain any content that is repeated across documents 
such as sidebars, navigation links, copyright information, site logos, 
and search forms.
-->

body:
<!--
The body element contains all the contents of an HTML document, 
such as text, hyperlinks, images, tables, lists, etc.
-->

An easy example, the footer element; you should put it inside the body, 
but outside the main, as you will do with your menu, or sidebar.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #difference #body #main #html
ADD COMMENT
Topic
Name
6+7 =