HTML5, CSS3, and JavaScript Fourth Edition

(Ben Green) #1

CHAPTER 9. CSS: THE STYLE SHEET 96


ground. Then the only thing visible is the shadow.


You can also do this with theopacityattribute.


Google search “css text effects” for more ideas.


9.10 CSS Comments


CSS is a whole different language than HTML, and it has its own way of
identifying comments. Comments in the style sheet are surrounded by/
at the front, and
/at the end.


Exam Question 170(p.346):What marks the start of a comment in CSS?
Required Answer:/*


Exam Question 171(p.346):What marks the end of a comment in CSS?
Required Answer:*/


Exam Question 172(p.346): In CSS can comments be nested?
Required Answer:no


9.11 Review of Previous Chapters


Thetag starts a section ofboldtext, and thetag identifies the
end of that section.


Here is some bold text.


Bold textuses a font that is thicker and heavier and darker than normal.
It is said to have more weight than normal text.


Strong textis (by default) just bold text. Bold is presentational markup.
Strong is semantic markup.


Exam Question 173(p.346): In HTML thetag usually does
the same as what other tag?
Required Answer:


Here is some italic text.


Italic textuses a font that is slanted to make it look special.


This is emphasized text.


Emphasizedtext is similar to italicized text, butemtries to indicate your