Mass Media Content and Design
Mass Media Content and Design
Design
Content
Presentation of Content
Logo HeadLab example
(Logo.html) (Header.html)
Navigation Content
(Nav.html) (content.html)
Content is created:
MS Office
CMS
Shared
Presentation of content
CSS
CSS
Separates content from presentation
//---This works fine and there is nothing wrong with it per se,
except that now if you wanted to, say, change all your text
that you initially made bold to underlined, you would have to
go to every spot in every page and change the tag. --//
Another disadvantage can be found in this example: say you wanted to
make the text bold, make the font style Verdana and change its color
to red, you would need a lot of code wrapped around the text:
<style type="text/css">
<!--
.myNewStyle { font-family: Verdana, Arial, Helvetica,
sans-serif;
font-weight: bold;
color: #FF0000;
}--></style>
But for websites with large number of pages:
AND
When you want to apply a style across pages:
The above line of code links your external style sheet called
myFirstStyleSheet.css to the HTML document. You place this
code in between the <head> </head> tags in your web page.
.my2ndNewStyle {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
color: #FF0000;
}
.my3rdNewStyle {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 12pt;
color: #FF0000;
<p class="myNewStyle">My CSS styled text</p>
or
<h2 class="my3rdNewStyle">My CSS styled text</h2>
Another way to apply CSS is to globally redefine an HTML tag to look a certain
way:
Precedence