HTML5, CSS3, and JavaScript Fourth Edition

(Ben Green) #1

Chapter 43


ch42 Elements of HTML


Contents


43.1 The head Element.................. 325
43.2 The body Element.................. 327
43.2.1 div and Friends.................... 327
43.2.2 Headings....................... 328

Thehtmltag is the root element of an HTML document “tree.” Within
the html element, there will be a head element and a body element. You
should have exactly one html element.


This is the overall structure of an HTML document.


<!DOCTYPE html>


head things
body things

43.1 The head Element


Theheadtag specifies the metadata about the webpage, and also includes
the title element. You should have exactly one head element. The things
that appear inside the head are called metadata, which means data about
the webpage that follows.


This is the overall structure of the head element.


325

Free download pdf