Question:

Writing in html easy question...?

by  |  earlier

0 LIKES UnLike

How must you write in html a word that you want to be italic or of another colour , for example red?

And let's say I have a sentence. I have a second sentence that I want to appear under the first one , but 2 rows lower.What code must I write in order to do that?

Thanks.

 Tags:

   Report

6 ANSWERS


  1. ok this is oldschool inline styles

    <p>=open paragraph

    </p>=close paragraph

    --------------------------------------...

    <p style="color: #336699; font-family: verdana; font-size: 20px;">

    </p>

    <p style="color: #336699; font-family: verdana; font-size: 20px;">

    </p>


  2. <style type="text/css">

    .red {

    color: #f00;

    }

    </style>

    <p>These are some words. <div class="red">And these are red.</div><em>These are Italic.</em><em class="red">These are Red Italic.</em></p>

    <p>This is a new Paragraph. See how it's a couple of rows lower?</p>

  3. when i mess with html to change the colors of italicized, bold, or underlined text, i use the same code every time.

    <style>

    I {

    Color: red;

    }</style>

    in that code, you can put any kind of stuff to alter the text. you can change the font, font size, etc.

    if you want to change the color of bold text, replace the "I" with a "B" and if you want to change the underlined text, replace the "I" with a "U". If you wan to change the striked out text, replace the "I" with a "S".

    to put a sentence two lines below another, do this:

    <br><br>

    OR, you could do this:

    <P>


  4. To make it easy if primitive, the word you want to be red and italicized can have <font color="red"><i>red</i></font> around it.

    To make it 2 lines below, you can put a couple of

    's in there.


  5. for that problem use

    if need any help

    then i can

  6. italic:

    <i>text here</i>

    Color red in html:

    <FONT COLOR="#FF0000">sample text</FONT>

    2 rows lower:

    sentence1

    <br>

    <br>

    sentence2

Question Stats

Latest activity: earlier.
This question has 6 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.