ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel
  • »
  • Technology»
  • Internet & the Web

My first webpage - designing your text using bold and italic

Updated on June 9, 2016

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.

Comments

    0 of 8192 characters used
    Post Comment

    • profile image

      Eklektos B 6 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!!!

    • profile image

      joe 6 years ago

      dude i need more

    • hotwebideas profile image

      Bruce Chamoff 7 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.

    • cym profile image
      Author

      cym 7 years ago from Europe

      You're welcome, Jill!

      I'm glad my hub has helped you.

      :-)

    • profile image

      Jill 7 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
      Author

      cym 7 years ago from Europe

      Hello Brian

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

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

      &lt;b&gt; is bold and &lt;i&gt; is italic. That makes sense and is easy to understand. After &lt;b&gt; and &lt;i&gt; I usually explain the &lt;a&gt; 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 '&lt;b&gt; and &lt;i&gt; 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.

    • profile image

      Brian Sulzen 7 years ago

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

    • profile image

      Brian Sulzen 7 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.

    • cym profile image
      Author

      cym 7 years ago from Europe

      You're welcome :-)

      And thank you very much for your comments!

    • profile image

      Full 7 years ago

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

    • prasetio30 profile image

      prasetio30 7 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

    • LillyGrillzit profile image

      Lori J Latimer 7 years ago from The River Valley, Arkansas

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

    working

    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, hubpages.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: "https://hubpages.com/privacy-policy#gdpr"

    Show Details
    Necessary
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
    Features
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Marketing
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Statistics
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)