Questions and Answers

 

Have you got a question about HTML or maybe found something in the tutorial that wasn’t too clear? Then have a look at all the questions posted by other netizens and have a look whether your question hasn’t already been asked before. If you do find your question, but without an answer, just bookmark this page and come back every so often, the answer will appear in due time. But if your question isn’t to be found, then please feel free to post it and I will try and answer your HTML question as soon as possible. If you have asked a question and it hasn’t been posted yet or has been posted but not answered yet, please be patient and sorry for the delay but know that I am working on it and should have your question and answer posted in the near future. Also remember that there are no dumb questions, so ask away, no matter how trivial or simple you might think your question is. Thanx.

[Ask Tentacle An HTML Question]

Question by Billy from Longview WA USA (13/04/2003)
How do I change the color of the borders around my scrolling marquee? 

Answer: The same way you took the lines away underneath a link as explained in the question below, with style sheet attributes, but this time defined in your marquee tags <marquee></marquee> like so:

<marquee style="border: 3px solid rgb(0,64,128)">Scrolling text</marquee>

The style sheet attribute we are using is border and it’s value is set defining it’s size (in this case 3px), type of border (different options are solid, dotted, dashed, double, groove, ridge, inset, outset and none) and color which uses the RGB function (if you are not familiar with the RGB or red, green and blue function click here to check out my explanation of color in my HTML tutorial), and this is what your output will look like:

Scrolling text


Question by Billy from Longview WA USA (13/04/2003)
Every time I create a link, there is an underline underneath it... Can I get rid of it?
Answer: Well the answer to your question is yes, and very easily as well. When creating a link you define it by using the link tags <A></A> which if you wanted to call a web page named mypage.html will look like this:

<A HREF=”mypage.html”>Click Here</A>

However as you rightly stated this draws a line under the link as such:

Click Here

To remove the line we need to use what is referred to as style sheet attributes. You define the style sheet attributes by using the style method as follows:

<A HREF=”mypage.html” style=”style attributes”>Click Here</A>

The style attributes can be used to set various attributes of a link such as font size, font color, making the text bold or italic and of course removing the line underneath a link. In this case the style attribute is text-decoration and can be set equal to one of the following values: none, underline, overline, line-through or blink. In this case we will use the value “none” as we want to remove any lines, and the code will look like this:

<A HREF=”mypage.html” style=”text-decoration: none”>Click Here</A>

And this will result in:

Click Here

Note that the style attributes are set by stating the attribute (in this case text-decoration) then setting the value by placing a colon (:) after the style attribute and then the value (in this case “none”). Play around with the values by replacing it with the other options to see what happens.

Note however that defining more than one style sheet attribute is done by separating every attribute with a semi-colon (;) as illustrated below:

<A HREF=”mypage.html” style=”text-decoration: none; font-weight: bold”>Click Here</A>


Question by Liz from Ozark Alabama USA (14/12/2002)
I have a website and I would really like to add a "bookmark this page" feature. How do I do that?

Answer: To bookmark someone’s homepage one would have to add the URL to their favorites list. The following script will allow your visitors to click one text link to quickly and easily add your site to their "Favorites." Unfortunately this will only work with Internet Explorer as no such functionality has been made available by other browsers like Netscape for instance, or at least none that I am aware of. Paste the following code into the <BODY></BODY> section of your HTML document where URL will be your homepage address, TITLE will be the default heading of the bookmark and DESCRIPTION the text or link you want the user to click on to bookmark your page:

<A HREF="javascript:window.external.AddFavorite('URL','TITLE');">DESCRIPTION</A>

or with your values as provided Liz:

<A HREF="javascript:window.external.AddFavorite('http://www.lizdeel.com','The Liz Homepage');">Click here to bookmark Liz&#146;s page</A>

and this is what the code will produce:

Click here to bookmark Liz’s page


Question by Geldeth from Indiana, USA (11/12/2002)
How do I make a sound play when someone clicks on a link on my webpage? I just want the sound to play once when they click the link.

Answer: From your question I take it you don’t want to open a new page or the user’s default player for the music file type you want to play once the user clicks the link. I also take it you understand the different file formats that one can use for playing on a webpage. In this case I am using a midi file. Unless you want to play a sound without opening the user’s default player on his / her computer you have to use the <EMBED></EMBED> tags and with this you can’t specify a link, but you can setup the controls to only display the play button as shown below, which the user can click and at which time the sound file will start playing. The advantage is the user can stop playing the sound file at any point they want, since the control automatically changes to a pause button as soon as the user clicks play. Click the play button below to see what I mean:



To accomplish this you need to embed the sound file as follows and use the CONTROLS attribute:

<EMBED SRC="sound.mid" CONTROLS=
"playbutton" WIDTH="25" HEIGHT="25" AUTOSTART="FALSE"></EMBED>

The following table summarizes the different CONTROL attribute values:

Attribute Description
CONTROLS="console" Specifies the default control panel with a start button, a stop button, a pause button, and a volume lever. Use WIDTH="144" and HEIGHT="60".
CONTROLS="smallconsole" Specifies a much shorter control panel with a start button, a stop button, and a volume lever. Use WIDTH="144" and HEIGHT="15".
CONTROLS="playbutton" Specifies a much reduced control panel with only a play button. Use WIDTH="35" and HEIGHT="23". Usually used with the MASTERSOUND attribute (see below). Navigator 4.04 on Mac crashes if CONTROLS="playbutton".
CONTROLS="pausebutton" Specifies a much reduced control panel with only a pause button. Use WIDTH="35" and HEIGHT="23". Usually used with the MASTERSOUND attribute (see below).
CONTROLS="stopbutton" Specifies a much reduced control panel with only a stop button. Use WIDTH="35" and HEIGHT="23". Usually used with the MASTERSOUND attribute (see below).
CONTROLS="volumelever" Specifies a much reduced control panel with only a volume lever. Use WIDTH="74" and HEIGHT="20". Usually used with the MASTERSOUND attribute (see below).

 
Question by Mamoru from Iceland (27/11/2001)
How do you get the number of visitors shown at your website?

Answer: Counters track the number of people who visit your Web site each day. The counter displays graphically the number of hits your Web site receives. You can also opt to make the counter invisible. But unless you know how to code your own counter, the easiest way to add a counter to your Web page will be to use someone else's. There are plenty of free Web counters out there, all you have to do is select the one that suits you the best. Check out my useful links page and go to the Counters and Web Page Trackers and Statistics section. There you will find plenty of Web counter pages to choose from.

But how does it work? It's actually very easy. Simply sign up and receive a line of code that you need to copy and paste into your Web page at the appropriate place, and bob's your uncle. In most cases free counter pages are advertisers sponsored. This means that a banner advertisement must be placed on your site in order to use the package for free. But that is a small price to pay for a free page counter with page statistics.

I think an example will explain how to use this the best. Let's take the Geocities counter as an example. Once logged into your Geocities account, select Counter from the add-ons menu. You will be prompted to select the page you want to place the counter on. Once selected you will be presented with a whole range of options to customize your counter. Everything from counter style to background and font color. Next you will be given the code you need to paste on your Web page, this is what I was given:

<IMG SRC=http://visit.geocities.com/counter.gif ALT="Counter">

Because the counter is hosted on Geocities servers you do not need to install anything. No programming, no server, just copy and paste, it's that easy.

And this is what it will look like on your page: Counter


Question by X-Men from South Africa (01/10/2000)
What makes your HTML tutorial page different from all the other HTML tutorials out there?

Answer: There are plenty of really good HTML tutorial web pages out there so my page is not that much different I suppose, but it’s geared to people who like to learn by example. Each tutorial has exercises at the end of each lesson and you will be able to see what the output of your code will look like in your browser of choice. No pictures of what it would have looked like in Internet Explorer or Netscape Navigator, but the actual output in your browser. I tend to learn a lot better if there is visual help. So, for all those people out there who find that just reading about something and not really seeing what it does, these tutorials will be for you, since every step is not just explained in detail it’s action is displayed on the screen for you to interact with if needs be. And if you choose to follow the examples at the end of each lesson, you will be rewarded with a fully functional and ready to upload homepage of your own.


 

[Ask Tentacle An HTML Question] [Back To Index Page]

Introduction | Basic Tags | More HTML Tags | List Tags | Adding Graphics | Creating Links | Adding Forms | Adding Tables
Creating Frames | Multimedia | Uploading Files | Downloads | Questions & Answers | Useful Links | e-mail Me
 
Example Page 1 | Example Page 2 | Example Page 3 | Example Page 4 | Example Page 5 | Example Page 6
Example Page 7 | Example Page 8 | Example Page 9 | Example Page 10
 
Color Chart | HTML Tester
bar.gif (1848 bytes)
Copyright © 1999 - 2000 Green Tentacle. All rights reserved. This tutorial is protected by SA and international copyright laws.
Hosted by www.Geocities.ws

1