Prior KnowledgeLesson 0: HTMLLesson 1: HTML and CSS okay in this lesson imma teach you a couple of things. How to change the background of a page, and how to change fonts. there are several ways you can go about doing this:
BackgroundGo ahead and open up the L0.html file in context. and go to this line of code:
- Code:
-
<body>
if you want to change the background of your page entirely you can do it from this line of code by changing the code to:
- Code:
-
<body bgcolor="">
to change the background color to black, for example:
- Code:
-
<body bgcolor="black">
if you want to change it to blue:
- Code:
-
<body bgcolor="blue">
this is a simple way of changing the background color--however it is Deprecated. but i'll get into this later on.
Fontstart this one off just as the previous. only change the bgcolor to font.
the problem with doing this you cannot change the font class.
ex:
This is Arial Font this is Courier New fontyou could of course do it two ways. one of which is the
- Code:
-
[font]
tag.
but like the previous tag. it is deprecated.
CSSa simple work around for this is to script in CSS.
- Code:
-
</head> <body>
between these two lines of code you will have to write in:
- Code:
-
</head>
<style type="text/css">
body{background:#000; font-family:"Times New Roman", Times, serif}
</style>
<body>