If you look at the website we are trying to create, the next step is to write a paragraph. Let’s do that. Open your file: “global family.html”.
Just below the tagline <p style="text-align: center;"> <img src="https://i.pinimg.com/originals/b0/98/01/b09801e517bb55371ef5358205e831c0.jpg" width="5%" />, write a new h2 heading: <h2>What Is A Global Family?</h2>.
You now know how to place your heading between opening and closing tags < h2>< /h2>.
Let’s give our heading a green color. We talked about style rules in Lesson 1, Section 4. You may like to revisit the topic now.
Let us use Inline style rule to give green color to our h2 heading. Write the following:
<h2 style="color:green;text-align:center;">
What Is A Global Family? </h2>
Save the global family.html file and open it now. If you wrote everything correctly, you should see your heading as shown below:
Paragraph is for writing text. All the texts are placed under the opening and closing tags <p> </p>. As you may have guessed, p stands for paragraph in html5 language. So, let’s write the following:
We are living in an era of quantum change—leaving behind old patterns of being and institutions that no longer serve our needs or support our emerging consciousness. At this pivotal time in humanity’s evolution, we need courage, commitment, and a supportive community of like-hearted souls to guide the way in transforming society.
If you save the file: “global family.html” and open it, you will find the above paragraph below the heading, “What Is A Global Family.”
Making bold and italicizing
Write the following in front of “quantum change” in the paragraph above:
<strong> quantum change</strong>. As you may have guessed, this will make contents inside the tags <strong></strong> bold.
You may also write <b> </b> instead of <strong> </strong>
Now, write the following in front of “humanity’s evolution” in the paragraph above:
<em> humanity’s evolution</em>. As you may have guessed, this will make contents inside the tags <em></em> italicized.
You may use both the “strong” and “em” tags at the same time. Try this:
<strong> <em> quantum change </em></strong>
Coloring words inside a paragraph
Write the following in the above paragraph in the beginning and end of the words, “courage, commitment”:
<font color=”green”>courage,commitment</font>. The words “courage, commitment” will appear green now.
If you wrote everything correctly, so far, your paragraph should look like the following:
“We are living in an era of quantum change—leaving behind old patterns of being and institutions that no longer serve our needs or support our emerging consciousness. At this pivotal time in humanity’s evolution, we need courage, commitment, and a supportive community of like-hearted souls to guide the way in transforming society.”
Floating and labeling image inside a paragraph
If you look at the web image that we are trying to create; you will find the image of sunset floating in the center of the paragraph. Let’s write the code to create the floating image on the web page that you are designing right now.
Open your file: “global family.html” and write the following after “no longer serve our needs or support our emerging” in your paragraph.
<p style="text-align:center;"> <img src="pix/sunset.jpg" alt="Sunset" width="5%"> <br> A Beautiful Sunset</p>
Save the file and open it. You should see the paragraph and the image as follows:
We are living in an era of quantum change—leaving behind old patterns of being and institutions that no longer serve our needs or support our emerging
consciousness. At this pivotal time, in humanity’s evolution, we need courage, commitment, and a supportive community of like-hearted souls to guide the way in transforming society.
Explanation
<p style="text-align: center;"> <img src="sunset.jpg" alt="Sunset" width="5%"> <br> A Beautiful Sunset </p>
<br> | Line break |
<hr> | Shows a horizontal rule |
<img> | Shows a graphic image |
<link> | Links to an external file |
<meta> | Provides information about the page |
Floating an image
We may float the image left or right also by giving float command. Use the following command and see what happens:
< img="pix/sunset.jpg" alt="Sunset” style="float:left; width:25% > <br>A Beautiful Sunset</p>
Now, try right float by typing
<p img src="pix/sunset.jpg" alt="Sunset”" style="float:right; width:25%" > <br>A Beautiful Sunset </p>
Here is the html program (code) that you have written, so far. Check it and make revision (We will come back to videos a little later):
<!DOCTYPE html>
<html>
<head>
<title>Global Family</title>
</head>
<body>
<h1 style="color:red; text-align:center;">Global Family</h1>
<p style="text-align:center;">A Family That Keeps Together</p>
<p style="text-align:center;"> <img src="pix/Old Couple.png" rel="Old Couple" width="10%"<br> Old Couple</p>
<p style="text-align:center;"><img src="https://i.pinimg.com/originals/b0/98/01/b09801e517bb55371ef5358205e831c0.jpg" width="5%"</p>
<h2 style="color:green;text-align:center;" >
What Is Global Family?</h2>
<p>We are living in an era of<strong>quantum change;<em> <strong> leaving behind old patters of being in institutions that no longer serve our needs or support our emerging consciousness.<p>
<p style="text-align:center;"> <img src="pix/sunset.jpg" alt="Sunset" width="5%"<br>A Beautiful Sunset</p> At this pivotal time inhumanity’s evolution.we need <font color=”green”>courage, commitment&</font> and a supportive community of like-hearted souls to guide the way in transforming society.</p>
</body>
</html>
Save and open the file. Your webpage should look like below:
A family that keeps together>
Old Couple
We are living in an era of quantum change—leaving behind old patterns of being and institutions that no longer serve our needs or support our emerging
A Beautiful Sunset
consciousness. At this pivotal time in humanity’s evolution, we need courage, commitment , and a supportive community of like-hearted souls to guide the way in transforming society.
We covered a lot of topics here. In the next section, we’ll learn about bullets. See you there.
If you look at the website we are trying to create, the next step is to create some bullets. Let’s do that. Open your file: “global family.html.”
Let’s first create another h2 heading and color the text green using Inline style just below </p> at the end of the paragraph we wrote in Section 1:
<h2 style="color:green;text-align:center;">Global Family Mission</h2>
<ul>
<li>All the World is a family</li>
<li>Charity begins at home</li>
<li>Family builds character</li>
</ul>
Save the page and open it. You’ll see the following:
Explanation
Let’s now create an ordered list (numbered bullets). The symbol for an ordered list is "ol" Let’s create another h2 heading named, “Global Family Unit.” Write the following after the closing tag </ul>:
<h2 style="color:green;text-align:center;">
Global Family Unit </h2>
<ol>
<li>Individual</li>
<li>Support Group</li>
<li>Symbiosis</li>
</ol>
Save the page and open it. You’ll see the following:
Aligning the list
The default alignment for a list is left. You may align your list in the center or right by writing the following Inline style.
<ul style="text-align:right;"> or <ul style="text-align:center;">
For "ol," write the following:
<ol style="text-align:right;"> or <ol style="text-align:center;">
Here is an example of how to align-center
<ul style="text-align:center;">
<li>All the World is a family</li>
<li>Charity begins at home</li>
<li>Family builds character</li>
</ul>
Let us go to Section 3 and create tables.
If you look at the website we are trying to create, You’ll find a video. We covered that in Lesson 2. So, we’ll learn to create a table that you see below that video.
Open your file: “global family.html”. Type in the following after the tag line, <p>Woman Clapping</p> (Woman Clapping video) then save your file and open the file in html.
<table border="1" cellspacing="0" align="center">
<tr> <th>Author</th> <th>Quote</th> lt;th>Image</th></tr>
<tr> <td>Desmond Tutu</td> <td>You don’t choose your family. They are God’s gift to you, as you are to them</td></tr><tr> <td>Richard Bach</td> <td>The bond that links your true family is not of blood, but of respect and joy in each other’s life</td></tr>
<tr> <td>Steve Jobs</td> <td>Sometimes life hits you in the head with a brick. Don’t lose faith</td></tr>
<tr> <td>Mark Twain</td> <td>Good friends, good books and a sleepy conscience: this is the ideal life</td></tr>
</table>
If you wrote everything correctly, this is what you’ll see.
Of course, you'll not see the fancy colors that I used in the table you just created. You'll learn to do that in CSS3 lessons.
Author | Quote | Image |
---|---|---|
Desmond Tutu | You don't choose your family. They are God's gift to you, as you are to them. | |
Richard Bach | The bond that links your true family is not one of blood, but of respect and joy in each other's life. | |
Steve Jobs | Sometimes life hits you in the head with a brick. Don't lose faith. | |
Mark Twain | Good friends, good books and a sleepy conscience: this is the ideal life. |
Let’s get familiar with the tags that we used here.
<table>></table> are the beginning and end of a table.
<th></th>> are the beginning and end of a table header cell. The headers in the example above are Author, Code and Image.
<tr></tr> are the beginning and end of a row. There are 4 rows in the above example not counting the header row.
<td></td> are the beginning and end of a table data cell.
Explanation
<table border="1" cellspacing="0" cellpadding="4" align="center" >
Try changing the values of pixels in the above example and have fun.
Creating table will need a practice of at least 4 hours in order to become totally comfortable. In the meantime, let us go to Section 4 and learn to create Link.
If you look at the website we are trying to create, You’ll find a video named, “Family of Chickens.” We covered that in Lesson 2. Next to that, you will see a link to Google.com. Let’s encode that link in our website. Write the following after the tagline, <p>Family of Chickens:
<a href="http://www.google.com">Go to Google
Now, you have a link to the Google website.
Explanation
By now, You have learned the most basic features of HTML5 to design a web page. In the next Lesson, we will discuss some lose ends that you should be aware of such as inserting Comments Divisions and Wrappers. So, let’s move on to Lesson 4.