/    Sign up×
Community /Pin to ProfileBookmark

PHP and HTML Validation?

If I wanted to go to the W3C validator and make sure the markup on my site index was correct, would it matter if there were PHP scripts running on the index?

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@NogDogJun 23.2008 — Nope, the validator only sees the resulting output, just like the user's browser.
Copy linkTweet thisAlerts:
@Joseph_WitchardauthorJun 23.2008 — Is this true for all web languages? Like CSS and other scripting languages?
Copy linkTweet thisAlerts:
@NogDogJun 23.2008 — It is true for any [i]server-side[/i] processing, such as PHP, Perl/CGI, JSP, ASP, etc. CSS is not a scripting language, and will be accessible to any client that accesses your page, including the validators -- particularly including the CSS validator. ?
Copy linkTweet thisAlerts:
@Joseph_WitchardauthorJun 23.2008 — So if you had CSS embedded in your page via the <style></style> tags instead of linking to an external style sheet, it wouldn't mess the HTML validator up?
Copy linkTweet thisAlerts:
@NogDogJun 23.2008 — The <style> tag is part of the HTML specification (see [url=http://www.w3.org/TR/html4/present/styles.html#edef-STYLE]). As long as it is correctly implemented, then no, it will not generate any HTML errors, just like every other HTML tag defined in the spec.
Copy linkTweet thisAlerts:
@Joseph_WitchardauthorJun 23.2008 — That occurred to me like five minutes after I posted. To quote Ernie Hudson from Ghostbusters 2:

That was really stupid...[/QUOTE]

:p
×

Success!

Help @Joseph_Witchard spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...