|
-
Sep 29th, 2005, 01:02 PM
#1
[RESOLVED] Dumb Easy Quesion
Is there a tag in html for commenting code out? Something like the ones for JavaScript.
I searched but didnt find anything.
Thanks
Code:
'...
<tr valign="top">
<td style="width: 10px"> </td>
<td style="width: 482px;"> </td>
<td style="width: 120px;"> </td>
</tr>
//--Comment?
<tr valign="top">
<td style="width: 10px"> </td>
<td style="width: 482px;"> </td>
<td style="width: 120px;"> </td>
</tr>--//end commented code
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 29th, 2005, 01:11 PM
#2
Lively Member
Re: Dumb Easy Quesion
Yeah, html comments look like this:
Code:
<!--
this is a comment
-->
-
Sep 29th, 2005, 01:15 PM
#3
Re: Dumb Easy Quesion
I thought that was for JavaScript only. just tested it and so it is!
Thanks, told you it was an easy dumb question. Shows how little web development I do.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 29th, 2005, 01:33 PM
#4
-
Sep 30th, 2005, 06:01 AM
#5
Re: [RESOLVED] Dumb Easy Quesion
The <!-- inside the script tags is merely a trick to hide the JavaScript from browsers that don't understand the script tag (basically none nowadays - even those that can't do JS recognize and ignore the tag), so that the content doesn't get displayed.
Of course, in XHTML this is a bad idea, because the parser may (and often will) throw away comments without forwarding them to the application - so the browser never sees the JS code.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|