Page 39 - DCAP202_Fundamentals of Web Programming
P. 39
Fundamentals of Web Programming
Notes <h3>Level 3 Headline</h3>
<h4>Level 4 Headline</h4>
<h5>Level 5 Headline</h5>
<h6>Level 6 Headline</h6>
Self Assessment
Fill in the blanks:
9. ........................... tag is used to create a horizontal line on your page you use the empty tag.
10. In HTML, bold copy is created by using the ........................... tag.
3.4 Text Styles
The following HTML tags are used to format the appearance of the text on your web page. This
can jazz up the look of the web page, however, too much variety in the text style can also look
displeasing.
3.4.1 Bold
Refer 3.1.5
3.4.2 Italics
Refer 3.1.5
3.4.3 Underline <u> </u>
Again, the same as underline in a word processor.
Did u know? html links are already underlined and don’t need the extra tag.
3.4.4 Centering (Text, Images, etc.) <center> </center>
A useful tag, as it says, it makes everything in between the tags centred (in the middle of the
page).
3.4.5 Spacing
Using is helpful in situations where you just need one or two spaces in between characters
or words for stylistic or aesthetic effect.
Example: If you wanted a particular part of your text to read with two spaces after a
period - as in “Hello. How are you?” – you’d have to code every extra period in as follows:
“Hello. How are you?”
3.4.6 Line Breaks <BR>
Refer 3.3.1
32 LOVELY PROFESSIONAL UNIVERSITY