Announcement

Collapse
No announcement yet.

HTML Faq

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • HTML Faq

    Q. How do I add alt text to my image?

    A. <img src="htmlforums.gif" ALT=HTMLforums>
    Web Templates and Graphic Templates
    Stock Photos
    CMS Skins
    Turnkey Websites

  • #2
    Embedding another page

    You can insert another HTML page inside your page by doing:
    Code:
    <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.
    Jon Hanlon

    Comment


    • #3
      HTML FAQ

      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.

      Comment


      • #4
        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">

        Comment


        • #5
          Favicons

          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.

          Comment


          • #6
            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">
            Have a Script or Snippet you want to share?

            WWW Standards: HTML 4.01,
            HTML 5, CSS2.1, CSS3, XHTML 1.0
            PHP Standards: PHP Standards

            Comment


            • #7
              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.
              Have a Script or Snippet you want to share?

              WWW Standards: HTML 4.01,
              HTML 5, CSS2.1, CSS3, XHTML 1.0
              PHP Standards: PHP Standards

              Comment


              • #8
                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.
                Have a Script or Snippet you want to share?

                WWW Standards: HTML 4.01,
                HTML 5, CSS2.1, CSS3, XHTML 1.0
                PHP Standards: PHP Standards

                Comment


                • #9
                  Html Faq

                  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>
                  Cat-herder Extraordinaire

                  Comment


                  • #10
                    Html Faq

                    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">
                    Cat-herder Extraordinaire

                    Comment

                    Working...
                    X