Using H2 Tags in a HTML Table?

Discussion in 'HTML & Website Design' started by m1ndless, Oct 13, 2011.

  1. #1
    I am using Joomla on my site, and I created a table inside of an article, which features the categories of my products. I created the table and used H2 tags inside of the <td> and now I am receiving a bunch of W3 errors.

    I cannot use CSS inside of a Joomla article, even when using the JCE editor it clears out all my CSS code.

    Any ideas how to solve the issue?
     
    m1ndless, Oct 13, 2011 IP
  2. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #2
    Delete line 32 and you'll be good to go.
     
    drhowarddrfine, Oct 13, 2011 IP
  3. m1ndless

    m1ndless Peon

    Messages:
    1,112
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    What do you mean Line 32? I didn't put the code or anything up. lol
     
    m1ndless, Oct 14, 2011 IP
  4. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #4
    Exactly .
     
    drhowarddrfine, Oct 14, 2011 IP
  5. m1ndless

    m1ndless Peon

    Messages:
    1,112
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The code isn't needed for this question. Stop trolling.
     
    m1ndless, Oct 14, 2011 IP
  6. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #6
    You think fixing your code doesn't need you to show your code? You think not showing what the errors are isn't necessary?
    I think you don't think.
     
    drhowarddrfine, Oct 14, 2011 IP
  7. m1ndless

    m1ndless Peon

    Messages:
    1,112
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I asked if you could use H tags in a HTML table, how does that require any bit of code to be posted? Are you retarded or something?
     
    m1ndless, Oct 14, 2011 IP
  8. ApocalypseXL

    ApocalypseXL Notable Member

    Messages:
    6,095
    Likes Received:
    103
    Best Answers:
    5
    Trophy Points:
    240
    #8
    Your question is retarded . OFC you can use a HTML tag inside another HTML tag , it's called nesting . If your post is true and you do 3-4 websites per day then you're creating a lot of spam each year .
     
    ApocalypseXL, Oct 14, 2011 IP
  9. m1ndless

    m1ndless Peon

    Messages:
    1,112
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #9
    How is my question retarded? If you can nest the code, why is it generating W3 errors? No code is needed to answer the question.

    I flip websites, 3-4 service sites per day is nothing compared to other people, take a look at Flippa. :D
     
    m1ndless, Oct 14, 2011 IP
  10. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #10
    Cause you are saying there are errors so there must be something wrong with your code and until we see the code how are we going to know what the errors are? Retard.
     
    drhowarddrfine, Oct 14, 2011 IP
  11. ApocalypseXL

    ApocalypseXL Notable Member

    Messages:
    6,095
    Likes Received:
    103
    Best Answers:
    5
    Trophy Points:
    240
    #11
    #1 Nesting is a basic property of most modern computer languages

    #2 Thanks for trying yo give me red rep . Try that again when you actually get the power to do that .

    #3 Just because some people spam more then you it doesn't make you less of a spamer . Like it on not you're contributing to the continuous degradation of the Internet . No one likes crappy websites but you're making them .

    #4 There are several thousand possible HTML errors that you can get . Those can have dozen of thousands of causes . In case you didn't noticed this is a webmaster forum not a forum for HTML fortunetellers . If you want help you should at least post some info ... maybe just maybe ... a screenshot or ... gasp the source code itself .
     
    ApocalypseXL, Oct 14, 2011 IP
  12. sarahk

    sarahk iTamer Staff

    Messages:
    28,934
    Likes Received:
    4,563
    Best Answers:
    124
    Trophy Points:
    665
    #12
    Not necessarily, he could be wanting to have a general discussion about advanced editing with Joomla. Then again, if he had he would have posted in the Joomla section?

    As a general comment (I haven't used Joomla in years and back then it's implementation of MVC was laughable) I would expect that you'd be able to apply a class to your layout - then just add the necessary style information to your css. If its not reflected in your wysiwyg don't fret. Its what is shown on your site that matters.
     
    sarahk, Oct 14, 2011 IP
  13. m1ndless

    m1ndless Peon

    Messages:
    1,112
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Then why is it throwing W3 errors?

    I am not a spammer, there is a demand for my sites, and I supply the product, what's wrong with that?

    All I asked if it was possible to use H2 tags inside a HTMl table, which no one has provided the answer to. Simple yes or no, why try and start a fight instead? Seriously, it's just the internet kid.
     
    m1ndless, Oct 14, 2011 IP
  14. ApocalypseXL

    ApocalypseXL Notable Member

    Messages:
    6,095
    Likes Received:
    103
    Best Answers:
    5
    Trophy Points:
    240
    #14
    - Does that look like an answer to you ? It should because that was the answer junior .

    As for there is a demand , there is also demand for blow , acid and other stuff so why not supply those as well ?
     
    ApocalypseXL, Oct 14, 2011 IP
  15. m1ndless

    m1ndless Peon

    Messages:
    1,112
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Are you really trying to compare simple supply and demand to selling drugs? Do you get off by trolling threads on DP or something?

    I am using a HTML tag inside of a HTML tag, how else would you go about it?
     
    m1ndless, Oct 14, 2011 IP
  16. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #16
    That made me laugh ApocalypseXL.
     
    drhowarddrfine, Oct 14, 2011 IP
  17. m1ndless

    m1ndless Peon

    Messages:
    1,112
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Quoted the wrong person. Fail.
     
    m1ndless, Oct 14, 2011 IP
  18. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #18
    No I didn't. Inside joke.
     
    drhowarddrfine, Oct 14, 2011 IP
  19. sarahk

    sarahk iTamer Staff

    Messages:
    28,934
    Likes Received:
    4,563
    Best Answers:
    124
    Trophy Points:
    665
    #19
    Back in the day, when we were trying to learn how things worked, we put together test cases to see what would happen.

    Would it have been so hard to create a basic html page with a table, an H2 and little else and run it through your validator?

    The use of tables for layout purposes is no longer "de rigueur" but it would be naive to think it doesn't happen. If it happens, then it follows that Heading tags are used within them.

    I suspect your page has some tags that aren't closed properly. Was looking at one "professional" site yesterday that had 3 head sections.
     
    sarahk, Oct 14, 2011 IP
  20. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #20
    My question would be what the devil is a H2 doing inside a table?!? -- should the TD be a TH then? Or are you using table for layout? Are you wrapping the H2 around the TD or some other invalid use of the tag? Are you attempting to use a H2 for what should in fact be a caption?

    For example:

    
    <table>
    	<h2>section title</h2>
    	<tr>
    		<td>Something</td>
    
    Code (markup):
    Invalid HTML, the only tags that can be direct descendents of TABLE are COLGROUP, THEAD, TFOOT, TBODY, CAPTION or TR... in this case that should be a CAPTION.

    
    <table>
    	<tr><td><h2>Column Title</h2></td></tr>
    
    Code (markup):
    Semantically incorrect as there's this tag called TH... which would replace BOTH the TD and H2... preferable inside THEAD if it's going to have scope="col"... if it's a row title, then it should be scope="row" and STILL a TH.

    It's like every time I see someone do this:

    <td><b><font size="+1">Column Title</font></b></td>

    I get the overwhelming urge to unleash a pimp-slap.

    As EVERYONE has told you so far, no code means ANYTHING we tell you is guessing wildly in the dark. We can't tell you what's wrong if you won't show it to us. Admittedly, DrHowardDrFine could have been a bit less snarky about it.... Though it's an absolute riot the mere notion of me saying that about someone else since to be brutally frank:

    THIS IS WHY WE CAN'T HELP YOU!

    Though with the absolute asshat garbage markup most Joomla templates (or WP templates or other off the shelf rubbish CMS) vomit up and have the giant brass monkey balls to call HTML, we might not be able to 'help you' anyways without instructing you in completely gutting all the pointless/useless bloat that's hardcoded into the system.
     
    deathshadow, Oct 15, 2011 IP