473,395 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to ignore or hide a portion of a webpage

i am just beginning to learn html, and i am writing a page with notes in the page's text, like this:

<a /*tag*/ href="/* the address of the desired page*/ "> text for the link here, or what is actually clicked on/displayed </a>

i was told anything inside of /* */ is ignored by the computer entirely as if it were not there, but when i attempted this:

<a /*tag*/ href="http://www.google.com
/* the address of the desired page*/ "> text for the link here, or what is actually clicked on/displayed </a>

it attempted to open the page and gave me the following message:

The requested URL /*%20the%20address%20of%20the%20desired%20page*/ was not found on this server.

how would i put "notes" into my code that i can reference but are not "read" by the computer? my desire is to have a completed and working link with a description of each element in the code beside what part it is describing but the descriptions are ignored by the computer when using the link, if that makes any sense
Oct 5 '11 #1
2 2204
drhowarddrfine
7,435 Expert 4TB
Comments in HTML are indicated by
Expand|Select|Wrap|Line Numbers
  1. <!-- comment -->
and cannot be inside other elements. What you show is typical of comments in C or Javascript programming languages only. Put your comments next to but not inside the elements as most people do.
Expand|Select|Wrap|Line Numbers
  1. <a href="http://google.com/">Hello</a> <!-- Comment -->
Oct 5 '11 #2
Yes as mentioned above <!--comment--> is the best way to hide code. but not the only one.
I also use this method for data tags in the HTML, <!--tagname--> then do a replace of the <!--tagname--> with some data, code or other inline code, then I can keep the hTML as a template and in a complete structure.
As I mentioned other methods to hide code, and be able to control it is to place the code inside <DIV> tags.
<div style:visibility="hidden"> ..... </div>
Then you can simply say visible. other tags can use this style directive, and you can have more than one, such as inline form to swap if a different form is required at the browser.
Hope this helps.
Oct 6 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: David Walker | last post by:
Hi I have a program which I need to interface with a webpage - the webpage will accept an input (probably a 'post' string from the program) and then will process it and needs to return a value. ...
6
by: june | last post by:
Hi, I don't know if this is even possible but I thought I'd throw the question out there anyway... I was wondering if it is possible to make only certain portions of a page print. For...
12
by: Mary Catherine | last post by:
I have 2 scipts that I am trying to get to run on the same page. One is a time/date script, the other is a countdown script (i.e. countdown days, hours, mins until a given date). They both work...
1
by: teknowbabble | last post by:
I would like to know how to convert HTML code that users input into a TEXTAREA box on a HTML FORM into a separate WEBPAGE. I have something like the diagram below on my webpage. The user is...
5
by: sifar | last post by:
Hi, This is my first post to this Group. A] I am trying to create a escalation page which will mail an escalation report of a faulty product. Items needed on Page: -----------------------
5
by: Grace | last post by:
Hello, I want to upload the file by webpage to SQL Server. When I upload the small file, it is work. But, when I upload big file(ex. 40~50 MB), it isn't work; the Browser displays the...
3
by: GraVity via DotNetMonster.com | last post by:
Hello all I am new to asp.net or web programming I have a requirement, I have to submit a document to another server using my webpage, there is a perticular protocol for doing that. This protocol...
1
by: jrefran | last post by:
Hi there! I got this error during my DBI installation from source code. Execution of "perl Makefile.PL" was okay. But after I execute "make" this error appeared on the last part. ...
2
by: yosh29rs | last post by:
i would like o make a simple webpage but having trouble to understand html. . . how can i make this one easier for me?please help. . .thnx
20
by: Prisoner at War | last post by:
Hi, People, Is it possible to have an "empty" or "dummy" <a href***without*** the browser jumping back up the page?? I have a hyperlink that doesn't point to another document, but is used to...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.