Knowledge Walls
Gopal Rao
Mumbai, Maharashtra, India
Passcode:
Block level elements in html5 in HTML5 Basics of HTML5 & CSS3 Examples
2985 Views
Tags 
Normally these are block level elements. But broswers ll take as inline elements because these are unknown elements to the browser.So that when you using this just write display:block; inside the style tag shown below. 
  • <article>
  • <aside>
  • <details>
  • <figure>
  • <header>
  • <footer>
  • <hgroup>
  • <menu>
  • <nav>
  • <section>
  • <figcaption>
Example
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <title>Language Declaration</title>
    <style>
        article,
        header,
        footer {
            display: block;
        }
    </style>
</head>

<body>
    <p lang="fr">Cet exemple explique sur declartion de langue en HTML5</p>
</body>

</html>
Previous Topics
Previous lessons of current book.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details