Module 6 – Introduction to PHP and CSS

Web Programming Section

This week the first assignment was to create a PHP page and upload it to my web space. The URL of the page is:

http://jered.0fees.us/module6/index.php

Next we were presented with a list of questions and directed to choose the correct answers. My questions and answers are:

Question # 1
A. PHP server scripts are surrounded by delimiters, which one?
A3. <?php…?>

Question # 2
B. How do you write “Hello World” in PHP
B1. echo “Hello World”;

Question # 3
C. All variables in PHP start with which symbol?
C2. $

Question # 4
D. What is the correct way to end a PHP statement?
D1. ;

Web Design Section

This week we were asked to create a CSS style sheet. I created mine at the following URL:

http://jered.0fees.us/module6/module6style.css

Cascading style sheets are useful in a number of ways. For one, it separates style from content – the main section of a web page can consist primarily of content to be presented to the user, making it easier to read in HTML form. Using CSS also provides stylistic consistency, as several pages can import style information from a single CSS file. On top of that, website design changes become easier to make because you can make a style change in a single file, then every HTML page on the site that uses that stylesheet will automatically use the new style. Pages styled with CSS will usually load faster than pages formatted with frames and tables. And because CSS can be easily overridden by a web browser, using CSS aid accessibility by allowing users to use larger font sizes or more dyslexia-friendly fonts.

The following are my questions and answers for the web design part of the week’s assignment:

Question # 1
A. What is the correct CSS syntax for making all the elements bold?
A2. span {font-weight:bold}

Question # 2
B. What property is used to change the text color of an element?
B3. color:

Question # 3
C. The # symbol specifies that the selector is?
C4. id

This entry was posted in Web Design Technologies. Bookmark the permalink.

Comments are closed.