PDA

View Full Version : HTML Faq


Jason
01-08-2002, 01:54 AM
Q. How do I add alt text to my image?

A. <img src="htmlforums.gif" ALT=HTMLforums>

Jon Hanlon
02-17-2002, 06:07 PM
You can insert another HTML page inside your page by doing:

<iframe frameborder="no"
src="http://www.somesite.com/commonfile.html"
name="commonFrame" scrolling="no" width="100%" marginwidth="0" marginheight="0">
<ilayer src="http://www.somesite.com/commonfile.html">
</ilayer>
</iframe>


This will work for all major browsers version 4 and above.

Mark
02-18-2002, 04:40 PM
Q: How Do I insert another page inside a page?

A: iFrames.

EG: <IFRAME src = "iframe-insert.html"
width = "400"
height = "100"
scrolling = "auto"
frameborder = "1" >
Your user agent does not support inline
frames or is currently configured not to
display frames.
However, you may visit
<A href="iframe-insert.html">
the related document.</A>
</IFRAME>

» The iframe-insert.html is the outside page that you want to insert in the current page.
» iFrames CANNOT be viewed in Netscape4, but only in IE browsers and Netscape6 and above.

Dr. Web
02-25-2002, 12:49 AM
HTML FAQ:

Q. Do I have to put HTML attributes in quotes?

A. Only if they have spaces or special characters.

Examples of good code:

<table height=500 width=75% border=5>
<tr bgcolor=#cfcfcf>
<tr align=center>
<form name=form1 action="submitAction.cfm" method=post>
<input type=text name=titles value=history>
<input type="text" name="titles" value="history">
<input type=text name="titles of classes" value=history>


Examples of bad code:

<input type=text name=titles of classes value=history>
<input type=text name=titles value=history()of*cars/#>

If your dynamically creating pages with server side code, and your setting attributes/ values-place them in quotes just in case.

Examples of good coldfusion server side code:

<input type=text name="#query.name#" value="#query.value#">
the rendered code might look like:
<input type=text name="Types Of Beer" value="O'dells 90 Schilling">

Goldilocks
03-06-2002, 05:58 PM
Q. When I bookmark a page, how do I get the icon to appear next to the link in my favourites list?

A. This is known as a Favicon. Go to www.favicon.com for more details.

scoutt
03-22-2002, 06:52 PM
HTML FAQ:

Q. how do I make my page go to the edge of the browser

A. By setting the margins to 0 in the body.

<BODY topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" marginheight="0" marginwidth="0">

or

<BODY style="margin: 0px,0px,0px,0px">

scoutt
03-22-2002, 06:55 PM
HTML FAQ:

Q. How do I make a table cell scroll.

A. By putting a scollable div tag in it.

<td>
<div style="width: 50; height:20; overflow-y: scroll">
Four score and seven years ago our forefathers...
</div>
</td>

will not work in Netscape4.x

thanks Jon. ;)

scoutt
11-11-2002, 02:31 PM
Q. When i submit a form i do not want the message box 'form submission' dislayed or the 'email program' message box displayed. How do i get rid of these so the form is sent with no interruptions? or is there a way to make it send to my email without opening outlook.

A. If you use mailto: in the form action it will open the users default email program and give you that message, no if's and's or but's.

if you want to show a thank you page and don't want to load the users default email, then you have to use serverside language like cgi, php, or asp.

Pegasus
09-04-2005, 03:28 AM
Q: How do I get rid of the gaps on my page, especially when I'm using tables?

A: Make sure that your cell information is all on one line.

<td>Information</td>

Not this:

<td>
Information
</td>

Pegasus
09-04-2005, 03:30 AM
Q: How do I get rid of the blue border around images that I've made into links?

A: Properly, you should use CSS, but in a pinch, you can write your image as:

<img src="mypic.jpg" alt="My Picture Description" width="#" height="#" border="0">