Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /home/thejoeit/public_html/wordpress/wp-content/plugins/ultimate-google-analytics/ultimate_ga.php on line 524
The advice today is fast and (hopefully) helpful. Sometimes I happen to write some articles divided into sections. So far I have never raised the issue of assigning a sequential number to each section (as is the case with the chapters). Today I raised the issue. This procedure can be useful for example when we want to insert A small menu at the beginning, alluding to the section listed (type Wikipedia). Let's see how.
The classic HTML code for the numbered list is as follows:
<ol> <li>Test text 1</li> <li>Text Test 2</li> </ol>
With this code will build a numbered list ordered. Suppose you have to write our text section between the section “Test text 1” and “Test text 2“. The W3C informs us that it is not allowed to enter “the case” the tag “
<p>“. You must first close “<ol>”, insert the contents of “<p>”, reopen “<ol>” and reinsert “<li>”. In a nutshell start a new numbered list. To start it by the number “2” the code is “
<li value="2">“. Following the example of formatting:
<ol> <li>Title 1</li> </ol> <p>This is a description.</p> <ol> <li value="2">Title 2</li> </ol> <p>This is the second description.</p>
Let's see how it is:
- Headline 1
This is a description.
- Headline 1
This is the second description.