10 Jul HTML5 section Tag
As the name tells, the HTML5 section tag is used to specify a section in a document. Specify header, footer, lessons, book review, etc in a section.
Example
Here’s an example showing the usage of the section tag to add a separate section on the website,
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<!DOCTYPE html> <html> <head> <title>Understanding HTML5 section tag</title> </head> <body> <section> <h1>Studyopedia</h1> <p>Provides learning content.</p> </section> </form> </body> </html> |
Here’s the output, wherein we have created a separate section to add content.
No Comments