How to set a paragraph flush right and italic in HTML?

I need to style a paragraph or a separate line flush right and italic using HTML? What are the tags? Thanks fro teaching!

Public Comments

  1. <p align=right><i>Your Text</i></p>
  2. to italicize a text use <i> </i> tags. for example: <i> YOUR TEXT HERE WILL BE ITALICS </i> to flush it right, use these tags. <P align="right"> YOUR TEXT HERE </P> If you want both, do this. <p align="right"><i> TEXT HERE </i></p> hope this helps!
  3. Here's the standards-compliant way to do this: In your stylesheet or style declaration: .myline { text-align: right; font-style: italic; } In your markup: <p class="myline">Some text, blah blah.</p> You can also use the <em> tag for italics: <em>Some italic text</em> Note that the <i> tag and the align attribute in the previous answers are deprecated. Here's some good information and tutorials on valid, standards-compliant html and css: http://htmldog.com/
Powered by Yahoo! Answers