zaniac Posted November 21, 2006 Share Posted November 21, 2006 Hey all!In my efforts to learn (X)HTML, I have come acroos a section regarding how to make inline quotes using the <q> & </q> elements. However when I try to use it in a paragraph it does not seem to work. Below is an quick example, I have just added the quotes into random locations: ------------------------------------------------------- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional!//EN""http://www.3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.3.org/1999/xhtml"><head><title>My first attempt-aha!!!</title></head><body>p><span class="name">Andrea</span> has this weird idea that she is fat. <q>I don't know how she came to this conclusion/result</q>, but by viewing photos of her (dated before 14/11/06), one can clearly see that her idea that she is fat, is all in her head. <q>In her desperate efforts to become stick-thin around the waist she is having an operation.</q></P> </body></html> ------------------------------------------------------- Where am I going wrong? Why are the inline quotes not coming up? Any help is greatly appreciated Link to comment Share on other sites More sharing options...
Err Posted November 21, 2006 Share Posted November 21, 2006 lol. I used to use that, until I found out that it doesn't work on all the browsers, which is probably what you're talking about. Just use the regular quotation marks or the html element ", it does the same thing. Link to comment Share on other sites More sharing options...
zaniac Posted November 21, 2006 Author Share Posted November 21, 2006 lol. I used to use that, until I found out that it doesn't work on all the browsers, which is probably what you're talking about. Just use the regular quotation marks or the html element ", it does the same thing. Hey, thanks mate. Lol, of course the '"' element I'll try to think a little more before I jump the gun and ask. So the <q> element does not work on all browsers, I guess there is no point in using it then. Link to comment Share on other sites More sharing options...
jlhaslip Posted November 22, 2006 Share Posted November 22, 2006 Check this out : http://www.w3schools.com/tags/tag_blockquote.asp Link to comment Share on other sites More sharing options...
jesh Posted November 22, 2006 Share Posted November 22, 2006 This is a good article too:http://alistapart.com/articles/qtag Link to comment Share on other sites More sharing options...
holmedwa04 Posted November 22, 2006 Share Posted November 22, 2006 If you are quoting something, I recommend that you usee a paragraph, because you can set loads of really cool things. Check out the code that I am using on my guestbook... <p style="background: #fcfbff; border: 1px dashed silver; padding: 8px; font-family: Arial"><em>Depressingly Necessary Privacy Policy:</em><br />Your privacy is always important and because we know it is so important any of your details will never be given out to any third parties or sold to anyone, for more information on this matter please visit our <a href="privacypolicy.html">Privacy Policy</a>.</p> I sopose it isn't a quote, but you could easily change it to one, for easy viewing, follow the link below:Click Here Link to comment Share on other sites More sharing options...
jlhaslip Posted November 23, 2006 Share Posted November 23, 2006 Or style up a <span> similar to the above method, except without the <p></p> tags. Link to comment Share on other sites More sharing options...
holmedwa04 Posted November 23, 2006 Share Posted November 23, 2006 Ah, but span is 3 more letter to process than 1! That would raise your file size, only joking, I just prefer to use paragraph thats all. Link to comment Share on other sites More sharing options...
zaniac Posted November 26, 2006 Author Share Posted November 26, 2006 Hi guys, many thanks for the extra help, I've read the links and am now getting a better idea. I originally just sat in front of my computer, completely clueless as to why the <q> element was not functioning correctly. Now I know though Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now