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">

(2 votes)
Loading...

Similar Posts

Subscribe
Notify of
5 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
EinAlexander
1 year ago

Is this code right?

No.

Forcefully necessary for a valid HTML file are only these two lines:


Titel

You have created a complete, valid HTML document. To explain the language of this document, the element is also useful:



Titel

If the page is to be displayed offline without server header, the character set is required:




Titel

If the page is to be displayed responsive, additional information about the viewport is useful:




Titel


If you also want to include several external stylesheets to design the display, do this with the elements.




Titel




The complete HTML document looks like this:




Titel



hello world

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

DANIELdjldqwj
1 year ago

That would be the right code:

My page

4
DANIELdjldqwj
1 year ago
Reply to  FelixsPlants

No problem :

NackterGerd
1 year ago

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