Friday 27 September 2013

Understanding HTML

    It seems like everyone do blogging nowadays. It is quite a good platform to express ourselves. Plus we could have our voice heard to anyone using the internet, therefore expanding our circle of influence. Blogging could be about our mundane daily activities, our interests and hobbies or any cause that we want to promote. 

To blog, we need to create a webpage. So it is important that we learn about HTML. As an introduction, the term HTML stands for:

Hyper 
Text
MarkUp
Language

     It is actually the main markup language to create a webpage. HTML is written in the form of HTML elements consisting of tags enclosed in angle brackets e.g. <html>,  within the web page content. I can tell you that these tags seemed confusing when I first encountered them. It could be similarly daunting for any other beginner. What is up with all these symbols and notations? Fret not, I assure you it is not impossible to learn.

    Therefore, in this post I would describe some of the basic HTML tags used to construct a webpage. On a text editor (you can use Notepad), we should always begin with <html> tag followed by <body> tag. Similarly, we should always end with tag of the same element, but with additional slash before the element i.e. </body> and </html>. Therefore, now we have a webpage. But of course we would need content for it. Other objects like heading, paragraph, list, image and link can be included in the webpage using the tags that are going to be described next.

Heading and paragraph   

    Heading and paragraph  are two important basic parts in constructing a webpage. Constructing a heading and a paragraph in a webpage is easy, you just put the syntax and then followed by your text. There are two syntax which is used; < h1></h1>/ <h2></h2>/ <h3></h3>/ < h4></h4>/ <h5></h5>/ <h6></h6> for heading and <p></p> for paragraph. Heading has 6 level of font size. The bigger the number the smaller its font size will be.
The following text is the html text to make a heading in webpage.

<html>
<body>

<h1>Heading With Font Size 1</h1>
<h2>Heading With Font Size 2</h2>

<h3>Heading With Font Size 3</h3>

<h4>Heading With Font Size 4</h4>

<h5>Heading With Font Size 5</h5>

</body>
</html>

And this is the display in webpage:

Heading With Font Size 1

Heading With Font Size 2

Heading With Font Size 3

Heading With Font Size 4

Heading With Font Size 5

Furthermore, the following text will show you how to construct heading and paragraph in webpage.

<html>
<body>

<h3>Malin Kundang</h3>

<p>Once upon a time, in a small island there lived a widow and her son named Malin Kundang. She had to live a hard life with his son because his husband had passed away.</p>

</body>
</html>

And this is the result in a webpage:

Malin Kundang

Once upon a time, in a small island there lived a widow and her son named Malin Kundang. She had to live a hard life with his son because his husband had passed away.

List

The following are the different types of lists:

1.  UL (Unordered List)

     An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.
     The list items are marked with bullets (typically small black circles).
     Example:
    <ul type="disc">
       <li>Milk</li>
       <li>Cookies</li>
    </ul>
     How the HTML code above looks in a browser:
  • Milk
  • Cookies
2.  OL (Ordered List)

     An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.
     The list items are marked with numbers or alphabets.
     Example:
     <ol type="1">
        <li>Milk</li>
        <li>Cookies</li>
     </ol>
     How the HTML code above looks in a browser:
  1. Milk
  2. Cookies
#Tip: Change the "1" with "A" for alphabets.

3.  NL (Nested List)

     A description list is a list of terms/names, with a description of each term/name.
     Example:
    <ul>
       <li>Coffee</li>
       <li>Tea
          <ul>
          <li>Black tea</li>
          <li>Green tea</li>
          </ul>
       </li>
     <li>Milk</li>
    </ul>
     How the HTML code above looks in a browser:
  • Coffee
  • Tea
    • Black tea
    • Green tea
  • Milk
Images

This section will teach you how to add moving and non-moving images on your webpage. 

Step 1 - Select a desired image/gif.
Step 2 - Save image/gif in the same folder as your notepad .txt and .html.
Step 3 - Add the following code into the Notepad.

<p>
An image:
<img src="smiley.gif" alt="Smiley face"
width="32" height="32" />
< /p>
<p>
A moving image:
<img src="hackanm.gif" alt="Computer man"
width="48" height="48" />
</p>

How the HTML code above looks in a browser:

An image:
A moving image:


#Note: The syntax of inserting a moving image is no different from a non-moving image.

Links

The HTML code for links are as follows:

<p>
<a href="#C4">See also Chapter 4.</a>
< /p>

How the HTML code above looks in a browser:

See also Chapter 4.

#Tip: Change the "#C4" with your desired website and "See also Chapter 4." with you desired link title.

Conclusion

To sum it up, the following table is just listing all the basic tags used to build a webpage using HTML.

HTML tag Purpose
<html>     Telling web browser that it is a HTML document
<body>     Defining the document body
<h>     Defining heading
<p>     Defining paragraph
<li>     Defining list
<ol>     Defining ordered list
<ul>     Defining unordered list
<a>     Defining a hyperlink
   - used with HTML attribute href to specify the
     link's destination

    I hope that this blog post would help you to understand at least a little bit about HTML. Should you want more reference, this website would give you more understanding in the subject. Plus it contains tutorial to do more sophisticated code than the ones I include in this post.

This is just a video of a song that I like. Begin your HTML-ing with Bismillah!

Friday 20 September 2013

Our First Day in the IIUM Kuantan

     Our first day in IIUM Kuantan can be described as a long and tough day. Why? Because after having long journey from Gombak we got to settle all the administration in this campus and register to our mahallah, the place where we will stay for the next 12 months.



     Preparing to walk and get ourselves ready at the bathroom mosque, we were relieved to find out that the water in our hostels were running again. They were fixing the pipes, forcing all the residences in Mahallah Maimunah deprived of clean water for a 24 hours. After a long 4-hour journey bus ride from Gombak to Kuantan, our smelly bodies were ecstatic coming into contact with the cold yet murky water.


     Having no map and no transportation, we agreed to meet up and walk reluctantly in the heat to our kulliyyah. Sharing an umbrella, we huddled together under the limited shade. After about 15 minutes, we reached our destination, the Kulliyyah of Science. It is the furthest department in IIUM Kuantan Campus. It is located nearly at the end of the road, far apart from the rest of the departments. Breathing heavily, we asked for directions and went around in endless circles before we finally found the department office. We didn't mind waiting for our course outlines, because during the wait, we could sit and relax on their comfortable chairs while enjoying the air-condition. Below is our study plan for our first semester as freshmen:

STUDY PLAN FOR SEMESTER 1, 2013/2014
Course code Subject Credit hours
SMS 1101
Analytic Geometry
3
SMS 1102
Calculus I
3
SMS 1103
Number Theory
3
KOS 1110K
Computer in Science
3
MGT 2010K
Principle & Practice of Management
3
UNGS 2030K
Islamic Worldview
3



    Registering for library access was next on our list. Still with no map in hand, we were forced to use our gut-feeling to go around the campus. There were many times when we got lost and arrived at dead-ends, but we were determined to find the place before the end of day. When we arrived at the library, we found out that there are no back doors, therefore we had to go around the building and use the front entrance. Many of us were anxious when we need to register for a certain thing, but that anxiety melted away once we have submitted our forms. After 15 minutes, we could already use the computers in the computer lab to register for our classes. We missed our classes that day, but we were excited to catch the ones on the next day.

    The One Stop Student Centre, or OSC, was next. Thank goodness it was right next to the library. We didn't think that our poor aching feet could take another long journey. We finished all our errands for the day and were planning to walk back to our hostels. But then two nice colleagues stopped their car next to us and offered us a ride. We didn't hesitate for even a second to accept that offer.

    After all, it was a long, tiring day and we were a bit anxious and unsettled. But, we do have faith and trust in Allah SWT that things are going to work fine for us, insya Allah. Just like this song by Maher Zain:





Note: If you are wondering what fractals are, one example is the Sierpinski's Triangle.
If you would like to know more, you should click on this link.