| Warning: include(http://www.studio6000.com/tutorside.htm) [function.include]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/studio60/public_html/html/lesson6.php on line 17 Warning: include() [function.include]: Failed opening 'http://www.studio6000.com/tutorside.htm' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/studio60/public_html/html/lesson6.php on line 17 |
Formatting textFor the rest of the tutorial we will not be going over the page structure each lesson. From here on in all the code that we will be reviewing can be tested by simply copying and pasting within your body tags.There are several ways you can alter the text of your page. Using the same page you have created in the previous lesson, let's make the text "Hello World" bold. Go back to your source page. This is the notepad text file where all of your code is. If you have already closed this file there is another way to get to it. Simply, open your mypage.html file. Your web page will open up to your default web browser. Then go to View on the main menu and then click Source. This will open up your notepad file. Now, insert an opening bold tag, <b> before the text "Hello World" and a closing bold tag, </b> after it. Save your page in notepad by selecting File on the main menu and the click Save. Go back to Internet Explorer and refresh the page. There are several ways you can refresh the page. Here are some examples of how to.
Now your page should look like this.
Below are some other useful tags to alter your text.
You can also use multiple tags for the same text. For example, if you'd like to bold and underline the same text the code to use would be:
But don't forget! Always nest your tags. Meaning the tag that you opened last must be closed first. |