Tuesday, January 6, 2015

CSS

CSS

February 2014. I started my job as a programming tutor in the college I was attending. The pay was not much but it was better than minimum wage.

I tutor all programming and web development related classes.

A student enrolled in her first programming class wanted to know everything that is going on in a program from top to bottom.  It was a C++ program, so, of course, it had the #include directive on top of it.  A C++ program can run without any #include directive, but you cannot have any input and output, among other things.

The best way to learn programming is through a good book or a good teacher. But a good book and a good teacher are both hard to find. There are some book authors who are effective in communicating programming concepts, however. The two authors I can recommend are Malik and Liang.

About this time also, I had intended to learn HTML and CSS, because there were a lot of online job postings that required those skills.

Here is an example of coding CSS. A CSS code is applied to web content by displaying them according to the CSS rules written in the code.

<!DOCTYPE html>
<html>
<head>
<style>
h2 {color: #ff00ff;}
p  {color: #00ff00;
    font-weight: bold;
    font-family: arial;}
</style>
</head>
<body>
<p>GREEN COLOR</p>
<h2>PURPLE COLOR</h2>
<p>GREEN COLOR</p>
</body>
</html>

CYK:
What is the hexadecimal code for the color black?
In p {color: #0000ff;}, what is the CSS terminology for the p element?
What starts and ends a CSS rule?

Happy Three Kings Day!

John Sindayen

No comments:

Post a Comment