What is the best default / start semantic template for html5?

I'm a little confused about how new tags should appear.

Is it correct:

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
</head>

<body>

    <section>
        <header>
            <nav></nav>
        </header>
        <section>

        </section>
        <footer>

        </footer>
    <section>

</body>
</html>

Or should one of the sections be <article>? What should be the original layout?

+3
source share
6 answers

You should not have an "initial layout for anything inside <body>.

<article> <section> , , , , . , , , <article>.

<section> . , .

(, , , . IE HTML Shiv, , . isn ' , XML- HTML doctype , .)

+7

IMHO, , , , (, ?)

, . ( , ,

+2

, , , . , . <div> , .

+1

Dive HTML 5, . HTML4 HTML5 ified .

.

+1

, :

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title></title>
    <link href="/css/screen.css" rel="stylesheet" />
  </head>
  <body>

  </body>
</html>

doctype HTML5 , , , "" HTML5. HTML5, HTML5 (, type link).

, section article.

+1
0

Source: https://habr.com/ru/post/1747193/


All Articles