Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Sep 2004
    Posts
    347
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question a question about HTML

    HI,
    I'm new to HTML and have only taken a Web Design class. I don't have CSS or any of the other programs, and I'm pretty sure i dont have HTML 4.0 because on a website some guy said if you have 4.0 you could see it w/out tags, and i didnt. I was wondering, if i could do everything w/out the programs that you guys do w/, like roll-over images. I have been trying but its not working. I can insert pictures, hyperlinks, scroll down menus, and basic stuff. Could someone answer my question? If i can do all the stuff, someone please teach me how to do rollover's.

  • #2
    Regular Coder
    Join Date
    Jul 2004
    Location
    engoku no anime
    Posts
    354
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Okay... Here goes:

    HTML 4.0 = HyperText Markup Language version 4.0 - This is supported in many, if not all, old browsers; there are currently 9 levels of HTML: Tag soup (what many high school students learn), HTML 4.0, HTML 4.01 Strict, HTML 4.01 Transitional, HTML 4.01 Frameset, XHTML 1.0 Strict, XHTML 1.0 Transitional, XHTML 1.0 Frameset, and XHTML 1.1. XHTML 2.0 is on its way!

    CSS = Cascading Style Sheets - This is supported in Internet Explorer 4+ and Netscape Navigator 5+ (NN4 didn't have very good CSS support); there are currently 2 levels of CSS: CSS1 and CSS2 (and 2.1). CSS3 is on its way!


    These are not programs, but languages used to display and present information via the Internet. They are automatically displayed in Web browsers because Web browsers are designed to display content based on the code used. What browser(s) are you using?


    Quote Originally Posted by Scootertaj
    I don't have CSS or any of the other programs, and I'm pretty sure i dont have HTML 4.0 because on a website some guy said if you have 4.0 you could see it w/out tags, and i didnt.
    This is confusing because if you saw the tags, you wouldn't be able to post here! This site uses XHTML 1.0 Transitional, so technically speaking, you shouldn't be able to see it if your browser won't even render HTML 4.0. As I asked, what browser(s) are you using?

    Good coders don't need to use programs very often to create their code. Image rollovers are becoming useless as CSS takes over. However, if you want, I can show you something really quick:

    Code:
    <img src="img.jpg" onmouseover="this.src='imgover.jpg';" onmouseout="this.src='img.jpg';">
    That basically says that when the image is rolled over, the image source changes to the file "imgover.jpg". When the image moves off/out of the image, it changes to the file "img.jpg" which usually is the original value of src attribute.

  • #3
    Regular Coder
    Join Date
    Sep 2004
    Posts
    347
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thankstons.
    I think i learned tag soup although im not in high school yet ( hehe )
    I use internet explorer/AOL. My family and I use AOL but we can also use internet explorer once we dial up AOL. I have no idea w/ version it is.

    <quote>img src="img.jpg" onmouseover="this.src='imgover.jpg';" onmouseout="this.src='img.jpg';"</quote>
    OK, kinda confused. is "img.jpg" the first picture i want to show before the mouse goes over it? and "this.src" is the src for "img.jpg"? and why is it ".src" do you mean like http://www.somewhere.com"?
    imgover.jpg= roll over img right? and this.src after that is the source of it?

    Thanks!

  • #4
    Regular Coder
    Join Date
    Jul 2004
    Location
    engoku no anime
    Posts
    354
    Thanks
    0
    Thanked 0 Times in 0 Posts
    img.jpg = image before and after rollover

    imgover.jpg = image during rollover

    this.src = (part of JavaScript)
    this - refers to this exact element
    src - defines the source of the image (like in <img src=""> ); it can be something like http://www.example.org/images/img001.jpg or it can be something like /images/img001.jpg

    Hope that helps!

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Some more school...

    I feel this would be an appropriate time to supply the ubiquitous link to W3Schools once more; here you'll find a number of entry-level HTML, CSS and JavaScript tutorials and references, getting you up to speed with what-does-what and how-to-do-it.
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •