HTML Tutorial - Indents and Links
(Page 4 of 12 )
Indenting Text
The <BLOCKQUOTE> tag double indents a block of text from both margins automatically from left to right. Try the following example:
Listing 8
<BLOCKQUOTE>
You can use Sound Recorder to record, play, and edit sound files. To use Sound Recorder, you must have a sound card and speakers installed on your computer. If you want to record live sound, you also need a microphone.
</BLOCKQUOTE>
Creating Links
A website is not a single page. It consists of several pages connected together. For example, when you click a text link named "About Us", your browser automatically takes you to that web page. How is this magic occurring? It is through a concept of Hyperlinks.
You can create Hyperlinks using the tag <a>. It should be closed using the tag </a> and it stands for anchor. The following code takes you to Learnxpress.com, when you click the text “Learn Now”.
Listing 9
<A href = “http://www.microsoft.com”>Microsoft</A>
href is an attribute used to specify the link and it stands for Hyper Text Reference. Other attributes include an optional target, which denotes how to open the link. The value applied for this attribute is _blank. For example, the following code opens microsoft.com’s site in a new browser window when a user click the text.
Listing 10
<A href = http://www.microsoft.com target = “_blank”>
Microsoft </A>
Next: Working with Images >>
More HTML Articles
More By Anand Narayanaswamy
|
| · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | | |
|