HTML Text code

The purpose of writing this post is for some people out there who still don’t know about HTML code which in terms of HyperText Markup Language, a collection of ASCII (plain English characters) text codes, called elements. Elements are used to specify the structure and formatting of web pages. When you create a document you will need to move it onto a web server. A web server basically stores your documents and retrieves them when it is requested by a web browser. This leads us to our next topic the Browser.

Text


Color Value
Codes are differentiated with the symbol “#” value followed by 6 digits where the first 2 digits represent in red color, green and blue color for the rest.
This is the HTML color reference site I used to refer.Body Attributes
In the body tag for text color: eg. <body TEXT=”#0000ff”> , and for background color : <body BGCOLOR=”#0000ff”> Fonts
Codes can be used separately or form together like this

<font COLOR=”#0000ff” FACE=”verdana, times new roman, arial” SIZE=”3″> replace this </font>

where FACE explains the browser will display the first specific text type, else second and third; and SIZE scale is set in between 1 to 7 which SIZE=”3″ is a default size.Text Effects
<b>Bold-strong effect</b> or <strong>Bold-strong effect</strong>
<u>Underline</u>
<i>Italics</i> or <em>Italics</em>
Superscripts use for squared number<sup>42</sup>
Subscript use for indexed number: <sub>9n</sub>Special Characters
I used to refer to efn.org.Check out this example to practice yourself

Check out this example for clearer practice:

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>
<HTML>
<HEAD>
<TITLE>Text Example</TITLE>
</HEAD>
<BODY BGCOLOR=”#CCCCCC” TEXT=”#000099″>
Body Settings<BR><BR>
This page has been set with a light gray background color: #CCCCCC.<BR>
This page has a default blue text color: #000099.<BR><BR>
Font Settings<BR><BR>
<FONT COLOR=”#FF0000″>This sentence’s font color is set to red: #FF0000.</FONT><BR>
<FONT FACE=”Verdana,Arial,Helvetica”>This sentences font face is set to Verdana, Arial, or Helvetica.</FONT><BR>
<FONT SIZE=”5″>This sentence’s font size is set to 5.</FONT><BR><BR>
Text Effects Settings<BR><BR>
<B>This sentence is bold.</B><BR>
<STRONG>This sentence is strong.</STRONG><BR>
<U>This sentence is underlined.</U><BR>
<I>This sentence is in italics.</I><BR>
<EM>This sentence is in emphasis.</EM><BR>
This is <SUP>superscript</SUP>.<BR>
This is <SUB>subscript</SUB>.<BR><BR>
</BODY>
</HTML>

Popularity: 3% [?]

Related Posts:-

Leave a Reply

Designed by Posicionamiento Web | Sponsored by Ganar dinero

Sitemap