Results 1 to 5 of 5

Thread: How to give colours to the text in html

  1. #1
    Join Date
    May 2009
    Posts
    760

    How to give colours to the text in html

    I have design a simple site. The site has some images and text of 4 paragraph. I am trying to give different headings and colors to the text but it is not working. When I use a colour tag there is no reflection on the site when I refresh the page. I deleted all those codes and without creation. I need some sample of coloring and formatting of text.

  2. #2
    Join Date
    Oct 2005
    Posts
    2,393

    Re: How to give colours to the text in html

    To edit a title in different style you have to use below tags. These titles will be displayed in your browser, not the titles that appear in the title bar of your browser. There are 6 heading levels. Like <h1> and </ h1> for Title Level 1, <h2> and </ h2> for Heading 2, <h3> and </ h3> for Heading 3, <h4> and </ h4> for Level 4 Title, and so on till h6.

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    Re: How to give colours to the text in html

    A paragraph as you read is defined by the tags and <p> </ p>. The <p> tag causes a line break before the paragraph. You can combine this tag <p> attribute "align" which aligns the text in your worksheet. If you want to go on line but without changing the paragraph, you must use the tag <br>. The tag <div> plays a special role. It can extract the information into logical unit. This tag is used with the CSS language. The <hr> separates a paragraph by a line of variable size.

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: How to give colours to the text in html

    For the size <FONT SIZE=""> SIZE the tag that lets you change the character size and tag. To understand the tag <FONT>, we will take the following example. <FONT SIZE="+1"> Size </ font>, <FONT SIZE="+4"> Size </ font>, etc. You can increase or decrease the font size as you wish. The tag <FONT FACE=""> can change the font. You can use any font that your operating system supports, but you should know that he who visits your page will suffer perhaps not the fonts you used. To overcome this little problem, you can specify alternative fonts by separating them with commas.

  5. #5
    bridgetbruston Guest

    Re: How to give colours to the text in html

    <h1>Different Font Colors</h1>
    <p>Text in standard font, usually "Times New Roman" - size: 2 - color: black.</p>
    <p>
    <font size="4" color="blue"> Font size 4, blue color </font>
    <font size="5" color="green"> Font size 5, green color </font><br>
    <font size="2" color="#FFFF00"> Font size 2, yellow color </font>
    <font color="#FF0000"> Standard font size, red color</font>
    </p>
    By this code you can color your font in HTML.

Similar Threads

  1. How to give Password to Html Page?
    By ramsun in forum Tips & Tweaks
    Replies: 4
    Last Post: 18-11-2009, 10:57 AM
  2. How to put text beside an image in HTML
    By KADRI in forum Software Development
    Replies: 3
    Last Post: 01-10-2009, 09:35 PM
  3. How to put html tag to color text
    By garfield1 in forum Software Development
    Replies: 3
    Last Post: 28-07-2009, 11:38 AM
  4. How to use justified text in Html
    By Quattro in forum Software Development
    Replies: 3
    Last Post: 27-07-2009, 03:16 PM
  5. How to give spaces in html ?
    By Beltran in forum Software Development
    Replies: 3
    Last Post: 27-07-2009, 02:59 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,651,689.23797 seconds with 17 queries