Total Newbie Question - I see code instead of HTML

Discussion in 'HTML & Website Design' started by eflo, Aug 9, 2010.

  1. #1
    OK - so this is a total newbie question I realize, but I'm not used to publishing stuff from a mac so here goes...

    I just made and tested an HTML page in the editor for w3schools - it looks exactly like it's supposed to (for now) and I'd like to upload it to a site. Using filezilla on a mac, I uploaded it to the host, but when I hit it in the URL, it shows code instead of parsing the HTML

    Am I missing something?
     
    eflo, Aug 9, 2010 IP
  2. anands

    anands Well-Known Member

    Messages:
    436
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    120
    #2
    What file extension did you save? If it is PHP, check if your server has it installed.

    If it is plain HTML, verify if you have specified extension correctly before uploading.

    And do please check it from different machines whether you are facing the same problem.

    All the best, I think I've covered all possibilities.
     
    anands, Aug 9, 2010 IP
  3. eflo

    eflo Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks for the reply. it's just straight html.
    perhaps I should rename it to PHP since that's enabled anyway...

    the site is: http://buddhaboard.com/blog/blogreviews.htm

    how do I confirm that the extension is set properly? - I tried both .htm and .html
    other html files work in different folders.
     
    eflo, Aug 9, 2010 IP
  4. eflo

    eflo Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    neeevermind... it works now. Apparently textedit on a mac adds weird crap. I installed text wrangler pasted the same HTML in and reuploaded and it was fine.
    Man, thought I was going crazy for a minute there.
     
    eflo, Aug 9, 2010 IP
  5. ArticleWriterPro

    ArticleWriterPro Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Make sure that the file you're uploading has the correct .html extension. When I first started creating websites I made silly mistakes like that.
     
    ArticleWriterPro, Aug 9, 2010 IP
  6. eflo

    eflo Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    haha thanks, yeah I tried both .htm and .html as a first thing to check. read my post above and it was the text editor! never would've guessed that.
     
    eflo, Aug 9, 2010 IP
  7. Rimona

    Rimona Active Member

    Messages:
    123
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    63
    #7
    You may want to include the following in and before your <head> .... </head> statements.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
       
       <meta name="description" content="What the search engines will give as description of your page.">
       <meta name="keywords" content="HTML, tags, commands">
       <title>Buddha Board Blog Review Requests</title>
    
    </head>
    HTML:

    The <!DOCTYPE> line is used to define the type of HTML document or page.
    A good article about that you can find here: http://webprocafe.com/magazine/2009/05/the-essential-doctype

    Line: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    Tells the browser what character set you are using and that you are writing in HTML.

    Line: <meta name="description" content="What the search engines will give as description of your page.">
    Suggests to search engines what to put into your description area.
     
    Rimona, Aug 9, 2010 IP