Monday, 19 October 2015

Weekly blog entries no. 4, Chapter 4, 5 and 6


Check point 4.1

1. Is it reasonable to try to code a web page that looks exactly the same on every browser and every platform? Explain your answer. 

It is reasonable to code a web page to code a web page that looks exactly the same on every browser and every platform to make it easier.

 

2. Describe what is incorrect with the following CSS code, which causes a web page containing it not to display a border when rendered in a browser: h2 { background-color: #ff0000 border-top: thin solid #000000 }  
The CSS code above is incorrect because it should have CSS padding.


3. True or False: CSS can be used to configure visual elements such as rectangular shapes and lines on web pages.

True



Checkpoint 4.2


1. Describe the CSS to configure a graphic named circle.jpg to display once in the background of all <h1> elements. Code the CSS. 

h1 {background-image: url (circle.jpg);
          background-repeat: no repeat;
         }

 


2. Describe the CSS that configures a file named bg.gif to repeat vertically down the background of a web page. Code the CSS.

body {background-image: url (bg.gif);
              background-repeat: repeat-y;
              }



3. Explain how the browser will render the web page if you use CSS to configure both a background image and a background color.

The browser will display background color. Then, the browser will render the background image and repeat the image as specified. The background color will appear in areas not covered by the background image.

1 comment:

  1. Most of the blogs pretend themselves as most usable and updated blogs with new information but sometime truth might different. I want to share some facts related to this subject which will help people to enhance their skills.
    เขียนคอนเทนท์

    ReplyDelete