+ 1

How is the page structure of HTML 5 different from HTML 4 or previous HTML?

16th Oct 2016, 6:47 AM
paras
2 Réponses
+ 3
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"/> <title> </title> </head> <body> </body> </html> The DOCTYPE is alot shorter than html 4. New tags Header Nav Article Section Aside Footer These tags are used to break the page into parts so that you can style it easier with CSS. This replaces div tags.
16th Oct 2016, 7:29 AM
Brian
+ 2
thanks Brian. OK, i get it.... A typical web page has headers, footers, navigation, central area and side bars. Now if we want to represent the same in HTML 4 with proper names to the HTML section we would probably use a DIV tag. But in HTML 5 they have made it more clear by creating element names for those sections which makes your HTML more readable.
17th Oct 2016, 4:06 AM
paras