HTML Lesson 5

5
HTML

Transcript of HTML Lesson 5

Page 1: HTML Lesson 5

HTML

Page 2: HTML Lesson 5

What You’ll Learn…

• Pre-formatted text

• Combining tags

• Special Characters

Page 3: HTML Lesson 5

Pre-formatted text

• <pre> </pre>

• instructs your web browser to display the text exactly as typed in the HTML document, including spaces, tabs, and carriage returns

• Example<pre>

Teacher Classroom

Hubbard 309

Sires 315

</pre>

Page 4: HTML Lesson 5

How to combine tags

• Let’s make something bold AND italic

– <strong>

<em> I’m bold and italic </em>

</strong>

• Notice the <strong> tags are on the outside and

the <em> tags are on the inside

• Maintain the order (what’s starts first finished

last)

• Like a sandwich of tags!

Page 5: HTML Lesson 5

Special Characters

• Makes a special character show up web page– Accent mark

– Less than sign

– Copyright sign

• Examples– &lt; is used for <

– &gt; is used for >

– &amp; is used for &

– &nbsp; is used for a space

– &copy; is used for a ©