HTML initial code correct?
Is this code correct?
<DOCTYPE html>
<html lang=en">
<Head>
<Meta charset="utf-8">
<meta name="viewport" content=width device=width, initial-scales1.0"> <title>My Page</title>
<link rel="Stylesheet" href="css/reset.css">
<Link rel="Stylesheet" href="css/index.css">
No.
Forcefully necessary for a valid HTML file are only these two lines:
You have created a complete, valid HTML document. To explain the language of this document, the element is also useful:
If the page is to be displayed offline without server header, the character set is required:
If the page is to be displayed responsive, additional information about the viewport is useful:
If you also want to include several external stylesheets to design the display, do this with the elements.
The complete HTML document looks like this:
To check if your code is correct and let you see what errors it has, you’d best use this page: https://validator.w3.org
Alex
That would be the right code:
Thank you.
No problem :
Tip:
https://www.w3schools.com/html/default.asp
This is a good help to learn HTML5 and write correct HTML pages ✍️
However, check for mistakes with this official page: https://validator.w3.org