My first webpage - designing your text using bold and italic

Designing the text using bold and italic

When you have entered a few lines of text, you are ready to design the text a little. At this moment the only design we will do is to make some of the words bold, some words italic and some words both bold and italic.

The HTML command for bold

To make a word in your text appear bold, you use the command 'b'.

b comes from bold.

The command is placed between the signs < and >, so that it becomes an HTML-command, like this: <b>

HTML commands always come in pairs. There is always an opening command and a closing command. For b these commands look like this:

<b> </b>

These commands are placed around the word or the words that you want to make bold. For example like this:

Welcome to my <b>first</b> webpage!

In this example the word 'first' will be shown in bold.

<b> means: bold starts here. Everything after this command will be shown in bold.
</b> means: bold ends here. Everything until this command will be bold.
Everything after this command will not be bold anymore.

Place the commands before and after the text that should appear bold.
Place the commands before and after the text that should appear bold.

Save and view the page

After you have entered the commands to make one or more words bold, you must save the page again. Save the page with the same nameĀ (choose 'File' -> 'Save' in the editor or press 'ctrl-s'). After that, you can open the page again in the browser to see the new version of the page.

The word 'first' on the first line is now displayed in bold characters.

Open the page again in the browser to see the new version.
Open the page again in the browser to see the new version.

The HTML command for italic

To make a word in your text appear italic, (cursive), you use the command 'i'.

i comes from italic. Italic means cursive text.

The command is placed between the signs < and >, so that it becomes an HTML-command, the same like the command for bold. The command for italic becomes: <i>

Remember, HTML commands always come in pairs. There is always an opening command and a closing command. For i these commands look like this:

<i> </i>

The commands are placed around the word or the words that you want to make italic (cursive). For example like this:

I am learning how to <i>add a text</i> to my page...

In this example the words 'add a text' will be shown in italic (cursive).

<i> means: italic starts here. Everything after this command will be shown in italic.
</i> means: italic ends here. Everything until this command will be italic.
Everything after this command will not be italic anymore.

Place the commands around the word or words that should appear cursive.
Place the commands around the word or words that should appear cursive.

Save and view the page

After you have entered the commands to make one or more words italic, you must save the page again. Save the page with the same name (choose 'File' -> 'Save' in the editor or press 'ctrl-s'). After that, you will need to open the page again by hand in the browser to see the new version of the page.

The words 'add a text' are now displayed in italic characters.

The words that are marked with the comments for italic will be shown in italic.
The words that are marked with the comments for italic will be shown in italic.

Combining bold and italic

You can also combine the commands for bold and italic. In that way, you can make a word appear both bold and italic. For example like this:

This is the <b><i>very first page</i></b> I create with HTML.

When you are combining the two commands, make sure that you are putting one command'inside' the other (in this case <i></i> is placed inside <b> </b>). Or 'around' the other (in this example <b> </b> is place around <i></i>).

Do not put them like this: <b><i>my text</b></i> Do you see the difference? It is just a small detail. If you put it like this, it will all work perfectly well, but it is not correct. This is not so important for now, but it is good if you notice the difference already.

Combine the comments for bold and italic to make words appear both bold and italic.
Combine the comments for bold and italic to make words appear both bold and italic.

Viewing your page

After you have saved the file again in the editor, you can view your page again. You will need to open the page again in the browser. It will not show the changes that you made automatically. You need to open the page again by hand.

And this is what the text in both bold and italic will look like in the browser.
And this is what the text in both bold and italic will look like in the browser.

So, this is it?

I agree that the page doesn't look very exciting yet until now. But it is very important that you understand all the steps that I have explained so far. You really need to feel comfortable with just those basic things. All other things in HTML are based on the same simple concept as the <b> and <i> comment. If you understand the use of these two commands, you will also understand the other HTML commands.

There are of course still more complicated things to explain, but the basic concept of HTML really is to put commands (tags) around words to 'mark' these words how they should be displayed. That's why it is called HTML: Hyper Text Markup Language.

Creating a link

In the next step of the tutorial I will show you how to create a link to another page. The hub with the next step will hopefully be ready soon. Here you can become a follower, so you will be the first to know when the next part of the tutorial is online.

More by this Author


Comments 12 comments

LillyGrillzit profile image

LillyGrillzit 6 years ago from The River Valley, Arkansas

Thank you for breaking this down for me. It has always seemed like a hieroglyphic mystery!


prasetio30 profile image

prasetio30 6 years ago from malang-indonesia

Good information from you. I learn much from this hub. I get new knowledge here. Thumbs up for you. I vote this Up.

Prasetio


Full 6 years ago

Thanks a million for your tutorial, i never knew how to do this and now i can :-)


cym profile image

cym 6 years ago from Europe Author

You're welcome :-)

And thank you very much for your comments!


Brian Sulzen 5 years ago

and have been deprecated since God was a boy. Use and . May seem trivial to noobs, but it's important to standards compliant markup.


Brian Sulzen 5 years ago

Comment ate my left and right arrows. b and i are deprecated. Use strong and em.


cym profile image

cym 5 years ago from Europe Author

Hello Brian

<b> and <i> are still used as well as <strong> and <em>. All of these commands are correct. Nowadays I would rather use CSS anyway instead of <b> or <i> or <strong> or <em>.

However, looking at it from a teaching perspective, I think it is important to start with <b> and <i>. For many (most) participants of my workshops it will be confusing to start with <strong> or <em>. <b> and <i> are just perfect to explain the basics of HTML!

<b> is bold and <i> is italic. That makes sense and is easy to understand. After <b> and <i> I usually explain the <a> command, which is then suddenly also easy to understand.

When I teach HTML it is my goal to explain the basics. Using a sentence like '<b> and <i> are depricated' easily scares off the participants. This should be avoided at all times. Also using the word 'noob' I think should be avoided. The participants in my workshops are often very well educated in their areas, just have never worked with HTML before.


Jill 5 years ago

Thank you very much for this. My boyfriend took a class for coding and was looking to get back into it, with me tagging along. Now I've got a good start thanks to you.


cym profile image

cym 5 years ago from Europe Author

You're welcome, Jill!

I'm glad my hub has helped you.

:-)


hotwebideas profile image

hotwebideas 5 years ago from New York

Great hub for the noobs, Cym. I have a few hubs on HTML 5 if you'd like to refer to them.


joe 4 years ago

dude i need more


Eklektos B 4 years ago

Cym - I just found your hub and am desperate to learn more! I'm trying to make a webpage for our business in Elounda Crete but I'm a TOTAL muppet...HELP!!!

    Sign in or sign up and post using a HubPages Network account.

    0 of 8192 characters used
    Post Comment

    No HTML is allowed in comments, but URLs will be hyperlinked. Comments are not for promoting your articles or other sites.


    Click to Rate This Article
    working