Problem Statement
Which of the following correctly represents a basic HTML5 webpage structure?
Explanation
A valid HTML5 document must begin with <!DOCTYPE html> followed by html, head, and body sections. The head contains metadata like title, and the body contains visible content.
Code Solution
SolutionRead Only
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>My Webpage</title> </head> <body> <h1>Welcome!</h1> </body> </html>
Practice Sets
This question appears in the following practice sets:
