HTML Tag Closing

I have been given the task of updating several web pages (and
learning Dreamweaver) and have a general question about code
Some of the pages (created by different people over time)
will have open and closed HTML tags, such as (not using angle
brackets brackets here since I don't know if they will show) (li)
and (/li) in a list, while other pages just have the (li) at the
beginning of each line
Plus some pages just have the (p) paragraph marker, other
have (p) with (/p) at the end of the paragraph
I don't see any difference on the pages in my web browser, so
is it really necessary to have these kinds of HTML tags closed?
Also, DWCS3 has a function to show me unbalanced or unneeded
code, but it is rather cumbersome to use... does anyone know of a
utility program to read a file and show me an analysis of the code?
(I prefer free, since getting the organization to buy anything that
is not on the vendor list is difficult)
Thanks, John

> Some of the pages (created by different people over
time) will have open
> and
> closed HTML tags, such as (not using angle brackets
brackets here since I
> don't
> know if they will show) (li) and (/li) in a list, while
other pages just
> have
> the (li) at the beginning of each line
Any block tag occuring after <li> will implicitly close
the <li>, but it's
invalid markup to omit that closing tag.
> Plus some pages just have the (p) paragraph marker,
other have (p) with
> (/p)
> at the end of the paragraph
Ditto.
> I don't see any difference on the pages in my web
browser, so is it really
> necessary to have these kinds of HTML tags closed?
If you want a) valid code, and b) reliable rendering, yes.
Try this -
http://validator.w3.org
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"John T Smith" <[email protected]> wrote in
message
news:[email protected]...
>I have been given the task of updating several web pages
(and learning
> Dreamweaver) and have a general question about code
>
> Some of the pages (created by different people over
time) will have open
> and
> closed HTML tags, such as (not using angle brackets
brackets here since I
> don't
> know if they will show) (li) and (/li) in a list, while
other pages just
> have
> the (li) at the beginning of each line
>
> Plus some pages just have the (p) paragraph marker,
other have (p) with
> (/p)
> at the end of the paragraph
>
> I don't see any difference on the pages in my web
browser, so is it really
> necessary to have these kinds of HTML tags closed?
>
> Also, DWCS3 has a function to show me unbalanced or
unneeded code, but it
> is
> rather cumbersome to use... does anyone know of a
utility program to read
> a
> file and show me an analysis of the code? (I prefer
free, since getting
> the
> organization to buy anything that is not on the vendor
list is difficult)
>
> Thanks, John
>

Similar Messages

  • Query to extract HTML tag with data

    Hi All,
    I have a string.
    '<HTML><HEAD>THIS IS HEAD.</HEAD><BODY>THIS IS BODY.<P>THIS IS P1.</P>NIMISH<P>THIS IS P2.</P></BODY></HTML>'
    I want to extract a html tag including its opening & closing tab with data as
    if i say P1
    then the output should be
    '<P>THIS IS P1.</P>'
    for P2
    then the output should be
    <P>THIS IS P2.</P>
    please help me in writing this query with regular expression
    i have tried it as following but it is not giving desired result:
    WITH T AS
    SELECT
        '<HTML><HEAD>THIS IS HEAD.</HEAD><BODY>THIS IS BODY.<P>THIS IS P1.</P>NIMISH<P>THIS IS P2.</P></BODY></HTML>' STR
    FROM   
        DUAL
    SELECT REGEXP_SUBSTR(STR, '<P>.+P2.+</P>') FROM T
    Thanks & Regards
    Nimish GargEdited by: Nimish Garg on May 7, 2012 5:49 PM

    Nimish Garg wrote:
    My requirement is to extract a <tag>data</tag> from a HTML/XML string
    where data contains any specified value.HTML is not XML.
    And that is a critical distinction to make. HTML parsing is horribly complex. XML is quite easy. For HTML you have to code your own parser in PL/SQL. XML can be parsed using the XMLTYPE class/data type in PL/SQL.
    So if you need to find a single specific tag in HTML - I would not try to treat it as XML. I may not even try to use regular expressions.
    I would do a basic substring search for the start of the tag. Read the data following the tag. Ensure that there are no nested or embedded tags in the data. Until the end tag is read. Because HTML is that much abused - and because that is an accepted norm as parsers used by browsers deals with that abuse without complaining.
    Proper HTML is mostly a myth in my experience of "screen scraping" web servers for data extraction as they do not have web services supplying the data.

  • HTML tags showing up in the pages also in 2.0?

    Hi,
    After a 5 minutes test of our application after an upgrade to 2.0 I found 3 places where html tags is showing in the bottom of the page. Normally it’s a html tag that is not getting closed. The examples look like this:
    &#60;/
    &#60;INPUT TYPE="hidden" NAME="p_min_row" VALUE
    &#60;script language="JavaScript1.1" type="text/javascript"
    We have been telling the customer that these problems would disappear with the new version, but it have not. I know that we were not the only ones with these problems on 1.6. How are you dealing with this? I can not imagine what our customer is going to say when we tell them that we can’t use htmldb for the project, especially since we were the ones pushing htmldb.
    In release 1.6 the problems were normally only in Internet Explorer and not in Mozilla. I have not been able to check on 2.0, because since the upgrade it is only possible to logon using Internet Explorer. Mozilla gives a script error. :-)

    Hello,
    I have a feeling all your problems are related take a look at this thread. I found it in 10 seconds of searching the forum.
    strange tags
    It's always best to do a quick search first most likely you are not the first person to have this problem.
    Carl

  • Replace function for HTML tags

    Hie Guys,
    I would like to get rid of the HTML tags from a column/object in my report using the "Replace" function. Basically, I want to replace whatever the content is between "<" & ">" i.e. the opening and closing tags. I know I can use the "Pos" function to identify the position of "<" & ">", but I am not sure exactly how to achieve this in Webi. FYI -  "Read content as HTML" & "Read content as Hyperlink" did not resolve the issue. Can anyone please help? Thanks.

    Hi Jeewan,
    It will be very tedious to do this at Webi level.
    I have tried below example. It might help you to work around your issue; however, not completely:
    1. Created an Excel and inserted single value in first column as:
    <html><b>this is yuvraj</b></html>
    2. Used it as source and created a Webi report in Rich client.
    3. Applied SubStr recursively using Pos function and created below variables:
    test : =Substr([column_1]; Pos([column_1];">")+1;Length([column_1]))
    test1: =Substr([test]; Pos([test];">")+1;Length([test]))
    test2 : =Substr([test1]; 0;Pos([test1];"<")-1)
    The output has been attached.

  • How to Validate HTML tags

    Hi,
    How can i validate the opened html tags are closed or not

    use a parser.... possibly a DOM... It will check for a well formed XML....

  • Take Html Tag's on HTML page

    Hello
    I have a problem : I want to take the tag attributs in an HTML page so I use the function behind. The problem is that the process don't stop at the end. In the main i take a System.out.println("end"); just before the end and it' printing. There is no infinite loop. So what it is ???
    Am I forgety to close somethig or other ???
    Thank for your help.
    Hello from Paris ;-)
    @+ sur la toile
    Sckizopublic void chercheComposants()
    //Fonction qui recherche les liens dans la page.
    javax.swing.text.Element elem;
    String uneImage;
    String laFrame;
    String lelien;
    while ((elem = it.next()) != null)
    //On cherche les liens
    //search links
    SimpleAttributeSet a = (SimpleAttributeSet) elem.getAttributes().getAttribute(HTML.Tag.A);
    if (a != null)
    lelien = (String) a.getAttribute(HTML.Attribute.HREF);
    // System.out.println("Lien : "+lelien);
    //Si le lien n'est pas d?ja pr?sent dans le vecteur.
    //If the links was not in the Vector before I put it in
    if (!liens.contains(lelien))
    liens.addElement(lelien);
    //On cherche les images
    //search for picture
    if (elem.getName().equals("img"))
    AttributeSet attr = elem.getAttributes();
    MutableAttributeSet s = new SimpleAttributeSet(attr);
    if (s != null)
    Object img = s.getAttribute(HTML.Attribute.SRC);
    if ((img != null))
    // System.out.println("Image : "+img);
    uneImage = (String) s.getAttribute(HTML.Attribute.SRC);
    //Si l'image n'est pas d?ja pr?sente dans le vecteur.
    //if the picture was not in the Vector before I put it in
    if (!images.contains(uneImage))
    images.addElement(uneImage);

    So in french
    J'ais le probleme suivant :
    Lorsque je lance la fonction chercheComposant, qui trouve les liens sur une page HTML et aussi les images, le processus ne s'arrete pas : comme si j'avais une boucle infinie. J'ais donc v�rifi� en incluant un System.out.println("fini") a la fin de ma fonction Main et il s'affiche !
    Je pense donc que je n'ais pas ferm� quelque chose mais je ne sait pas quoi ?
    Pourriez vous m'aider s'il vous plait.
    translantion by voila.com
    I have the following probleme: When I throw(launch) the chercheComposant function, which finds the links on a page HTML and also the images, the process not stop : as if I had an infinite loop. So I verified by including System.out.println ("finity") has the end of my function Main and it displays! I think so that I do not closed anything but I does not know what?
    Could use to me please.

  • Storing HTML TAG content in StringBuffer Problem..

    respected sir...
    currently i am working with one project in that i want to put whole table content in StringBuffer that goes for image creation .....and finally image is created for whole table
    how can i put the HTML tags in imageBuffer.... i have tried with this...
    StringBuffer ImageContent=new StringBuffer();
    ImageContent.append(out.print("<table>"));
    ImageContent.append(out.print("</table>"));
    ImageContent.append(out.print("<tr>"));
    ImageContent.append(out.print("</tr>"));
    but not working is there any way to build table using StringBuffer that has whole Table Content With Data....
    thanks in advance......regards.....

    Hi.
    Some remarks (no offence though...):
    1) StringBuffer is synchronized. In case your object instance will not be used by other threads concurrently, you should use StringBuilder class instead (which offers the same methods)
    2) when posting code samples, formatting them as code makes them easier for others to read
    3) variable names are written with a lower case first letter by convention
    4) shouldn't the "tr"s be between the opening and the closing "table"-tags?
    5) it would be helpful to have an indication on what type "out" is and why you are using it...
    For your problem: why do you pass your Strings to "out.print()"? StringBuffer directly takes Strings as arguments (among others).
    Without having tried your sample, I would suggest you try somthing like the following:
    StringBuffer imageContent=new StringBuffer();
    imageContent.append("<table>");
    imageContent.append("<tr>");
    imageContent.append("</tr>");
    imageContent.append("</table>");Bye.

  • Filting html tags, css, and javascript with regex

    hi everyone,
    im writing a small application where a user types in a url, and the text of the webpage is displayed in a text area.
    ive got it to work, however it takes some time, and also alot of content i dont want is displayed - tags, scripts and sometimes css.
    initally i filtered out the html tags with a regular expression, but i still get alot of unwanted content.
    im not a confident java programmer, and the idea of parsing html, css and javascript is the scariest idea ever to me, so my next idea is to keep only everything between the <body> tags - everything above and below it is deleted - hopefully that should leave me only with the visible content on the site.
    ive messed around with regular expressions but i cant get it to work, can anyone help out?
    thanks alot,
    Torre

    Darryl.Burke wrote:
    I tried out the regexes I posted on the source of a forum page, which is not valid html (contains two each opening and closing body tags). With a bit of trial and error I was able to remove everything upto the first, and not the second, opening tag by using a reluctant qualifier, ^.*?, but couldn't for the life of me achieve removal of only the last closing tag, leaving the other, invalid one intact. How would you do that?Regexes always try to match the first occurrence of whatever they're looking for (the sentinel), and there's no way to change that behavior (but it would be handy if you could). What you have to do instead is make sure the rest of the regex can't match the sentinel. For that you need lookahead, and the simplest way to use it is to scan the rest of the text looking for the sentinel and, if it doesn't find one, go ahead and gobble up the remaining text: "(?is)</body>(?!.*</body).*$" However, if there are many occurrences of the sentinel, you could take a serious performance hit. Here's a much more efficient way: "(?is)</body>(?:[^<]++|<(?!/body>))*+$" After matching the sentinel, this regex gobbles up anything that's not the first character of the sentinel, or the first character as long as it isn't followed by the remaining characters of the sentinel. The advantages of this regex are that it never has to backtrack, and the lookahead is only applied when it's necessary, where the first regex applies it every time.

  • Regex - Remove specific HTML Tags

    I have already found a solution in the forum to remove all html tags but I need some specific tags - img, a, b, i, u - and also their closing tags - </a>, </b>.
    The regex also needs to differ between img without the class attribute and with class attribute - it should remove elements with class attribute
    So I have tried to modifiy the found solution:
    result = Regex.Replace(result, "<[^(img|a|b|i|u)][^>]*>", " ");
    It works not optimal because it also removes the closing tags, doesn't differ and doesn't remove the br tags. It's not necessary to do all these actions in one statement.

    you can use regular
    <[(/body|html)\s]*>
    in c#:
    var result = Regex.Replace(html, @"<[(/body|html)\s]*>", "");
    <html>
    <body>
    < / html>
    < / body>

  • HTML Tag

    Can anybody explain why some html tags are in dual such as
    <td>...</td>, <a> ... </a> while others are in single such as <input>, <image>?

    It's because <image/> doesn't need data in between the opening and closing tags. Although in newer HTML, <image/> is more correct as it closes itself.
    Rob

  • HTML Tag Soup?

    I am new to Application Server. I have tried setting an xhtml strict dtd, yet when the portal page is produced and I view source, I have serious tag soup. I get a mixture of html 4 and xhtml 1.1 tags, tags in all caps, tags all lowercase, and tags either not closing or closing in the wrong order.
    Maybe someone has found a work around for this, but I could use with some advice so I can make my sites W3C compliant.
    Please help!
    Regards,
    Michael

    apexlearner wrote:
    Html tag line is displaying as button and text box in Report region. When i enter the following text (*<input type="button" value="Submit" />*), it is displaying as textbox and button in report region. Here i am setting the column link and when i click the column it takes me to another page. If i remove the column link, then the text is displaying as i entered. Here i need to set the column as well as the text needs to be displayed as i enter.It is not at all clear what you are attempting to describe here. To avoid confusion, try reproducing the problem on apex.oracle.com.

  • Html tag parsing

    I have a jsp page with a form in it. In form there is a text area where
    user can put html tag and also regular text:
    such as :
    testing the tag <b> Hello </b>
    I want to write a servlet which will get the form's input and make sure
    that all the html tags are properly closed and also it has to deal with <a href = ....> stuff...I used string tokenizer but it has multiple limitation ....any idea or clue would be delightful !!
    Thanks.

    You could try my HTML parser which I made available on these forums a while ago:
    http://www.renegadeinternet.com/temp/htmlparser.zip
    It can detect syntax errors like tags not being opened or closed properly. However, it won't clean them up for you. If you want it cleaned up automatically consider using JTidy instead:
    http://sourceforge.net/projects/jtidy/
    That said, the source code, compiled classes, and javadoc are all included in that htmlparser.zip file. A few quick examples are provided to give you a jump start. One of the examples goes through a document and looks for <A> tags and prints out the value of their href attribute. If you're checking for links, that may be a good base to start with.

  • Remove HTML tags in text

    Hi,
    I have to read some text from a text editor, that can be formatted for example with Bold, which means that when I execute the function to read its content, it returns something like this:
    Do you know how can I remove these HTML tags from the text?
    Thanks in advance.
    Regards,
    Sónia Gonçalves

    Hi,
    Something like this should do the trick.
    report  ztag.
    data: v_data type char30 value '<H>blablabla</H>'.
    if v_data(1) = '<' and
      v_data cs '>'.
    * Remove the HTML opening header
      shift v_data left up to '>'.
      shift v_data left.
    * Remove the HTML closing header
      shift v_data right up to '<'.
      shift v_data right.
      shift v_data left deleting leading space.
    endif.
    write: / v_data.
    Regards,
    Darren

  • Help needed in adding effects of certain HTML tags in Flex spark Richtext

    I want to apply the effects of the following HTML tags/ attributes, in my HTML text rendered in Flex Spark Richtext Component.
    Superscript - <sup>
    Subscript - <sub>
    Blockquotes - <blockquotes>
    Ordered Lists - <ol><li>
    Unordered List - <ul><li>
    Horizontal Rule - <hr>
    Direction Attribute for <p> - <p dir="rtl">Hello</p>
    Background Color for <font>
    I have observed that the above tags have no effect in RichText. Is this a limitation?
    Any solutions, tweaks and tricks will be appreciated...
    Thanks,
    Mangirish

    check this out . this should be able to answer you question.
    http://livedocs.adobe.com/flex/3/html/help.html?content=textcontrols_04.html
    Miguel

  • Values having html tags not getting populated while using AJAX in APEX

    Hi,
    I am using AJAX to populate certain values in a tabular report.
    I have a java script of this form (I have taken this example from Denes's example http://apex.oracle.com/pls/otn/f?p=31517:241:1400877312570049)
    <script language="JavaScript" type="text/javascript">
    function f_set_multi_items_tabular(pValue, pRow){
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=Set_Multi_Items_Tabular',0);
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM',pValue)
    get.add('T_ROWNUM',pRow)
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM','null')
    gReturn = get.get('XML');
    if(gReturn){
    var l_Count = gReturn.getElementsByTagName("item").length;
    for(var i = 0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("item");
    var l_ID = l_Opt_Xml.getAttribute('id');
    var l_El = html_GetElement(l_ID);
    if(l_Opt_Xml.firstChild){
    var l_Value = l_Opt_Xml.firstChild.nodeValue;
    }else{
    var l_Value = '';
    if(l_El){
    if(l_El.tagName == 'INPUT'){
    l_El.value = l_Value;
    }else if(l_El.tagName == 'SPAN' && l_El.className == 'grabber'){
    l_El.parentNode.innerHTML = l_Value;
    l_El.parentNode.id = l_ID;
    }else{
    l_El.innerHTML = l_Value;
    get = null;
    </script>
    And I have the application process as follows
    BEGIN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="f05_000' || :T_ROWNUM || '">' || :TEMPORARY_APPLICATION_ITEM || '</item>');
    HTP.prn ('</body>');
    END;
    If I have :TEMPORARY_APPLICATION_ITEM as 'Vikas' it gets displayed properly but if I have '&lt;b&gt;Vikas&lt;b&gt;' it shows null. if it has any HTML tags function l_Opt_Xml.firstChild.nodeValue is not working properly .Please tell me what modiifcation can I use in function l_Opt_Xml.firstChild.nodeValue to get Values with HTML tags also to get displayed.
    Thanks,
    Vikas

    Vikas,
    Try escaping special characters: htf.escape_sc(:TEMPORARY_APPLICATION_ITEM)Regards,
    Dan

Maybe you are looking for

  • SAP BPC 7.5 SP04 POWN - PCON and POWND

    Hi experts, I begging the development of COI, but all the HTG about the subject is on version 7.0, we are using the 7.5 with the DHE, and the input of percent is on a automatic standard screen in Excel, so with this some query appears: 1 - Where is t

  • Persistent Layer Error Message: ORA-01729 database link name expected

    Hi, I've done a series of loads from DB2 into Oracle, initially importing the database objects from DB2 and Oracle, then creating the mappings, deploying and executing. It all worked and I had no problems. For some reason now whenever I tried to impo

  • Missing show duplicates in iTunes 11

    What happen to show duplicates in iTunes 11?

  • Is there a list of decal errors or a way of getting them corrected?

    I notice that there are a number of errors either in Multisim decals or in the mapping of pins between Multisim and Ultiboard. Is there a way of getting these corrected in the Master database? My user database is getting quite large with just error c

  • Deleted video files still take up disk space

    Hey guys! I'm using a 13-inch rMBP, late 2013, running OS X 10.10.1. Yesterday I deleted more than 40GB of video files from my "Movies" folder, and emptied the trash can. However, the 40GB of disk space didn't appear as available. I looked online and