Skip to content

Instantly share code, notes, and snippets.

@DominusKelvin
Created September 3, 2018 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DominusKelvin/a759876266e98315d87fbf0a53c8be0d to your computer and use it in GitHub Desktop.
Save DominusKelvin/a759876266e98315d87fbf0a53c8be0d to your computer and use it in GitHub Desktop.
<!DOCTYPE html5>
<html lang:'en'>
<title>This is a test markup</title>
<head>
<meta charset="UTF-8" />
</head>
<body>
<p id="name">Hello Intern</p>
<p id="name">Welcome to your test page</p>
</body>
</html>
@DominusKelvin
Copy link
Author

Find all the errors in the markup. Good luck

@Achilles45
Copy link

1. and not . You don't put that 5 there.
2. and not <html lang: 'en". There supposed to be an equal-to(=) sign before the en. Also double quotes should be around the en and not single quotes.
3.The< head> should come before the <title>
4.There should be no forward slash (/) at the end of the .
5.That greater-than sign(>) before the Hello Intern in both

tags should not be there

@Achilles45
Copy link

  1. and not . You don't put that 5 there.
  2. . There supposed to be an equal-to(=) sign before the en. Also double quotes should be around the en and not single quotes.

3.The< head> should come before the <title>
4.There should be no forward slash (/) at the end of the
5.That greater-than sign(>) before the Hello Intern in both paragraphs should not be there.
This is the correct one sir

@DominusKelvin
Copy link
Author

Nice but you the last error you spotted is wrong that means, you missed one more error.

@Achilles45
Copy link

Oh yes. They were supposed to be there before writing the paragraph's text.

@DominusKelvin
Copy link
Author

There is nothing wrong with the text. The last error is semantic. Look closely and pay attention.

@Achilles45
Copy link

An id is supposed to have a unique name and so id="name" used twice is wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment