Skip to content.

Find topic

Web tools

Help

Tools

       Analysis Tool Bar  +

List HTML Tags

See http://taporware.mcmaster.ca/~taporware/htmlTools/listtags.shtml

Description

This tool displays all of the tags found in an HTML document. The results can be displayed alphabetically, by frequency, by order of appearance, or in reversed alphabetical order.

History

Pseudocode

  • Obtain HTML string either by URL or user's local file
  • Extract all the HTML tags.
  • Sort and count the tags based on user specified criterion
  • Generate output based user specified format

Ways of Using

  • Enter a valid URL in the URL field or enter a local upload html text
  • Select sorting and output criteria
  • Uncheck the "Open results in new window" check box if you want to see the taporware interface in the same window
  • Click "Submit" button

CGI Interface

If you want to use this tool from your web site, here is the CGI Interface: (Note: If you want to upload local html text to the tool, you need to use attribute name/value pair: enctype="multipart/form-data" within the form tag)

Here are the parameters:

Parameter Name Parameter Value Control Type Default Discription
source url/local radio button url Let user select input text (either a url or upload local html text)
htmlurl   text   A Valid URL that the pointed document should be an html text
localFile   file   The path to your local html text file
tagsort 1/2 selection 2 Sorting criteria which are alphabetically/by frequency in the order of parameter values
tagdisp 1/2/3/4 selection 2 Display format which are XML tags in HTML/HTML/XML tree/tab Delimited Text in the order of parameter values
taporface   checkbox checked display result in a new window without graphics interface (default) or with taporware interface in the same window

Use List HTML Tags TAPoRware Tool in Your Web Page

You can add a button in your web page to list all the HTML tag in that page by call TAPoRware cgi script.

Here is the code for the tool interface

<form method="post" name="htmlForm" enctype="multipart/form-data" target="_blank" action="http://taporware.mcmaster.ca/~taporware/cgi-bin/prototype/hlisttags.cgi" onsubmit="document.htmlForm.htmlurl.value=document.location.href">

<input type="hidden" name="source" value="url" />

<input type="hidden" name="htmlurl" />

<input type="hidden" name="freetext" value="yes"/>

<input type="hidden" name="tagsort" value="2" />

<input type="hidden" name="tagdisp" value="2" />

<input type="hidden" name="taporface" value="same" />

<input type="submit" name="doit" value="List HTML Tags" />

</form>

Web Service Interface

Taporware provides web services to any non-benefit organizations. here is the taporware web services infomation:

Known Bugs

To Do

-- MattPatey - 13 Oct 2005


Use this box to quickly add a comment to the page.

more options...