SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Spacing HTML code.

  1. #1
    SitePoint Enthusiast polyhedra's Avatar
    Join Date
    Nov 2011
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Spacing HTML code.

    Hi everyone hope things are well. Is using spaces before and after the equals sign in my html ok?Will it cuase older or some types of browsers to break when reading the html. I'm self-tought python users and I wanted to carry over some of my ways of stylings.

    HTML Code:
    <meta charset = "utf-8">
    <style type = "text/css">
    <h1 id = "elementA">

  2. #2
    padawan silver trophy
    SitePoint Award Recipient markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,031
    Mentioned
    26 Post(s)
    Tagged
    0 Thread(s)
    I have no idea, but I would suggest simply adopting the standard of <tag attr="value">, it's easier to work with code if you just adopt well know standards.

  3. #3
    Robert Wellock silver trophybronze trophy
    SitePoint Award Recipient xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,259
    Mentioned
    52 Post(s)
    Tagged
    0 Thread(s)
    It won't cause any problems there other than not following best practice and add surplus unnecessary white space. Though in some circumstances and places; white space has meaning, or should be avoided in markup else it can cause issues.
    };-) http://www.xhtmlcoder.com/
    Thinking Web: Voices of the Community

    > March 2013 - SitePoint forums: Spot the Error 3: Calling all Sleuths! Winner Announced!... She knows how to spot simple <code> errors but do you?

  4. #4
    It's all Geek to me silver trophybronze trophy
    SitePoint Award Recipient ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, Australia
    Posts
    20,303
    Mentioned
    225 Post(s)
    Tagged
    3 Thread(s)
    Yeah, best not to do that, although browsers will forgive you if you do, it seems.
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Try your hand at the new JavaScript Challenge!

    If you don't like getting your feet stuck in a bog, avoid Twitter BootsTrap.

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
  •