Basic HTML structure:
The basic structure of an HTML document is as follows:
html
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<!-- Content goes here -->
</body>
</html>
The <!DOCTYPE html> declaration at the beginning of the document tells the browser which version of HTML the page is using. The <html> tag is the container for all other HTML elements, and the <head> element contains metadata about the document, such as the page title, and links to stylesheets and scripts. The <body> tag is where the content of the page goes.
No comments:
Post a Comment