SHARE
SPREAD
HELP

The Tradition of Sharing

Help your friends and juniors by posting answers to the questions that you know. Also post questions that are not available.


To start with, Sr2Jr’s first step is to reduce the expenses related to education. To achieve this goal Sr2Jr organized the textbook’s question and answers. Sr2Jr is community based and need your support to fill the question and answers. The question and answers posted will be available free of cost to all.

 

#
Authors:
Anne Boehm, Zak Ruvalcaba
Chapter:
How To Code, Test, And Validate A Web Page
Exercise:
Exercises
Question:3 | ISBN:9781890774837 | Edition: 3

Question

Exercise 2-3 Start a new web page

In (his e\ercise, you'll start HTML and CSS files from templates in this folder:

  • c:\htm15_css3_2\exercises\ch02

For Aptana users, this will be in the project named HTML5 Exercises.

Start your files from templates

1. Create a new HTML file named testpage.html from the template named template.html. If you're using Aptana, you can use the first procedure in figure 2-9. Otherwise, you can use the second procedure in this figure.

2. Create a new CSS file named testpage.css from the template named template. css. If you're using Aptana, you can use the first procedure in figure 2-11. Otherwise, you can use the second procedure in this figure. 
 

Add some content to the HTML file and test it

3. In the title element, change the content to "Test page".

4. In the link element, enter "testpage.css" for the value of the href attribute.

5. Add an h I element to the body of the HTML file that says: "This is a test page." Then, save the file, and test the page by running it in Chrome, Firefox, or IE.

6. This illustrates how fast you can get started with a new web page when you start the html and css files from templates. Now, if you want to add more elements to the HTML or more rules or rule sets to the CSS, give it a try.

7. When you're through experimenting, close the files in your editor. 
 

TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

Sorry the answer is not available at the moment…

If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.

Spread the 'tradition of sharing'.