php/html validation

Author Topic: php/html validation  (Read 3447 times)

Offline FoxWildboarTopic starter

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 1
  • Karma: 0
php/html validation
« on: 01-11-2012, 05:40:48 »
Hey there. I am working on the SEO for a site which I didn't build, and the site was built in php. for each page, there is a php file with all of the standard html code, and an html file that simply points to the php files. That is all fine and dandy, but my issue is w3c validation:

the php url's validate fine, but the html files don't (they don't have any character encoding, doctype, or markup)... just a meta tag which reads (for the index, for example):

<meta http-equiv="refresh" content="0 url=http://www.***.com/index.php" />

so,, in the interest of SEO, is this debilitating my site? Does the html file need to validate if they redirect to php? (I'm an SEO newb, heck i'm a front end design guy, just trying to learn )


Offline Vinil

  • Trade Count: (0)
  • Sr. Member
  • ****
  • Thank You 130
  • Posts: 301
  • Karma: 13
  • Gender: Male
  • I can and I Will
    • Boaters Directory
Re: php/html validation
« Reply #1 on: 02-05-2012, 22:00:14 »
they must have all the tags and markups indeed.It may effect at server side.

Offline techendeavour

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 3
  • Posts: 5
  • Karma: 0
Re: php/html validation
« Reply #2 on: 02-20-2012, 22:09:27 »
Yes you need to validate the redirected html file otherwise it will show effect on your SEO.

Offline Vinil

  • Trade Count: (0)
  • Sr. Member
  • ****
  • Thank You 130
  • Posts: 301
  • Karma: 13
  • Gender: Male
  • I can and I Will
    • Boaters Directory
Re: php/html validation
« Reply #3 on: 02-20-2012, 23:19:28 »
html validation is must but it may effect the require design So be careful also need to say that always close the tags which are closing tags otherwise it enhances w3c validation errors.Developers generally forget this thing but you must not forget this for best SEO practices

Offline avinashpathak11

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 1
  • Karma: 0
Re: php/html validation
« Reply #4 on: 03-16-2012, 03:45:34 »
I've tested all exploits I know on HTML Purifier and it did very well. It filters not only HTML, but also CSS and URLs.
Once you narrow elements and attributes to innocent ones, the pitfalls are in attribute content – javascript: pseudo-URLs (IE allows tab characters in protocol name - java&#09;script: still works) and CSS properties that trigger JS. bye the way , if you want to learn PHP then contact at training-sscsworld.com .

...

Thanks


Offline nancyfromafrica

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 0
  • Posts: 19
  • Karma: 0
  • Gender: Female
  • i love my iPhone
Re: php/html validation
« Reply #5 on: 03-05-2013, 06:06:51 »
<meta http-equiv="refresh" content="0 url=http://www.***.com/index.php" />

the code you have written above has unclosed quotes

Offline keith.bowman

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 0
  • Posts: 10
  • Karma: 0
  • Gender: Male
Re: php/html validation
« Reply #6 on: 10-29-2014, 06:20:12 »
I generally preferred PHP language as it offers different functionality like no need to pay behind its use of components and it has open source nature.
Asuem Infotech [nofollow]

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
2572 Views
Last post 09-29-2013, 05:17:29
by filmizle2013
1 Replies
1980 Views
Last post 07-02-2014, 06:04:29
by emedianetwork
0 Replies
1130 Views
Last post 06-29-2014, 23:21:45
by rozepeter15
3 Replies
2076 Views
Last post 11-20-2015, 04:40:31
by lucygomez
0 Replies
304 Views
Last post 03-25-2017, 04:17:34
by beingchinmay