Learning HTML..is fun!
Miscellaneous Forums/General Discussion/Learning HTML..is fun!
Been pluggin away at this, learning little tricks here and there. I've concluded that webset developers are all magicians.
Anywho, here's something cool I cooked up:
Learning HTML..is fun!
You must be crazy!
Well, then again HTML was my first computer language and it was quite fun to learn. (It has only recently driven me crazy, with its redundant tags that shouldn't exist in the first place).
That's a pretty nice thing there :)
Does it work across all browsers? (Looks like a rounded border CSS thing).
Hello.
I always thought learning any new language was fun, but that's probably just me - actually on this site it's probably not just me, but you know what I mean. Also, I have to say I did not enjoy COBOL. At ALL.
Chroma, are you using any scripting language, PHP, ASP, whatever? Are you linking to a database - that's when the fun really starts :o)
Also, as I always tell people, check out csszengarden.com as it's bleedin' amazing.
Goodbye.
No scripting yet. I am using .css files though. They're turning out to be quite convenient. I'll definitely check out that site.
Speaking of scripting, I have a php book at home. I'm not sure what all I can do with it. I'll have to bust it out once I get the html and .css thing mastered. I know php lets you do the cookie, login thing, which is pretty cool.
Does php and javascript pretty much have the same features? What's better?
Right now I'm really focusing on how to table-ize a site and how to get everything to line up.
SoggyP - you mentioned the 'C' word!
I even had a phone call recently asking if I was available to work on a legacy Cobol system.
"Ah no, John isn't here anymore, sorry. I think he went to Australia."
From the sounds of it, I'd rather edit the binaries than learn COBOL :b
Does php and javascript pretty much have the same features? What's better?
PHP is far superior to javascript. Javascript shouldn't be used at all, IMHO.
Javascript is a plugin. Which means not everyone can use it.
PHP is a server-side language. Which means it runs on the server and not the users computer. Which means it works for everyone.
To use PHP you need to have it installed on your server though. It goes very well with MySQL. Which also needs to be installed on your server.
The only use javascript has is button-rollovers, window sizing, etc. Cosmetic stuff, which you can use CSS for a lot of the stuff.
Javascript is always available in modern browsers. However it's functionality is not always consistent between different browsers, sometimes you will need to use different functions depending on what browser the user has to achieve the same effect.
PHP runs on the server and is for accessing data and creating a page or other content by spitting out HTML (or something else, but usually HTML). That generated page itself may very well use Javascript.
They're not mutually exclusive. You will need to master both.
Cool stuff Chroma but underlines are ugly. Try text-decoration: none;
Here's something interesting. I was trying to find a really easy way to do mouseover stuff in html. This method I came up with directly accesses the document image cache with a one line javascript function. The trick is to Name your img src specifically in numerical order as they're created. It's very easy. Your first image name would be Name="images0", next "images1", images2", etc etc. What do you think?
<html>
<head>
<title>HTML Mouse RollOver</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript">
function show(num,imageSrc)
{
if (document.images) document.images[num].src = imageSrc;
}
</script>
<head>
<table align="center">
<tr>
<td><img src="blue.gif" name="images0" onMouseOver="show('0','red.gif')" onMouseOut="show('0','blue.gif')"></td>
</tr><tr>
<td><img src="blue.gif" name="images1" onMouseOver="show('1','red.gif')" onMouseOut="show('1','blue.gif')"></td>
</tr>
</table>
</body>
</html>
Javascript is always available in modern browsers.
Unless you disable it. Which many people do.
Bah...heading to the php site then. =x
Glad to see you've got some quality Blitz Games in that list ;-) What's it for anyway, just an example to teach you HTML?
Yep, I'm building my new site and learning along the way. Had to put some game names in to make it look official.
I thought putting up a site would take a few days, which is entirely possible. But the site I wanna make is gonna take a couple of months. Partly because I'm learning along the way, and partly because I'm trying to create something unique. The top ten list above is definitely not unique. It's quite bland imo. I was just showcasing a round corner table.
Crap...forgot you have to have an apache webserver running to use php....that sucks.
Well, after some more thought. Neither javascript nor php is needed to do rollovers. I can all be done on one line in html!
<td width="32"><img src="blue.gif" width="32" height="32" onMouseOver="this.src='red.gif'" onMouseOut="this.src='blue.gif'"></td>
Chroma, that's still Javascript. All on* attributes specify Javascript snippets. If you call a function, then you can move the block of code out to a <script> tag (that's what your previous example does). You can include several lines in an inline JS block by separating them with semicolons.
<img src="blue.gif" width="32" height="32" onMouseOver="this.src='red.gif'; alert('mouseover');" onMouseOut="this.src='blue.gif'">
Crap...forgot you have to have an apache webserver running to use php....that sucks.
Nope. It runs fine with IIS, and there are even editors that have it embedded so you can run things directly in a preview tab without having any server installed at all.
Yep I know, see my above example.
Cool, I wonder if Notepad++ is capable of embedding php. I'm guessing no.
The only use javascript has is button-rollovers, window sizing, etc. Cosmetic stuff, which you can use CSS for a lot of the stuff.
... and AJAX-based stuff that lets you dynamically refresh parts of a page rather than the whole thing... very useful for data-driven pages
HTML is cool...
The second language I learned...
I can't do Javascript though...
But I still use Javascript...
By going here!!!
and AJAX-based stuff
And (not that anyone except me seems to care) creating pages the dynamically adjust themselves to fit the resolution/aspect ratio of a page.
Javascript is quite handy for creating front end components for web applications. Check this:
http://dojotoolkit.org/demos
I started out using WYSIWYG editors a couple of years ago and manually making every page for my site. It worked but it was a PITA to maintain.
Figured that now was the time to learn how to do it properly. I started to learn bits of HTML a few months ago although I still do use Nvu a fair bit.
I've also picked up the basics of PHP which is pretty nice to use, and spent most of yesterday converting my site from PHP arrays containing data, to SQL. SQL is just so damn easy to use, I don't know why I've been putting it off for so long.
Its all working great now (not the holding page in my sig - its all sat on my hard drive atm) and its actually been fun doing it.
Haha. I knew basic HTML a while ago, but for a website I did for some guy I knew (Who paid £3 an hour........) I used Blitzbasic to resize images to thumbnails and automatically generate the website.
Worked a treat. I didn't actually have to do any work whilst I worked there, which was quite a while actually..!