The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

2 Pages V  1 2 >  
Reply to this topicStart new topic
> Need help regarding W3C validation
khulibaatadmin
post Mar 10 2013, 01:51 PM
Post #1


Member
***

Group: Members
Posts: 35
Joined: 10-March 13
Member No.: 18,793



Hi All,

I am a newbie and have no understanding of CSS and a limited understanding of HTML5. I have started a website by the name of www.***.com . I tried checking online if everything about the website is right and I realised that my web pages do not pass W3C validation. When I enter my URL to validator.w3.org t verify/validate I get the message :

Errors found while checking this document as HTML5!
Result: 21 Errors, 1 warning(s)

I tried to understand the errors and warning myself however due to no understanding of CSS I failed to correct any error.

I had downloaded the template from a website and modified it to create the web page according to my requirements and as per my schedule I would start learning CSS after 5 days.


Now the warning/errors where they say " Use CSS instead" I would try to resolve them myself. However other things and errors please if somebody could find time and have a look at the code of the three web pages on my website , I would highly appreciate his/her efforts. I am putting efforts from my end anyways however please if somebody could guide me regarding the same.


Following is the link of the W3C validation report of my home page.

[link removed]


Please help.

This post has been edited by Christian J: Apr 28 2013, 05:29 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
khulibaatadmin
post Mar 10 2013, 01:52 PM
Post #2


Member
***

Group: Members
Posts: 35
Joined: 10-March 13
Member No.: 18,793



Well as I am a newbie and in a learning phase I may have posted this post in the wrong thread. If I have done so I would like to apologize to this forum moderators/administrators in advance.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 10 2013, 02:31 PM
Post #3


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

Group: WDG Moderators
Posts: 19,773
Joined: 9-August 06
Member No.: 6



QUOTE(khulibaatadmin @ Mar 10 2013, 07:51 PM) *

a limited understanding of HTML5.


So do we all. I haven't even begun to read the thing yet. tongue.gif

But with reservations for that..


CODE
Line 22, Column 6: An body start tag seen but an element of the same type was already open.

<body>


Assuming HTML5 follow the same rules as older versions of HTML regarding this, the DIV and SCRIPT you've put before body makes the validator (and browsers) imply a start tag for BODY. Nothing can go between </head> and <body>.

In HTML 4.01 both start and end tags for HTML, BODY and HEAD are optional (but it's stupid not to use them) and if they aren't there they are implied.

So when the validator comes to the start tag for BODY you actually wrote it sees it as a second start tag.


CODE
Line 33, Column 23: The align attribute on the div element is obsolete. Use CSS instead.

    <div align="right"><form method="get" action="http://www.google.com/search">


What it says. Presentational markup was deprecated already with HTML 4.01. It is allowed in Transitional (X)HTML but not in Strict and not in HTML5.

Most of the other errors are more of the same.

What you have is XHTML Transitional, not HTML5. If you have no special reason to use HTML5, you could change doctype instead. You could even change it to HTML 4.01 Transitional and remove the XHTML slashes. Since you say you are new and learning I think you'll find it much easier to start with learning HTML than diving directly into HTML5 which isn't even finished yet and is much harder to get help with. All help you'll find online will relate to older versions of HTML and if you don't know HTML they may be hard for you to follow.

XHTML was the cat's mew for a few years and is now discontinued, so I don't see much reason to bother with that.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
khulibaatadmin
post Mar 10 2013, 02:34 PM
Post #4


Member
***

Group: Members
Posts: 35
Joined: 10-March 13
Member No.: 18,793



QUOTE(pandy @ Mar 11 2013, 01:01 AM) *

QUOTE(khulibaatadmin @ Mar 10 2013, 07:51 PM) *

a limited understanding of HTML5.


So do we all. I haven't even begun to read the thing yet. tongue.gif

But with reservation for that..


CODE
Line 22, Column 6: An body start tag seen but an element of the same type was already open.

<body>


Assuming HTML5 follow the same rules as older versions of HTML regarding this, the DIV and SCRIPT you've put before body makes the validator (and browsers) imply a start tag for BODY. Nothing can go between </head> and <body>.

In HTML 4.01 both start and end tags for HTML, BODY and HEAD are optional (but it's stupid not to use them) and if they aren't there they are implied.

So when the validator comes to the start tag for BODY you actually wrote it sees it as a second start tag.


CODE
Line 33, Column 23: The align attribute on the div element is obsolete. Use CSS instead.

    <div align="right"><form method="get" action="http://www.google.com/search">


What it says. Presentational markup was deprecated already with HTML 4.01. It is allowed in Transitional (X)HTML but not in Strict and not in HTML5.

Most of the other errors are more of the same.

What you have is XHTML Transitional, not HTML5. If you have no special reason to use HTML5, you could change doctype instead.





To be honest I did not understand a word you said. Please no offense. It's my fault. I would not make a thorough study of HTML 5 and CSS and den make changes to my files and re validate.

I tried finding if there is a software or website that can correct all these errors and warning automatically but failed to do so.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
khulibaatadmin
post Mar 10 2013, 02:35 PM
Post #5


Member
***

Group: Members
Posts: 35
Joined: 10-March 13
Member No.: 18,793



I am extremely sorry. I forgot to say Thanks for your time and efforts in looking over it ..
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
khulibaatadmin
post Mar 10 2013, 02:39 PM
Post #6


Member
***

Group: Members
Posts: 35
Joined: 10-March 13
Member No.: 18,793



QUOTE(khulibaatadmin @ Mar 11 2013, 01:04 AM) *

QUOTE(pandy @ Mar 11 2013, 01:01 AM) *

QUOTE(khulibaatadmin @ Mar 10 2013, 07:51 PM) *

a limited understanding of HTML5.


So do we all. I haven't even begun to read the thing yet. tongue.gif

But with reservation for that..


CODE
Line 22, Column 6: An body start tag seen but an element of the same type was already open.

<body>


Assuming HTML5 follow the same rules as older versions of HTML regarding this, the DIV and SCRIPT you've put before body makes the validator (and browsers) imply a start tag for BODY. Nothing can go between </head> and <body>.

In HTML 4.01 both start and end tags for HTML, BODY and HEAD are optional (but it's stupid not to use them) and if they aren't there they are implied.

So when the validator comes to the start tag for BODY you actually wrote it sees it as a second start tag.


CODE
Line 33, Column 23: The align attribute on the div element is obsolete. Use CSS instead.

    <div align="right"><form method="get" action="http://www.google.com/search">


What it says. Presentational markup was deprecated already with HTML 4.01. It is allowed in Transitional (X)HTML but not in Strict and not in HTML5.

Most of the other errors are more of the same.

What you have is XHTML Transitional, not HTML5. If you have no special reason to use HTML5, you could change doctype instead.





To be honest I did not understand a word you said. Please no offense. It's my fault. I would not make a thorough study of HTML 5 and CSS and den make changes to my files and re validate.

I tried finding if there is a software or website that can correct all these errors and warning automatically but failed to do so.




I downloaded the template and they said its an HTML 5 template.

That's all I can say. Well its a long way to go and I am ready to study and learn. Just downloaded an ebook on html and will start studying it .
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 10 2013, 02:51 PM
Post #7


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

Group: WDG Moderators
Posts: 19,773
Joined: 9-August 06
Member No.: 6



QUOTE
To be honest I did not understand a word you said


That's the reason you should start with learning normal HTML (not HTML5). tongue.gif


OK, so it's a template. Someone has taken an old XHTML Transitional template and slapped the HTML5 doctype on to make it seem modern and updated, I assume.

Anyway, the first error.... There are three main elements you must know. HTML, HEAD and BODY.

HTML contains everything. HEAD contains basically meta information, things that aren't directly visible on the page, links to style sheets an scripts an so on. BODY contains everything that is visible.


Like this.

CODE
<html>

   <head>
       <title>My Little Page</title>
    </head>
    
    <body>
       <p>
       Stuff you see on the page goes here.</p>
    </body>
    
</html>


Nothing can go between HEAD or BODY. Everything must be contained in one of them. You've placed a SCRIPT and a DIV there. Put the SCRIPT in HEAD and the DIV in BODY.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
khulibaatadmin
post Mar 10 2013, 03:52 PM
Post #8


Member
***

Group: Members
Posts: 35
Joined: 10-March 13
Member No.: 18,793



thnx for the advice. lets see
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
khulibaatadmin
post Mar 10 2013, 05:46 PM
Post #9


Member
***

Group: Members
Posts: 35
Joined: 10-March 13
Member No.: 18,793



Thanks for the guidance and motivation. Now I have corrected it and now this is the result

http://***.com/index.html -- 5 Errors, 1 warning(s)

http://***.com/contact.html -- 6 Errors, 1 warning(s)

http://***.com/rules.html -- 6 Errors, 1 warning(s)


The errors are due to the fact that I dont know CSS and I think I will be able to correct them once I learn CSS.

Rest my hosting provider is putting in some analytic code automatically which is also being treated as full of error !!

I will get back on to the analytic code some time later .

So infact I have managed to achieve what I wanted by now. Rest is upon learning CSS and then correcting those errors.


I have used the services of http://validator.w3.org/ to validate my web pages and validated them in HTML5 Doctype !! wink.gif wink.gif

This post has been edited by Christian J: Apr 28 2013, 05:31 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
khulibaatadmin
post Mar 10 2013, 05:48 PM
Post #10


Member
***

Group: Members
Posts: 35
Joined: 10-March 13
Member No.: 18,793



Thank you very much pandy for helping me out and giving me an idea as to what is supposed to be done. Thanks a lot.

May God Bless us All !!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 10 2013, 06:00 PM
Post #11


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

Group: WDG Moderators
Posts: 19,773
Joined: 9-August 06
Member No.: 6



You are welcome. Good luck! smile.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
khulibaatadmin
post Mar 11 2013, 02:13 PM
Post #12


Member
***

Group: Members
Posts: 35
Joined: 10-March 13
Member No.: 18,793



I have just created a signature . hope it's not against the forums rules. I have read in a few places that if you post a signature in forums that you use which upon clicking redirects the user to your website would help increase traffic.


If what I have done is against the rules of this forum please let me know or forum moderators/admins please delete my signature. But please don't ban me from this forum.


I loved this site

Thanks
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 11 2013, 03:25 PM
Post #13


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

Group: WDG Moderators
Posts: 19,773
Joined: 9-August 06
Member No.: 6



Your sig is fine.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Mar 11 2013, 03:32 PM
Post #14


.
********

Group: WDG Moderators
Posts: 8,826
Joined: 10-August 06
Member No.: 7



QUOTE(khulibaatadmin @ Mar 11 2013, 08:13 PM) *

I have read in a few places that if you post a signature in forums that you use which upon clicking redirects the user to your website would help increase traffic.

Such links can increase a site's Google pagerank: http://en.wikipedia.org/wiki/Pagerank (other search engines may use something similar). However, due to lots of abuse many forums and blogs use the NOFOLLOW attribute on links, which makes major search engines ignore the link: http://en.wikipedia.org/wiki/Nofollow

Unfortunately many spammers don't know (or care) about the NOFOLLOW attribute and post anyway, and then we have to ban them.

QUOTE
If what I have done is against the rules of this forum please let me know or forum moderators/admins please delete my signature. But please don't ban me from this forum.

Signature links are generally OK as long as they are not trying to sell something, or the posts containing them appear to be made just for displaying the signature.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 11 2013, 03:46 PM
Post #15


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

Group: WDG Moderators
Posts: 19,773
Joined: 9-August 06
Member No.: 6



NOFOLLOW doesn't stop traffic.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Mar 11 2013, 05:02 PM
Post #16


.
********

Group: WDG Moderators
Posts: 8,826
Joined: 10-August 06
Member No.: 7



True, if you mean people actually clicking the link. But my impression is such traffic is secondary to the one coming from better ranking in search engine results.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
khulibaatadmin
post Mar 11 2013, 06:06 PM
Post #17


Member
***

Group: Members
Posts: 35
Joined: 10-March 13
Member No.: 18,793



Well, my page rank is zero and mine is a very new site and currently I am struggling to resolve the issue related to non-www and www version of my website which search engines might take as a duplicate content and lower the rank!!

I checked about 10 pages on search engines using my keywords and my site just does not show up , though its indexed my major search engines by now.


And yes thanks for confirming that my signature is ok to be used in this forum .


And I promise I won't be doing any spamming or anything against rules etc .. I liked this forum very much and people have good knowledge and willing to help.

Once I get some good knowledge/understanding on any particular topic or area related to this forum I would love to answer the queries to the best of my abilities.

I do have an idea of nofollow attribute and i think most or all forums use it now however my diea is if someone sees my site and they somehow like it they might visit it again.

Thanks for the replies ...

This post has been edited by khulibaatadmin: Mar 11 2013, 06:19 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Mar 12 2013, 08:51 AM
Post #18


.
********

Group: WDG Moderators
Posts: 8,826
Joined: 10-August 06
Member No.: 7



QUOTE(khulibaatadmin @ Mar 12 2013, 12:06 AM) *

currently I am struggling to resolve the issue related to non-www and www version of my website which search engines might take as a duplicate content and lower the rank!!

I doubt that SEs care about that when it's just about www or not. It's a different thing if two different sites/domains use the same content.

QUOTE
I checked about 10 pages on search engines using my keywords and my site just does not show up , though its indexed my major search engines by now.

I could find your site in Google.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 12 2013, 09:18 AM
Post #19


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

Group: WDG Moderators
Posts: 19,773
Joined: 9-August 06
Member No.: 6



It isn't about penalization. When both URLs get indexed, the page rank is, hypothetically, divided between them and that's what's avoided when killing one of the URLs. I don't think this is a big deal either. I do it mostly because I think it's high time to lose the www and I also think it's a little neater, not least in search results.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Mar 12 2013, 10:58 AM
Post #20


.
********

Group: WDG Moderators
Posts: 8,826
Joined: 10-August 06
Member No.: 7



QUOTE(pandy @ Mar 12 2013, 03:18 PM) *

It isn't about penalization. When both URLs get indexed, the page rank is, hypothetically, divided between them and that's what's avoided when killing one of the URLs.

Didn't think about that. Is this PR division confirmed officially (in the context of www sub domains), or is it something people have found through experiments? I would assume Google does not divide www PRs in order to avoid incorrect rankings.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

2 Pages V  1 2 >
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: 25th July 2021 - 10:29 PM