search
Login

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

0 votes
19 views
asked Expert 15k points 15 23 30

1 Answer

0 votes
The section element is new to HTML5 and marks a section of a document.
 
Example
 
<!DOCTYPE HTML>
<html> 
<head> 
<style> 
section{ 
   background: grey; 
   color: white; 
   font-size: 1em; 
   margin-top: 0px;
</style> 
</head> 
<body> 
    <section> 
        <hgroup> 
            <h1>H1</h1> 
            <h2>H2</h2> 
        </hgroup> 
        <section> 
            <h1>H1 of section</h1> 
            <p>This is a paragraph.</p>
        </section> 
    </section> 
</body> 
</html>
 
answered Sr Member 4.8k points 10 25 31

Related questions

0 votes
1 answer 49 views
49 views
asked rock Expert 15k points 15 23 30
0 votes
1 answer 39 views
39 views
asked rock Expert 15k points 15 23 30
0 votes
1 answer 36 views
36 views
asked rock Expert 15k points 15 23 30
0 votes
1 answer 32 views
32 views
asked smith Geek 15.3k points 16 41 63
0 votes
1 answer 36 views
36 views
asked smith Geek 15.3k points 16 41 63
...