Little HTML help...

Div (or span) tags are also nice since you could hide a certain area using some javascript.
Say the div tag looks like this: <div id=area1>...</div>

If you put this in the body of the page:
<script>
area1.style.display="none"
</script>

It won't display it. area1.style.visible="hidden" won't display it, but you'll see a gap where the text was.
 
Ginger_Ale said:
Div tags and span can do pretty much the same thing

They are the same thing except div tags place a space before and after themselves. Example:

HTML:
Hello World!
<span>It is the 26th of March.</span>
Goodbye World!
<div>I'm so bored.</div>
would appear as

Hello World!
It is the 26th of March.
Goodbye World!

I'm so bored.
 
Actually, it appears like this:
Code:
Hello World! It is the 26th of March. Goodbye World! 
I'm so bored.
 
Chieftess said:
Actually, it appears like this:
Code:
Hello World! It is the 26th of March. Goodbye World! 
I'm so bored.
ah yes! sorry! i forgot the <br>. oops!
 
Chieftess said:
Div (or span) tags are also nice since you could hide a certain area using some javascript.
Say the div tag looks like this: <div id=area1>...</div>

If you put this in the body of the page:
<script>
area1.style.display="none"
</script>

It won't display it. area1.style.visible="hidden" won't display it, but you'll see a gap where the text was.

What the hech?

<script type="text/css">
area1 {
display: none
}
</style>
 
Erm. This script and style do the same thing..

<script>
function init(){
document.getElementById('area1').style.display='none';
}

window.onload = init;
</script>
<style>
#area1 {display:none;}
</style>

<span id="area1">This will disapear when the window loads</span>
 
There's a glitch in the BBS. My post actually says none, not no ne :(

CENTER, DIV, SPAN are all the same thing but with different default rendering modes.

For example, <DIV ALIGN="CENTER"> does the same as <CENTER>. Also, <SPAN STYLE="DISPLAY:BLOCK"> does the same as <DIV> I think... but I haven't tested :)
 
Looks like "none" to me. Anyway, there's always more than 1 way to do things in a webpage. Javascript, CSS, php, asp, aspx, etc. (last 3 require a server that supports those -- Apache for php (can be on a Windows system), ASP, and ASP.NET client for the last 2 - .NET framework).
 
PHP, ASP, .NET &c. all require Javascript or CSS to instruct the browser.

Each server can have a completely different platform, but all browsers are the same, so the industry is dependent on the browser technologies and not the server technologies.
 
Another question...

I decided to throw away my idea of my current layout. It well kind of sucks...anyway, I need help with frames. I can do the frames where there is a grey bar in between the Navigation bar and the original page. But I dont want that. I want it so it blend into 1 page. So how can I make a frame so the gray bar thing is gone??

Thanks!

- TP
 
truckingpete said:
Another question...

I decided to throw away my idea of my current layout. It well kind of sucks...anyway, I need help with frames. I can do the frames where there is a grey bar in between the Navigation bar and the original page. But I dont want that. I want it so it blend into 1 page. So how can I make a frame so the gray bar thing is gone??

Thanks!

- TP
in your HTML for your frames page in your <frameset> tag type border="0" frameborder="0"

Hope that helps!

ps- if you dont want even the possibility for a scroll bar you can add scrolling="no" to your <frame> tag.

pps- if you dont want people (or yourself accidentally) to be able to resize your frames then add noresize to your <frame> tag.
 
Also make sure to have a <noframes>...</noframes> tag just incase someone with a non-frames enabled browser views your page. It could be as easy as redirecting them to a sitemap.
 
Chieftess said:
Also make sure to have a <noframes>...</noframes> tag just incase someone with a non-frames enabled browser views your page. It could be as easy as redirecting them to a sitemap.
good idea but i was wondering: who wouldnt be able to support frames?
 
the100thballoon said:
good idea but i was wondering: who wouldnt be able to support frames?

Those using Lynx, or those using some form of screenreader, which is why images need to have alt-tags.
 
Chieftess said:
Those using Lynx, or those using some form of screenreader, which is why images need to have alt-tags.

why would you use something so basic? It would make browsing the Internet a chore and a bore (sp?)
 
the100thballoon said:
why would you use something so basic? It would make browsing the Internet a chore and a bore (sp?)

Because there's some people who need screenreaders, or large text monitors with low resolution (yet another reason not to have fixed size frames!). I work in the Department of Education, of which there's a segment that needs that kind of setup. Suppose someone is blind, and uses a text-to-braille translator. Frames isn't gonna work to well -- they need an all-text browser like Lynx.

I know I'm being nitpicky, but it's good practice. ;)
 
Chieftess said:
Because there's some people who need screenreaders, or large text monitors with low resolution (yet another reason not to have fixed size frames!). I work in the Department of Education, of which there's a segment that needs that kind of setup. Suppose someone is blind, and uses a text-to-braille translator. Frames isn't gonna work to well -- they need an all-text browser like Lynx.

I know I'm being nitpicky, but it's good practice. ;)
I guess... What you have to consider first is who you are targeting with your site. Then build a site that your target audience can navigate and enjoy easily. I doubt that any less than 99% of the WWW is geared toward blind people.

:)

...Those text-to-brail things are pretty cool though.
 
You'll still see websites that have "508 compliant" on them. While you might never make a website for the government, it's good practice to make it compliant.

Atleast 10% of users have javascript disabled.
There are elderly people who need large print, or a low res monitor. (Fixed frames are bad, as the links and such will "hide" under the other frame).
Not everyone uses Internet Explorer at 1024x768 res. (Some use Safari for the Mac).
 
Back
Top Bottom