Skip to content

Commit def97d6

Browse files
committed
Update README.md
1 parent b477ad4 commit def97d6

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2254,7 +2254,22 @@ It prevents the new page from being able to access the `window.opener` property
22542254
<b><a href="#">↥ back to top</a></b>
22552255
</div>
22562256

2257-
#### Q. ***Can a web page contain multiple `<header>` elements? What about `<footer>` elements?***
2257+
## Q. ***Can a web page contain multiple `<header>` elements? What about `<footer>` elements?***
2258+
2259+
Yes, header elements can be used multiple times in documents. A `<header>` tag must be present for all articles, sections, and pages, although a `<footer>` tag is not necessary.
2260+
2261+
**From W3**
2262+
2263+
```html
2264+
A header element is intended to usually contain the section's heading (an h1–h6 element or an hgroup element), but this is not required. The header element can also be used to wrap a section's table of contents, a search form, or any relevant logos.
2265+
2266+
The footer element represents a footer for its nearest ancestor sectioning content or sectioning root element. A footer typically contains information about its section such as who wrote it, links to related documents, copyright data, and the like.
2267+
```
2268+
2269+
<div align="right">
2270+
<b><a href="#">↥ back to top</a></b>
2271+
</div>
2272+
22582273
#### Q. ***What are Web Workers?***
22592274
#### Q. ***Discuss the differences between an HTML specification and a browser\'s implementation thereof.***
22602275
#### Q. ***Why you would use a srcset attribute in an image tag? Explain the process the browser used when evaluating the content of this attribute.***

0 commit comments

Comments
 (0)