SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 31 of 31
  1. #26
    Non-Member
    Join Date
    Jun 2010
    Location
    4727′35″N 2618′0″E
    Posts
    1,789
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Right, right, I'm the bad guy

    Just a reminder:

    Quote Originally Posted by leveretdreaming View Post
    Ok, that's fine, it's difficult to understand, but if you think about it it's necessary to make the layout work correctly:

    [...]

    In any case, this is not an example of your assertion that I am not correctly separating content from presentation: it's just difficult CSS.


    [...]

    ??? This is standard semantic markup: the purpose of those divs is to group content together into independent sections.

    [...]

    This is not separation of content from presentation, but some sort of misguided "optimisation" of the markup to suit a particular layout.


    Please correct me if I'm wrong, but you seem to be operating under the serious misconception that best practice is to only use tags which are absolutely necessary to achieve the desired layout.

    Thanks for references. Good luck with your web page. Honestly! Here's mine, straight from the horse's mouth:

    <!ELEMENT DIV - - (%flow; )* -- generic language/style container -->


    I can't see no sections, semantics or anything like that in there. How did you came to those conclusions about div, beats me

    div is "the generic container of the last resort". First, you need to know enough HTML as to see if there aren't any other more fitted and semantic container elements for your content. Slapping divs carelessly around means insufficient HTML knowledge. Beginner posing as a pro


    PS: div is semantic-less. divitis: cure it.

  2. #27
    SitePoint Enthusiast
    Join Date
    Aug 2010
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks

  3. #28
    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)
    I've been called-in; since obviously there is some misunderstanding about markup. Yes, people can go overboard with application of DIV however they are designed to hook 'styles' or 'languages' are they are generic containers.

    Presentational markup is considered bad practice; as is placing unnecessary title attributes repeating the exact same thing as the hyperlink itself.

    Having an EM in a H1 is also a little weird since it is just overkill, over emphasising the already most important heading in the first place.

    I'd agree with Dave on some of those points about stripping some of the unnecessary DIV wrappers.

    The superfluous DIV values do not really add semantic structures to the page they are neutral and like I previously said are; generic block-level language/style containers. Nothing more... if they were more then also SPAN would be completely redundant.

    They don't create section islands; your headings denote the sections like was mentioned. Even if you buy into that non normative HTML5 mumbo-jumbo; they realised you cannot use DIV to define semantic sections.

    The DIV is no more relevant than the P paragraph element. The DIV element is a generic container for flow content that by itself does not represent anything.

  4. #29
    SitePoint Enthusiast
    Join Date
    Aug 2010
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nonnope: yes, I would consider someone who seems to take pleasure in antagonising others and putting them down a Bad Guy. Perhaps I've read you wrong, but please look over what you've written and see that that's how you come across.

    If I have come across like that also, then I apologise, this was not my intention.

    That article was not my "reference" - just something I found during the discussion.

  5. #30
    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)
    Off Topic:

    Don't worry, Noonnope's English is improving; I'd assume his first language is Romanian. Sometimes people get a little confused by what he is saying and take it the 'wrong way' he wasn't trying to insult you.

  6. #31
    Non-Member
    Join Date
    Jun 2010
    Location
    4727′35″N 2618′0″E
    Posts
    1,789
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Off Topic:


    Yes Robert, Romanian


Tags for this Thread

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
  •