Thursday, July 13, 2017

HSC ICT (Chpter-04, Lecture-12)

24) Strike through <strike>

To make the text appear strike through, we need to enclose it within <strike> and </strike> tags.
<strike>Strike Through Text</strike>
Output
Strike Through Text

25) Centering The Text <center>

To center the text, simply put your text within <center> and </center> tags.
<center>This Text is Centered </center>
Output
This Text is centered

26) Ordered List <OL>

Typically ordered list is rendered by numbering scheme using Arabic numbers, letters or Roman numbers. Ordered list are suitable for crating simple outlines because the list items are automatically numbered by the browser. Ordered list also called as Numbered list, is used to present a numbered list of item starting with “1”unless changing the <OL> tag type. An ordered list must begin with the <OL> followed by an <LI> list item tag.
Example: An HTML document orderedList.html shows the use of Ordered List
<HTML>
<HEAD>
<TITLE>
An Ordered List
</TITLE>
</HEAD>
<BODY>
<H1><U> An Order List </U></H1>
<OL>
<LI> Item 1
<LI> Item 2
<LI> Item 3
<LI> Item 4
</OL>
</BODY>
</HTML>
After saving the page display it in browser, you should see a numbered list like the following figure- OrderedList.html
27) Attributes of <OL> Tag
The <OL> tag has three basic attributes and these are compact, start and type.
TYPE: Type attributes is used to specify numbers or letters. By default the list Item markers are set to numbers 1, 2, 3… so on. Other values of TYPE attribute are:
Type = A Capital letter eg. A, B, C, D………
Type = a Small letter eg. a, b, c, d ………
Type = I Uppercase Roman Numbers eg. I, II, III, IV……
Type = i Lowercase Roman Numbers eg. i, ii, iii, iv……
Type = 1 eg. 1, 2, 3, 4………….
START: Start attribute is used to begin a list at point other than 1. The start value must be a number. For example if you want to start a list at the number 10, you might write it as follows
< OL type =1 start=10>.
Share:

0 comments:

Post a Comment

Recent Posts

Unordered List

  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  • Aliquam tincidunt mauris eu risus.
  • Vestibulum auctor dapibus neque.

Pages

Theme Support

Need our help to upload or customize this blogger template? Contact me with details about the theme customization you need.