HTML and CSS Reference
In-Depth Information
<section>
Joe's has the best food on the block! The food is good, cheap, and tastes great!
</section>
<footer>
< h6 > *Little boo-boo in 2010 </ h6 >
</footer>
</ body >
</ html >
Figure 2-4 shows what the page looks like.
Figure 2-4: The original design.
37
At er thinking about the design, you suggest to the restaurant owner, who is quite proud of his
restaurant's record, that maybe the message might be better received if the subheading and
footnote were removed. However, instead of removing the tags completely, you just comment
them out, as the following code ( CommentOutCode.html in this chapter's folder at www.
wiley.com/go/smashinghtml5 ) shows:
<! DOCTYPE HTML >
< html >
< head >
< title > Commenting Out </ title >
</ head >
< body >
< header >
< h1 > Eat at Joe's Restaurant </ h1 >
<!-- <h2>*Has passed most health inspections since 2005</h2> -->
</ header >
< section >
Joe's has the best food on the block! The food is good, cheap, and tastes great!
</ section >
< footer >
<!-- <h6>*Little boo-boo in 2010</h6> -->
</ footer >
</ body >
</ html >
 
Search WWH ::




Custom Search