header, footer or main element inside dialog element in html5
up vote
0
down vote
favorite
Is semantically correct to use a header, footer o main elements inside a dialog component in Html5?.
I want to build a complex modal view with options about articles in my main page content. I am wondering if is correct use html5 as follows
<dialog>
<header>
<h1>Title</h1>
<button> Save </button>
</header>
<main>
<!--modal view options-->
</main>
</dialog>
html html5 header dialog main
add a comment |
up vote
0
down vote
favorite
Is semantically correct to use a header, footer o main elements inside a dialog component in Html5?.
I want to build a complex modal view with options about articles in my main page content. I am wondering if is correct use html5 as follows
<dialog>
<header>
<h1>Title</h1>
<button> Save </button>
</header>
<main>
<!--modal view options-->
</main>
</dialog>
html html5 header dialog main
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Is semantically correct to use a header, footer o main elements inside a dialog component in Html5?.
I want to build a complex modal view with options about articles in my main page content. I am wondering if is correct use html5 as follows
<dialog>
<header>
<h1>Title</h1>
<button> Save </button>
</header>
<main>
<!--modal view options-->
</main>
</dialog>
html html5 header dialog main
Is semantically correct to use a header, footer o main elements inside a dialog component in Html5?.
I want to build a complex modal view with options about articles in my main page content. I am wondering if is correct use html5 as follows
<dialog>
<header>
<h1>Title</h1>
<button> Save </button>
</header>
<main>
<!--modal view options-->
</main>
</dialog>
html html5 header dialog main
html html5 header dialog main
edited Apr 3 '17 at 19:32
asked Apr 3 '17 at 13:55
Leo
63
63
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
Only the <main>
tag shouldn't be there.
As copied from W3schools:
The header element represents a container for introductory content or a set of navigational links.
And:
You can have several header elements in one document.
This applies to the header and the footer.
but then there is this:
There must not be more than one main element in a document. The main element must NOT be a descendant of an article, aside, footer, header, or nav element.
So, to say it in a short way:
you can use multiple <header>
and <footer>
tags in your document, but you're better of using a <div>
instead of your <main>
If you find this answer useful, please upvote and / or accept this answer. It will help others find it and will stop this question from going back on top
– Martijn Vissers
Apr 4 '17 at 10:22
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
Only the <main>
tag shouldn't be there.
As copied from W3schools:
The header element represents a container for introductory content or a set of navigational links.
And:
You can have several header elements in one document.
This applies to the header and the footer.
but then there is this:
There must not be more than one main element in a document. The main element must NOT be a descendant of an article, aside, footer, header, or nav element.
So, to say it in a short way:
you can use multiple <header>
and <footer>
tags in your document, but you're better of using a <div>
instead of your <main>
If you find this answer useful, please upvote and / or accept this answer. It will help others find it and will stop this question from going back on top
– Martijn Vissers
Apr 4 '17 at 10:22
add a comment |
up vote
1
down vote
Only the <main>
tag shouldn't be there.
As copied from W3schools:
The header element represents a container for introductory content or a set of navigational links.
And:
You can have several header elements in one document.
This applies to the header and the footer.
but then there is this:
There must not be more than one main element in a document. The main element must NOT be a descendant of an article, aside, footer, header, or nav element.
So, to say it in a short way:
you can use multiple <header>
and <footer>
tags in your document, but you're better of using a <div>
instead of your <main>
If you find this answer useful, please upvote and / or accept this answer. It will help others find it and will stop this question from going back on top
– Martijn Vissers
Apr 4 '17 at 10:22
add a comment |
up vote
1
down vote
up vote
1
down vote
Only the <main>
tag shouldn't be there.
As copied from W3schools:
The header element represents a container for introductory content or a set of navigational links.
And:
You can have several header elements in one document.
This applies to the header and the footer.
but then there is this:
There must not be more than one main element in a document. The main element must NOT be a descendant of an article, aside, footer, header, or nav element.
So, to say it in a short way:
you can use multiple <header>
and <footer>
tags in your document, but you're better of using a <div>
instead of your <main>
Only the <main>
tag shouldn't be there.
As copied from W3schools:
The header element represents a container for introductory content or a set of navigational links.
And:
You can have several header elements in one document.
This applies to the header and the footer.
but then there is this:
There must not be more than one main element in a document. The main element must NOT be a descendant of an article, aside, footer, header, or nav element.
So, to say it in a short way:
you can use multiple <header>
and <footer>
tags in your document, but you're better of using a <div>
instead of your <main>
edited 4 hours ago
answered Apr 3 '17 at 14:18
Martijn Vissers
236115
236115
If you find this answer useful, please upvote and / or accept this answer. It will help others find it and will stop this question from going back on top
– Martijn Vissers
Apr 4 '17 at 10:22
add a comment |
If you find this answer useful, please upvote and / or accept this answer. It will help others find it and will stop this question from going back on top
– Martijn Vissers
Apr 4 '17 at 10:22
If you find this answer useful, please upvote and / or accept this answer. It will help others find it and will stop this question from going back on top
– Martijn Vissers
Apr 4 '17 at 10:22
If you find this answer useful, please upvote and / or accept this answer. It will help others find it and will stop this question from going back on top
– Martijn Vissers
Apr 4 '17 at 10:22
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f43186545%2fheader-footer-or-main-element-inside-dialog-element-in-html5%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown