SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Enthusiast polyhedra's Avatar
    Join Date
    Nov 2011
    Posts
    90
    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 trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,108
    Mentioned
    28 Post(s)
    Tagged
    2 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 xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 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.

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,199
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    Yeah, best not to do that, although browsers will forgive you if you do, it seems.


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
  •