SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2011
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why does it appear?

    Why does this appear on my site at the top? Actual web display it should be hidden?
    Working through the book Build your own website the right way using HTML & CSS Ian lloyd
    >html xm1ns="http://www.w3.org/1999/xhtml">

    Thanks,
    Barry

  2. #2
    Avid Logophile silver trophy
    ParkinT's Avatar
    Join Date
    May 2006
    Location
    Central Florida
    Posts
    2,342
    Mentioned
    192 Post(s)
    Tagged
    4 Thread(s)
    Is the file saved as ".html"? Windows has an annoying tendency to hide the actual file extension.

    According to your post (if it was NOT simply a mistype when you posted the question)
    Code:
    >html xm1ns="http://www.w3.org/1999/xhtml">
    Should be
    Code:
    <html xm1ns="http://www.w3.org/1999/xhtml">
    Don't be yourself. Be someone a little nicer. -Mignon McLaughlin, journalist and author (1913-1983)


    Git is for EVERYONE
    Literally, the best app for readers.
    Make Your P@ssw0rd Secure
    Leveraging SubDomains

  3. #3
    SitePoint Enthusiast
    Join Date
    Nov 2011
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thanks

    Thanks I changed the < as you said and it's gone. Solved!

  4. #4
    Avid Logophile silver trophy
    ParkinT's Avatar
    Join Date
    May 2006
    Location
    Central Florida
    Posts
    2,342
    Mentioned
    192 Post(s)
    Tagged
    4 Thread(s)
    I am glad to hear that.
    Realize that a fundamental concept of HTML/XML is the format (or syntax) of the entities. You will begin to see this consistently but;
    All HTML elements MUST BE contained within angle-brackets. They are intended to confine and delineate the element.
    Inside that element there can be numerous attributes. Every element SHOULD contain a matching OPEN and CLOSE tag.
    For example:
    Code:
    <htmltag>
    Some content here, which could be more HTML tags
    </htmltag>
    OR
    Code:
    <htmltag this_is_an_attribute="meta-data">
    Some content here
    </htmltag>
    Finally, some tags which do not contain data are not required to have a matching CLOSING tag. However, they ARE REQUIRED to comply with a modified format. The most familiar example is the HTML 'image' tag:
    Code:
    <img src="the_source_is_metadata" style="style_modifiers_is_metadat" />
    <hr /> This is another example
    <br /> And so is this
    Note the way this is self-closing

    These are the "formal" requirements. However, many browsers will properly interpret (and interpolate) poorly structured HTML. In the world of XML there is much less tolerance, though.

    I hope I have not bored you with TOO MUCH DETAIL.
    Don't be yourself. Be someone a little nicer. -Mignon McLaughlin, journalist and author (1913-1983)


    Git is for EVERYONE
    Literally, the best app for readers.
    Make Your P@ssw0rd Secure
    Leveraging SubDomains


Bookmarks

Posting Permissions

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