Syntax HTML 5 comment

I'm looking for a way to add comments to HTML 5, text of meaning is not running, but is there to help understand the programming. I see not in CSS / * comment * / used for this purpose. In HTML, I see the comments, but it is unclear how they are reported comments.

For example, I saw <! - comment - >, but this syntax also seems to be used for conditional instructions which are executed, as in <!-[if gt IE 8] > <!-->. That looks like it is written in a comment, but obviously, it's supposed to be run. I think so. I just want to be able to quietly add comments in the HTML code, but I need help with the syntax. Thank you!

So far, you've got everything right.

/ * This is a CSS comment * /.

It is a single line comment in JavaScript or PHP code

The conditional comments for IE are ignored by all browsers except IE9, 8, 7, 6.

IE10 pays more attention to the conditional comments.

Nancy O.

Tags: Dreamweaver

Similar Questions

  • Creating a box of HTML editor comment

    I think that it is a difficult thing to achieve, but I also believe that experts of the forum can help me with this that I want to create a HTML editor features comment box as there should be a button for bold italic etc. If you are not able to understand, then you can check such a comment box

    http://whereweget.com

    check any post in the present and you will be able to access the comment trhe box

    FCKEditor is a pretty popular solution for this. If you don't want the hassle of setting up yourself, WebAssist creates a Dreamweaver extension called iRite. It is not free, but it is not particularly onerous. I have not used it myself, but from what I hear, it works fine.

  • Syntax for a comment in an XML document

    Any help is appreciated.

    Apparently, it's the same thing as HTML

    http://www.Tizag.com/xmlTutorial/XmlComment.php

    Martin

  • Insertion of HTML comments in the Insert menu

    I understand that the Insert menu has been changed to the CS6, then CC (Dreamweaver 12.2).

    http://helpx.Adobe.com/Dreamweaver/using/changes-insert-options-creative-cloud.html

    I use DW CC.   I want to quickly insert HTML comments in a bunch of different places in the code of my page.  Is it possible to do?

    If this should now be done by hand, I would like to know why.  The reason for the changes is that the removal of the obsolete elements in favor, but HTML comments are not deprecated in HTML 5.

    http://www.w3.org/HTML/WG/drafts/HTML/master/syntax.HTML#comments

    There is another option. The block of code, select option comment according to your requirement. See the image below.

  • Why the element type style repeats in my html code

    I have a Business Catalyst site that I created using a starter template. I made a few changes to customize the model and updated the site in British Colombia. After some changes of pages and a few minor adjustments to the CSS file, I noticed that when I view the HTML code that it contains a repetitive style element in the head section. All pages work correctly. I copied and pasted the code below:

    < html >

    < head >

    < title > scientist # | # .com extension < /title >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < style type = "text/css" >

    < / style >

    < / head >

    No functionality has been affected. Any ideas on my what is happening? Thanks for the ideas.

    Change you code using the editor in the admin, if you have errors of syntax html 5 it will try to sort the xhtml standards. Online publishers are not intended for the code.

  • Dissallow HTML in PHP form?

    Hello

    I ran into a very annoying problem. On my site I allow people to post comments on videos like Youtube, but unlike youtube some users have taken advantage of me and began to type html in comment and then when they post the bed site HTML code and they can add links and distort things.

    Then... I know you can dissable HTML but I have no idea how to. I use a server behavior insert record. Some people give me the code, but nobody tells me where to put it. So if someone could help me with this, I would be very grateful.

    Here is the code that I use, it's kind of long :)

    NOTE: * indicates private information.

    <? PHP

    $input = ereg_replace ("<.") * > ",""(, $input);

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION < 6) {}

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    $currentPage = $_SERVER ['PHP_SELF'];

    $editFormAction = $_SERVER ['PHP_SELF'];

    If (isset {}

    $editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);

    }

    If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "form1")) {}

    $insertSQL = sprintf ("INSERT INTO * ('Comment', username) VALUES (%s, %s)," ")

    GetSQLValueString ($_POST ['CommentBox'], "text").

    GetSQLValueString ($_POST ['Username'], "text"));

    @mysql_select_db ($database_ *, $*);

    $Result1 = mysql_query ($insertSQL, $*) or die (mysql_error ());

    }

    $colname_ * = "-1";

    If (isset($_SESSION['MM_Username'])) {}

    $colname_ * = $_SESSION ['MM_Username"];

    }

    @mysql_select_db ($database_ *, $*);

    $query_ * = sprintf ("' SELECT * CONNECTION WHERE username = %s", GetSQLValueString ($colname_ *, "text") ");

    $* = mysql_query ($query_ *, $*) or die (mysql_error ());

    $row_ * = mysql_fetch_assoc($***);

    $totalRows_ * = mysql_num_rows($***);

    $maxRows_ * = 3;

    $pageNum_ * = 0;

    If (isset($_GET['pageNum_***'])) {}

    $pageNum_ * = $_GET ["pageNum_ *"];

    }

    $startRow_ * = $pageNum_ * * $maxRows_ *;

    @mysql_select_db ($database_ *, $*);

    $query_ * = "SELECT * FROM *";

    $query_limit_ * = sprintf ("%s LIMIT %d, %d", $query_ * $startRow_ *, $maxRows_ *);

    $* = mysql_query ($query_limit_ *, $*) or die (mysql_error ());

    $row_ * = mysql_fetch_assoc($***);

    If (isset($_GET['totalRows_***'])) {}

    $totalRows_ * = $_GET ["totalRows_ *"];

    } else {}

    $all_ * = mysql_query($query_***);

    $totalRows_ * = mysql_num_rows($all_***);

    }

    $totalPages_ * = ceil($totalRows_***/$maxRows_***)-1;

    $queryString_ * = «;»

    If (! empty($_SERVER['QUERY_STRING'])) {}

    $params = explode ("&", $_SERVER ['QUERY_STRING']);

    $newParams = array();

    {foreach ($params as $param)

    If (stristr ($param, "pageNum_ *") == false & &)

    stristr ($param, "totalRows_ *") == false) {}

    return ($newParams, $param);

    }

    }

    If (count ($newParams)! = 0) {}

    $queryString_ * = '& '. htmlentities (implode ("&", $newParams));

    }

    }

    $queryString_ * = sprintf ("& totalRows_ * = %d %s", $totalRows_ *, $queryString_ *);

    ? >

    Thank you!

    Thank you for recommending my book, UteFanJason.

    To answer the original question, the simple way to remove all the HTML from user input is to use the PHP strip_tags()function.

    Just put this at the top of the script:

    if (isset($_POST['CommentBox'])) {
      $_POST['CommentBox'] = strip_tags($_POST['CommentBox']);
      $_POST['Username'] = strip_tags($_POST['Username']);
    }
    

    Get rid of the following line:

    $input = ereg_replace("<.*>","",$input);
    

    It is useless and contains a deprecated code anyway.

  • Question of the ICA

    Hi all

    I want to create an ACI to access IP specified my OUD data.

    During the creation, I added 193.168.186.89 to the ip address filters.
    The following error accurred:
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    javax.naming.directory.InvalidAttributeValueException: [LDAP: Error 21 - code when you attempt to change the input dc = example, dc = com to add one or several values for the aci attribute, value "(targetscope ="subtree") (version 3.0;"] ACL 'test '. enable (import, delete, add, read, search, export, compare, proxy, selfwrite, writing) ip = "oracle.idm.directoryservices.odsm.model.aci.PatternIP@109e24d3 «;)»» "turns out to be invalid according to the associated syntax: the value of the expression to control access (ACI) bind rule instructions provided ip"oracle.idm.directoryservices.odsm.model.aci.PatternIP@109e24d3"is not valid. A keyword expression valid ip requires one or more elements separated by commas, a list of address expression valid IP]; name remaining "dc = example, dc = com"
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Is anyone familiar with this error.

    I would be grateful of any relay.

    Thank you.

    Looks like a bug in DOHAD with patterns of the IP...

    To work around the problem, you can add the AIT manually, using the ldapmodify command, for example

    ldapmodify Pei d
    DN: dc = example, dc = com
    ChangeType: modify
    Add: AIT
    ACI: (targetscope = "subtree") (version 3.0; acl 'test'; enable (import, delete, add, read, search, export, compare, proxy, selfwrite, writing) ip = "" ;))

    See http://docs.oracle.com/cd/E22289_01/html/821-1277/bind-rule-syntax.html#defining-access-from-specific-ip-address for intellectual property models
    and
    http://docs.Oracle.com/CD/E22289_01/HTML/821-1273/managing-ACIS-with-ldapmodify.html#scrolltoc for AIT creation using ldapmodify

    HTH

    -Sylvain

  • Dirty vs DataControl am?

    Hi experts,

    use jdev11.1.1.5.0 - adfbc.

    My question:
    What will AM get dirty?
    When Datacontrol get dirty?
    why average? uses am.getTransaction () .isDirty () to check if am is dirty or not?
    Sometimes, the lancers message AM is dirty. but it's not dirty.
    Sometimes, it isn't message AM is dirty. but it is dirty.

    can someone explain to me?

    check http://adfbugs.blogspot.com/2009/12/pending-changes-in-adf-application.html
    See comment by Steve Muench.

  • impact on performance

    Hi, I was wondering if this style of writing sql has advantages of performance especially on tables that have been indexed for the production


    SELECT id,
    Select the name of the table where table.id = temp.id
    temp

    rather than

    SELECT id, name from join table internal temp on temp.id = table.id


    Explain plan shows similar performance so they should be the same?

    query writing have a performance impact.

    but in your case,.
    r differences just of Assembly methods (ansi and classic).
    they have same execution plans and performance.

    Here r some examples of old n join new methods
    http://nimishgarg.blogspot.com/2010/04/Oracle-outer-joins-old-and-new-syntax.html

  • Error "unallowed or dynamic code tags" on a page without these...

    Hello

    I am using InContext Editing to a few sites now and my customers have been very happy with it, but I have a new site that has problems on a single page.

    http://www.windhampilates.com/index.php

    I activated the ice on the text under the main photo boxes and navigation bar, as I have on other pages. There are a few scripts that run on this page, but the only difference on this page with the rest of the site is the rotating image at the top of the page.

    Ironically, I used this same script on the previous sites where I used the ice and they worked without any problems. Am I missing something?

    Really appreciate your help!

    -MaryAnn

    Hello 108degrees,

    Remove the HTML code commented out in your editable regions. They are unallowed tags which cause the error.

    This has been discussed in a previous thread here: http://forums.adobe.com/message/2287299#2287299

    InContext Editing returns this error when a comment in an editable region contains HTML tags. Our engineering team is aware of this problem with comments that contain html tags and work on a resolution. I apologize for the inconvenience.

    Best regards

    Corey

  • The strangeness of the scope of variables?

    I'm having a problem with a script component, and I think it might be a bug.  I reproduced the problem with this simplified version:

    If {(true)
    int Packers = 1;
    {
    Packers = 5;
    patExecContext.setProcessDataIntValue ("/ process_data/@nTest", Packers);
    }
    }

    I think that my variable Packers of process should be out in the 5, but I get 1. The same problem occurs with ropes.

    Can someone reproduce cela and let me know if I'm losing my mind here?  Thank you.

    Jared

    Hi Jared,

    I can reproduce the behavior so that your mind is ok.

    The custom Script is a BeanShell implementation and on the top of my head I don't know what version of BeanShell is. Apparently the scope has changed in BeanShell (see http://www.beanshell.org/manual/syntax.html).

    This works...

    Boolean test = true;

    Packers int;

    If {(test)

    Packers = 1;

    {

    Packers = 5;

    patExecContext.setProcessDataIntValue ("/ process_data/@nTest", Packers);

    }

    }

    Steve

  • How do I add a comment in a php file which has the html code

    Hello

    I have a html file that I renamed .php after the addition of a form. I discovered that the text of html comment I used - <! - this is a comment--> - affected how the page rendered, especially in IE9.

    My question is, now that it's a php file I need to change the syntax of comments? I started to do so using the button 'apply comment' in CS5 for example of syntax: <? PHP / *? > form <? PHP * /? >.

    What is the right way to do it? It gives 'php' icons in Design view, but seems to go ok.

    Thank you

    > I have a html file that I renamed .php after the addition of a form.

    I > discovered that html comment text I used - -.

    > affected how the page rendered, especially in IE9.

    I can't imagine why. HTML comments are ignored by the customer - is not serious if it's in a .html or .php file.

    > My question is, now that it's a php file I need to change the syntax of comments?

    No, PHP comments are comments that are inside a block of PHP code. Just because the file has a. PHP extension does not mean that you need to change your comment syntax. Use html inside blocks html comment syntax and syntax of php inside blocks of php code.

  • What is the easiest way to add the "comment field" of each step of a sequence, in the test html report file?

    I use Teststand 3.0, and I would like to have the comment field of each step of my movie file teststand appearing in my html report file.

    I guess I'll have to change the model of teststand ReportGen_html, but I would like to have your opinion to do so in the most simple...

    I have already changed it the SequencialModel for other purposes, but the ReportGen_html seems to be much more complicated to change...

    Thanks in advance for your help (and sorry for the bad English)!

    I converted the wire quotes as an example to 3.0.

    The approach is quite similar to my suggestion with a difference: instead of using custom step types, the example uses substitutions of callback to copy the string.

    Norbert

  • Creating HTML dynamically in JS tags for my Panel (using the syntax)

    I am tryinng to dynamically generate a user interface for my Panel. Create tags work very well with the code below - the problem is the syntax for the background image.

    // Construct HTML tags dynamically and append to content container
    for (var i = 0; i < myList.length; i++){
        var html = "";
        html += "<button class='lol'>";
        html += "<span class='lol2' style='background-image: url(" + myList[i].icon + ")'></span>"; // Syntax broken here
        html += "<p class='lol3'>" + myList[i].text + "</p>";
        html += "</button>";
        $("#content").append(html);
    }
    

    The tags are generated fine - but I don't get the property background-image for them - probably because the url() attribute syntax is broken. Also important to mention is that myList [i] icon contains a string - so it's not a data problem.

    The url of the background image is not a string itself? Try adding additional quotes in there:

    var html = "";
    

    Had to get away from them otherwise is a mess.

    Hope this helps,

    Davide Barranca

  • Is it possible to create an extensible html box that is in a comment widget?

    Hello

    I am building a website on Muse and I was wondering if it is possible to create an area of extensible html (variable size) that is of a widget to comment?

    For example, if I put a widget to comment at the bottom of a page with a fixed size using the object > insert HTML code "I get a"window-in-window"fixed size box. However, the widget itself has a variable size. So in direct mode, when more people make comments, the widget is growing and my visitors have to scroll a window in a window to see all the comments, which is annoying. I want that my visitors to see the thread by scrolling through my Web page, without having to scroll in the integrated window. If the html box should expand somewhat with the number of comments.

    If it is not possible, is there a solution?

    Thank you.

    Dmitry

    It all really depends on the current code. Almost impossible to say without seeing the actual code. Why don't you just ask the developer to code?

Maybe you are looking for

  • bouht in Ireland of the North-used in Slovakia

    Hello I bought an Iphone 6 in Ireland of the North not by operator so the shouldn´t of phone be blocked, but when I give my Slovak sim card in the phone it shows me that it is not supported by this type of sim card and I need to contact apple. Could

  • Save the files downloaded in a place

    Let's say I want to save a file in Documents-> files. I have a right-click on the link and select "download linked file under. But it shows me that the Documents folder, but not no matter what option to go to the Document folder and select the files.

  • MAKE WINDOWS UPDATER STOP annoying me

    Is there a way to make Windows Updater STOP recommending an update 'Important '?  I don't use Internet Explorer, it ask me download a 8.8 MB 'security update' for IE, which I did not need.

  • Cannot print to a network printer

    My home network: Verizon FIOS Actiontec router, desktop Dell XPS (Windows XP) with USB connected HP 7960 printer, Dell Studio 15 computer laptop (Windows 7) connected wireless. Attempt to add printer networked laptop. Laptop find the printer on the n

  • BlackBerry smartphones what icon THAT say?

    Hello I own a Blackberry 8330. I sent a text message today and icon next to him was the box, but had a black ' next to it. I have never seen it before. What does that mean? The text was not sent? Thanks for the help! Lyd067