HTML headline screwed up

Discussion in 'HTML & Website Design' started by digitalmkt300, Dec 13, 2015.

  1. #1
    Hello,

    So i made a page from scratch for the first time and i think my HTML code is a little screwed up.

    http://www-personal.umd.umich.edu/~tdadkins/

    This page is indexed, but when i look at it in google it says <HTML> <HEAD> <TITLE> before it goes to "best digital marketing programs in michigan"

    So how do i get rid of that extra text <HTML> <HEAD><TITLE>? ive tried to look for these things in the HTML file but i cant find these things. Are they in the top of the page (in the HTML file since they show up first?) Any help to try and get this looking better would be greatly appreciated. This is my very first attempt at this kind of thing so i know it looks rough lol.
     
    digitalmkt300, Dec 13, 2015 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Your markup is terrible. Go back to your textbook and read it again. For starters, the first tag is the doctype declaration, followed by the html tag and head tag. Do not repeat them.

    I'm not going to go through the document, it's so messed up that the W3C validator can't even begin.

    Go to htmldog's beginners' tutorial to learn easily, and most importantly to learn best practice.

    gary
     
    kk5st, Dec 13, 2015 IP
  3. COBOLdinosaur

    COBOLdinosaur Active Member

    Messages:
    515
    Likes Received:
    123
    Best Answers:
    11
    Trophy Points:
    95
    #3
    That code is might work in some alternate universe; but on this planet a web page has a document structure with one tag; one head tag and one body tag all of which get opened and closed in a nested format.

    There is no point eventrying to describe the errors because virtually every line of code is throwing an error. I don't know where you learned to do gibberish like that, but you need to take a deep breath and visit and of the thousands of sites that offer tutorials on the "basics of HTML", because as a web dev student that would not even make it through kindergarten level. You need to learn a little dude instead of just guessing what might work.
     
    COBOLdinosaur, Dec 13, 2015 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #4
    As others are pointing out you have multiple instances of doctype, body and HTML, and that's just gibberish... It looks like you are pasting together multiple files on the back-end where the sub-files should NOT have their own declarations.

    Even if you remove those, the code makes no sense whatsoever.... what makes that initial anchor and it's text a paragraph? What makes that paragraph be the main heading that all content on the page is a subsection of? What makes the later paragraphs be list items? You have whitespace formatted text inside paragraphs that look like they should be second level headings... and of course the HTML 3.2 style upper case tags.

    Nothing in there makes the least bit of sense.
     
    deathshadow, Dec 14, 2015 IP
  5. Ayaz Ahmed

    Ayaz Ahmed Greenhorn

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #5
    Your code is broken, it is usually

    <html>
    <head>
    <title>your page title here</title>
    <meta ................... >
    </head>
    <body>
    <!--
    your page contents in html format
    -->
    </body>
    </html>

    Cheers
     
    Ayaz Ahmed, Dec 18, 2015 IP