Results 1 to 3 of 3
Thread: Can <pre> contain nested tabs?
Oct 1, 2009, 05:46 #1
Can <pre> contain nested tabs?
Hello! I can't find the answer to this question: is it a valid html to have nested tags inside the <pre></pre> block?
For example: <pre>my text here<blockquote>something here</blockquote> more text <div class='someclass'>some text inside div</div> more text</pre>
Is this valid or not?
Oct 1, 2009, 08:18 #2
- Join Date
- Jan 2009
- 0 Post(s)
- 0 Thread(s)
When asking about the basics, one should first read the manual.
See §9.3.4 Preformatted text: The PRE element. There you will find that it may hold only inline stuff, except for some specific exclusions. So, no, you may not nest a blockquote within pre, but span is ok.
See Poetry and verse in the html page for examples of usage.
garyAnyone can build a usable website. It takes a graphic
designer to make it slow, confusing, and painful to use.
Simple minded html & css demos and tutorials
Oct 1, 2009, 08:56 #3
Thank you. I'll use span instead of blockquote and hopefull my html will remain valid.