The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Need help in validation errors
SSharma
post 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... ????
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
Biplab Acharjee
post Nov 30 2020, 11:20 PM
Post #2





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. sad.gif
Please check my blog - www.24freejobalert.com
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Dec 1 2020, 06:16 AM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,733
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. smile.gif



User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th April 2024 - 06:56 AM