The commencement of an HTML document includes a declaration that specifies the version of HTML in which the page is composed. Subsequently, the document is divided into two segments; the head and the body. The <head> section contains metadata and references to scripts and stylesheets while the <body> section houses the content for users, on the page.
Example HTML Document:
<!DOCTYPE html> <html> <head> <title>Sample Page</title> </head> <body> <h1>Welcome to My Website</h1> <p>This is a sample HTML page.</p> </body> </html> |
The commencement of an HTML document includes a declaration that specifies the version of HTML in which the page is composed. Subsequently, the document is divided into two segments; the head and the body. The <head> section contains metadata and references to scripts and stylesheets while the <body> section houses the content for users, on the page.
Example HTML Document:
<!DOCTYPE html> <html> <head> <title>Sample Page</title> </head> <body> <h1>Welcome to My Website</h1> <p>This is a sample HTML page.</p> </body> </html> |
Copyrights © 2024 letsupdateskills All rights reserved