�<...>' or <.../> as one tag. for example, '<html>' count one and <head><title> count two, '<h1><color></color></h1>' count four. Thanks a lot for any help.
Thanks...qingwu<br />When I open my eyes,I see your pretty face.
JavaScript does not know how the page is formatted so it has no clue. You can try reading nodes in the dom and see what type of node it is, other than that it is up to you to parse text.