Sunday, April 27, 2014

HTML Lessons part 7

In this lesson I am going to teach you 4 different tags <b> and <i> and <u> and <strike>.  <b> makes text bold.  <i> makes text italic.  <u> makes text underlined.  <strike> makes text have a strike through it.  You need to insert these tags in a paragraph like this.
<p>Hi this text is <b>bold</b>!</p>
If you want you can add multiple of these tags.
<p><b><i>Hi</b></i> your name is <strike>Bob</strike> <u>John</u></p>
You can also add styles to the paragraph and tags like this.
<p style="color: red">Hi <b style="color: blue">Coder</b></p>
Here is everything we learned

<!DOCTYPE html>
<html>
<head>
<title>
Bold, Italic, Underlined, and Strikethrough
</title>
</head>
<body>
<p>Here is <b><i>bold and italic</i></b> text</p>
</body>
</html>

No comments:

Post a Comment