Need help in validation errors |
Need help in validation errors |
SSharma |
Oct 28 2014, 11:19 AM
Post
#1
|
Novice Group: Members Posts: 23 Joined: 23-October 14 Member No.: 21,712 |
Hi guys,
M new to this validation process nd just trying to validate my single webpage coding.. nd getting these errors HTML5 Validator Error ✉ Line 7, column 1: Non-space characters found without seeing a doctype first. Expected <!DOCTYPE html>. Line 7, column 1: Element head is missing a required instance of child element title. Line 8, column 15: Stray doctype. <!DOCTYPE html> Line 9, column 53: Stray start tag html. <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> Line 9, column 53: Cannot recover after last error. Any further errors will be ignored. <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> part of coding is as follows- @{ Layout = null; ViewBag.Title = "Login"; } <!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> Can nyone help me in resolving dese errors... ???? |
Brian Chandler |
Oct 28 2014, 11:30 AM
Post
#2
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
The basic principle of dealing with errors like this is that if you can't see what anything else means, just clear the *1st* problem. I think you have space characters before the <? that starts everything off. So remove them, and see what happens.
|
Frederiek |
Oct 28 2014, 05:11 PM
Post
#3
|
Programming Fanatic Group: Members Posts: 5,146 Joined: 23-August 06 From: Europe Member No.: 9 |
The basic set-up of an HTML 5 page looks like this (created with a single keystroke in BBEdit (Mac only))
CODE <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Untitled</title> </head> <body> </body> </html> I'm not sure why a xmlns attribute is used on the html element. Post the url to your page, so we can a better and further look. |
SSharma |
Oct 29 2014, 10:19 AM
Post
#4
|
Novice Group: Members Posts: 23 Joined: 23-October 14 Member No.: 21,712 |
yess...u r rite...thanks fr d help The basic set-up of an HTML 5 page looks like this (created with a single keystroke in BBEdit (Mac only)) CODE <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Untitled</title> </head> <body> </body> </html> I'm not sure why a xmlns attribute is used on the html element. Post the url to your page, so we can a better and further look. |
Frederiek |
Oct 29 2014, 11:51 AM
Post
#5
|
Programming Fanatic Group: Members Posts: 5,146 Joined: 23-August 06 From: Europe Member No.: 9 |
You're welcome.
|
Biplab Acharjee |
Nov 30 2020, 11:20 PM
Post
#6
|
Group: Members Posts: 1 Joined: 30-November 20 From: Philippines Member No.: 27,664 |
Hello, I am using Wordpress and Installed Generatepress theme
After Checking my Url to validator w3 I got the following error message- 1.Non-space characters found without seeing a doctype first. Expected <!DOCTYPE html>. 2.Element head is missing a required instance of child element title And Also My Site Layout Is break only in Home Page, Rest of my blog pages and posts are looking fine. Please Help Me. Please check my blog - www.24freejobalert.com |
pandy |
Dec 1 2020, 06:16 AM
Post
#7
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
I get a lot of errors, but not the ones you ask about. Is that maybe for a sub page rather than the one you linked to? Did you use the w3c validator or something else?
https://validator.w3.org/nu/?doc=https%3A%2...;showsource=yes Also, in the future please start a new thread for your question. This thread is 6 years old and it's easier to find stuff it there is a dedicated thread for each issue. |
Lo-Fi Version | Time is now: 24th April 2024 - 06:52 PM |