Href questions.


R. Clayton (rclayton@monmouth.edu)
(no date)


  I've found some, what I'd call oddities in the "A HREF" tag.

Ha. There are lots of them; that's why you should just stick to the syntax
given assignment. You'll be dealing with (some of) the oddities in later
assignments.

  Is <a href="/news.asp" class="copyBlue11"> really a valid url?

Well, no; it's an anchor tag. /news.asp is a valid url (syntactically, anyway),
known as a relative url.

  2) I've noticed the executable provided
  /export/home/class/cs-305/pa1b/solaris-print-urls outputs "wheretobuy.asp" as
  a valid url, after pointing to www.commvault.com. Should the program follow
  the example output? Or should it also look for the "http://" tag?

Your program should do what the assignment asks: print out everything between
the double quotes of an href attribute in anchor tags. No double quotes?
Nothing to print. No href attribute? Nothing to print. No anchor tags?
Nothing to print.



This archive was generated by hypermail 2.0b3 on Mon Dec 15 2003 - 19:45:05 EST