Pair of Vintage Old School Fru
2025-06-21 00:55
WELCOME TO INSTALOADED FORUM

Home
Contact Us
Advert With Us

* MYKEMINI * MYKEMINI Lesson 6:
A few more elements
Did you manage to make a few pages on your own? If not, here is an example:
<html>
  <head>
  <title>My website</title>
  </head>
  <body>
  <h1>A Heading</h1>
  <p>text, text text, text</p>
  <h2>Subhead</h2>
  <p>text, text text, text</p>
  </body>
</html>[code]
Now what?
Now it is time to learn seven new elements.
In the same way you emphasise the text by putting it between the openning tag
<em> and the closing tag </em> , you can give stronger emphasis by using the openning tag <strong> and the closing tag </strong> .
Example 1:

<strong>Stronger emphasis.</strong>

Will look like this in the browser:
Stronger emphasis.
Likewise, you can make your text smaller using small:
Example 2:

[code]<small>This should be in small.</small>

Copy code


Will look like this in the browser:
This should be in small.
Can I use several elements at the same time?
You can easily use several elements at the same time as long as you avoid overlapping elements . This is best illustrated by an example:
Example 3:
If you want to emphasise small text, it must be done like this:
<em><small>Emphasised small text</small></em>
And NOT like this:
<em><small>Emphasise small text</em></small>

Copy code

The difference is that in the first example, we closed the tag we first opened last. This way we avoid confusing both ourselves and the browser.
More elements!
As mentioned in Lesson 3 there are elements which are opened and closed in the same tag . These so-called empty elements are not connected to a specific passage in the text but rather are isolated labels. An example of such a tag is <br /> which creates a forced line break:
Example 4:

Some text<br /> and some more text in a new line
Will look like this in the browser:
Some text
and some more text in a new line
Notice that the tag is written as a contraction of an opening and closing tag with an empty space and a forward slash at the end: <br /> .
Another element that is opened and closed in the same tag is <hr /> which is used to draw a horizontal line ("hr" stands for "horizontal rule"):
Example 5:

<hr />
Will look like this in the browser:
Examples of elements that needs both an opening tag and a closing tag - as most elements do - is ul, ol and li . These elements are used when you want to make lists.
ul is short for "unordered list" and inserts bullets for each list item. ol is short for "ordered list" and numbers each list item. To make items in the list use the li tag ("list item"). Confused? See the examples:
Example 7:
<ul>
  <li>A list item</li>
  <li>Another list item</li>
</ul>

Copy code

will look like this in the browser:
A list item
Another list item
Example 8:
<ol>
  <li>First list item</li>
  <li>Second list item</li>
</ol>

Copy code

will look like this in the browser:
1. First list item
2. Second list item
Phew! Is that all?
That is all for now. Again, experiment and make your own pages using some of the seven new elements you learned in this lesson:
<strong>Stronger emphasis</strong>
<small>Small text</small>
<br /> Line shift
<hr /> Horizontal line
<ul>List</ul>
<ol>Ordered list</ol>
<li>List item</li>

Copy code
2016-12-18 07:38 · Reply · (0)

Online: Guests: 1

INSTALOADED | RECENT POSTS



post Created at 2017-01-14
Top Worst Things You Should Stop Doing Online10 years ago, what the internet use to be is not... Read More »
post Created at 2017-01-06
The Number Of Internet Users In Nigeria Reduced To 92.4million - NCC The number of internet users in Nigeria’s... Read More »
post Created at 2016-12-24
Glo Put an End to Blackberry Internet Service (BIS)I'm pretty sure that lots of Android device users... Read More »
post Created at 2016-12-18
Super Mario Run Arrives on iOSNintendo unveiled the iOS version of Super Mario... Read More »
post Created at 2016-10-29
Airtel free 5GB via IMEI  TweakingHi lovely viewer and welcome to this lovely post.... Read More »
post Created at 2016-10-29
MTN 4G LTE Users: You Can Now  Get Free MTN 5GB Data Reward*Even if 75% of cities in Nigeria are yet to... Read More »
post Created at 2016-10-11
Facebook Launches Market Place: Where You Can Buy & Sell Any ItemsFacebook has gone beyond just a social media where... Read More »
post Created at 2016-08-27
Whatsapp Will No Longer Work On These Phones »See List«At the end of 2016, we will no longer support the... Read More »
post Created at 2016-08-27
How to get 2Gb with just #200 on EtisalatThis is aNight Plan– Take Note!! All the Networks... Read More »
post Created at 2016-08-27
Woow..! WhatsApp To Share Users’ Phone Numbers With FacebookThe instant messaging app has updated its privacy... Read More »

Instaloaded Forum Owned By Michael Anthony
United States Mozilla 216.73.216.24 | 1 | 29 | 299 | 335 | 105591 |
© INSTALOADED » FORUM™ 2025