473,698 Members | 2,508 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to ignore or hide a portion of a webpage

1 New Member
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%20addre ss%20of%20the%2 0desired%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 2220
drhowarddrfine
7,435 Recognized Expert Expert
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
cyberience
2 New Member
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:visibilit y="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
2705
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. Is there an easy way to interface the program to do this? I have two questions: How can I call a webpage as simply as possible in c / c++ (preferably not using MFC etc) and pass a 'post' string to the page? How can I retrieve an array of values...
6
5703
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 instance, I have a page with anchor links that take you to specific portions of that page. I was wondering if someone clicks on an anchor link and is brought to a specific portion of that webpage, if it is possible to make it so the section that they...
12
1663
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 independent of each other, however, when both are on the page, the "active clock" does not work. I am assuming it is because some of the variables are the same??? Can anyone help please?!?! Here are the 2 scripts: **Active Clock that displays...
1
8038
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 prompted to input his/her HTML Code in the FORM TEXTAREA. By pushing the Make Webpage Button, a new window opens with the output of the HTML contents they inputted. This way people can see what their HTML looks like. HTML FORM TEXTAREA (Where user...
5
2719
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
4764
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 following error message: "The webpage consulted at present is unable to use. Websites may happen the technological question or you need to adjust the browser to establish ."
3
2485
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 requires to make many requests between the servers for the submission of single document, as the result the webpage refreshes many time(for each request between the servers). I want that some how my webpage doesn't refresh and at the same time...
1
1611
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. --------------------------got this some part from make---------- cc1: Invalid option `-Wdeclaration-after-statement' cc1: Invalid option `-Wno-unused-parameter' In file included from /usr/local/lib/perl5/5.8.8/sun4-solaris/CORE/perl.h:3950, ...
2
1141
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
1996
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 call forth a modal window onClick (or is there another way, without text or image links, of calling forth JavaScript on user activity??). I would like to spare my visitors the inconvenience and visually jarring effect of getting thrown back up to...
0
8685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9171
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9032
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7743
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6532
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.