/    Sign up×
Community /Pin to ProfileBookmark

Javascript reading HTML

I currently assist in a webpage class at my school, the instructor must grade these pages based on guidelines he has set for these novice, dare I call them webmasters. I would like to develope some sort of javascript or a simple script that would analys web page code to check for the existence of HTMl tags. Is there anyway to do this? Any ideas? Thanks in advance

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@saulssDec 08.2005 — im not sure what you mean, but this might help

http://validator.w3.org/
Copy linkTweet thisAlerts:
@EonasdanauthorDec 08.2005 — that is sort of what i'm looking for, however I would like to customize what it searches for. The intstructor gives the students a list of things he wants on the page. The student must be these things on the page or points will be deducted. For instance the page must have an image. I want the script to check a given htm/l document for the <img> tag.
Copy linkTweet thisAlerts:
@KravvitzDec 08.2005 — It would be better to write such a script in a server side language, like PHP, PERL, or ASP.
Copy linkTweet thisAlerts:
@saulssDec 08.2005 — i think he should do it manually, what would prevent a student from doing this?

<img><src="asfd.jpg"></img>??? in that case you would find an image tag, the code for checking all those possible combinations could be very complicated. Besides if they do make an error, the instructor should tell them what has happened
Copy linkTweet thisAlerts:
@EonasdanauthorDec 08.2005 — i suppose thats true. I guess it would be better manually. I was just looking for away to save sometime. Thanks for the posts.
×

Success!

Help @Eonasdan 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 5.18,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...