Basics of Web Design: Html5 & Css3
Basics of Web Design: Html5 & Css3
4th Edition
ISBN: 9780134444338
Author: Terry Felke-Morris
Publisher: PEARSON
bartleby

Concept explainers

Question
Book Icon
Chapter 4, Problem 1HOE
Program Plan Intro

External Style Sheets:

  • • External Style Sheets are used to change the entire look of the website by changing just one file.
  • • This style sheet is a separate file linked to an HTML web page and is saved with “.css” extension.
  • • External Style Sheets can be used to declare all the styles that are used on the website.
  • • It should not contain any HTML tags.

Expert Solution
Check Mark

Explanation of Solution

(a)

Filename: format1.css

Program:

<!--HTML Tag-->

<html>

<!--Head Tag-->

<head>

<!--Style Tag-->

<style>

<!--Alignment for body tag-->

body

{

background-color: #FFFFFF;

color: #000099;

font-family: Arial, Helvetica, sans-serif;

}

<!--Alignment for hyperlink tag-->

a

{

background-color: #CCCCCC;

}

<!--Alignment for header tag-->

h1

{

font-family: "Times New Roman", serif;

color: #FF0000;

}

  <!--Close Tag-->

</style>

<!--Close Tag-->

</head>

<!--Body Tag-->

<body>

  <!--Heading Tag-->

  <h1>Practice with External Style Sheet</h1>

  <!--Paragraph Tag-->

<p>This is an example of CSS code for an external style sheet that configures the text color to blue,backgorund color to be white and in the font family: Arial, Helvetica, or sans-serif.</p>

<!--Hyperlink Tag-->

<a href=google.com>Google</a>

<a href=yahoo.com>Yahoo</a>

<a href=notdoppler.com>Games</a>

<!--Close Tag-->

</body>

<!--Close Tag-->

</html>

Explanation:

The above program shows an external style sheet which include white background, blue color text and font used is Arial. The header portion <h1> is using the Times New Roman font with red text color and hyperlinks have a gray background.

Sample Output

Output:

Screenshot of the webpage

Basics of Web Design: Html5 & Css3, Chapter 4, Problem 1HOE , additional homework tip  1

Program Plan Intro

External Style Sheets:

  • • External Style Sheets are used to change the entire look of the website by changing just one file.
  • • This style sheet is a separate file linked to an HTML web page and is saved with “.css” extension.
  • • External Style Sheets can be used to declare all the styles that are used on the website.
  • • It should not contain any HTML tags.

Expert Solution
Check Mark

Explanation of Solution

(b)

Filename: format2.css

Program:

<!--HTML Tag-->

<html>

<!--Head Tag-->

<head>

<!--Style Tag-->

<style>

<!--Alignment for body tag-->

body

{

background-color: #FFFF66;

color: #00FF00;

}

<!--Alignment for hyperlink tag-->

a

{

background-color:#FFFFFF;

}

<!--Alignment for header tag-->

h1

{

font-family: "Times New Roman",serif;

background-color: #FFFFFF;

color: #00FF00;

}

<!--Close tag-->

</style>

<!--Close tag-->

</head>

<!--Body tag-->

<body>

  <!--Heading tag-->

<h1>Practice with External Style Sheet</h1>

  <!--Paragraph tag-->

<p>This is an example of CSS code for an external style sheet that configures the text color to green,backgorund color to be yellow and in the font family: Arial, Helvetica, or sans-serif.</p>

<!--Hyperlink tag-->

<a href=”google.com”>Google</a>

<a href=”yahoo.com”>Yahoo</a>

<a href=”notdoppler.com>Games</a>

<!--Close tag-->

</body>

<!--Close tag-->

</html>

Explanation:

The above program shows an external style sheet, which includes yellow background and green text. The header portion <h1> uses Times New Roman font with white background and green text.

Sample Output

Output:

Screenshot of the webpage

Basics of Web Design: Html5 & Css3, Chapter 4, Problem 1HOE , additional homework tip  2

Program Plan Intro

External Style Sheets:

  • • External Style Sheets are used to change the entire look of the website by changing just one file.
  • • This style sheet is a separate file linked to an HTML web page and is saved with “.css” extension.
  • • External Style Sheets can be used to declare all the styles that are used on the website.
  • • It should not contain any HTML tags.

Expert Solution
Check Mark

Explanation of Solution

(c)

Filename: moviecss1.html

Program:

<!--HTML Tag-->

<html lang="en">

<!--Head Tag-->

<head>

<!--Title Tag-->

<title>External Style Sheet</title>

  <link rel="stylesheet" href="format1.css">

<!--Close Tag-->

</head>

<!--Body Tag-->

<body>

<!--Header Tag-->

<header><h1>Harry Potter</h1></header>

<!--Main Tag-->

<main>

<p>Harry Potter is a series of fantasy novels written by British author J. K. Rowling. The novels chronicle the life of a young wizard, Harry Potter, and his friends Hermione Granger and Ron Weasley, all of whom are students at Hogwarts School of Witchcraft and Wizardry. The main story arc concerns Harry's struggle against Lord Voldemort, a dark wizard who intends to become immortal, overthrow the wizard governing body known as the Ministry of Magic, and subjugate all wizards and muggles (non-magical people). </p>

<!--Unordered List Tag-->

<ul>

<li>Harry Potter</li>

<li> Albus Dumbledore</li>

<li>Voldemort</li>

</ul>

  <!--Division Tag-->

<div><a href=“ http://www.movie- page.com/1999/Matrix.htm”>Movie-Page.com</a></div>

<!--Close Tag-->

</main>

<!--Footer Tag-->

<footer><a href="mailto:webdevfoundations@hotmail.com">webdevfoundations@hotmail.com</a></footer>

<!--Close Tag-->

</body>

<!--Close Tag-->

</html>

Explanation:

The above program shows the creation of a web page titled “External Style Sheets”. It displays the movie name “Harry potter” inside the header tag <h1> and a description about the movie within the paragraph tag <p> </p>. The page also contains a hyperlink to the website about the movie.

Sample Output

Output:

Screenshot of the webpage

Basics of Web Design: Html5 & Css3, Chapter 4, Problem 1HOE , additional homework tip  3

Program Plan Intro

External Style Sheets:

  • • External Style Sheets are used to change the entire look of the website by changing just one file.
  • • This style sheet is a separate file linked to an HTML web page and is saved with “.css” extension.
  • • External Style Sheets can be used to declare all the styles that are used on the website.
  • • It should not contain any HTML tags.

Expert Solution
Check Mark

Explanation of Solution

Filename – moviecss2.html

Program:

<!--HTML Tag-->

<html lang="en">

<!--Head Tag-->

<head>

<!--Title Tag-->

<title>External Style Sheet</title>

  <link rel="stylesheet" href="format2.css">

<!--Close Tag-->

</head>

<!--Body Tag-->

<body>

<!--Header Tag-->

<header><h1>Harry Potter</h1></header>

<!--Main Tag-->

<main>

<p>Harry Potter is a series of fantasy novels written by British author J. K. Rowling. The novels chronicle the life of a young wizard, Harry Potter, and his friends Hermione Granger and Ron Weasley, all of whom are students at Hogwarts School of Witchcraft and Wizardry. The main story arc concerns Harry's struggle against Lord Voldemort, a dark wizard who intends to become immortal, overthrow the wizard governing body known as the Ministry of Magic, and subjugate all wizards and muggles (non-magical people). </p>

<!--Unordered List Tag-->

<ul>

<li>Harry Potter</li>

<li> Albus Dumbledore</li>

<li>Voldemort</li>

</ul>

  <!--Division Tag-->

<div><a href=“ http://www.movie- page.com/1999/Matrix.htm”>Movie-Page.com</a></div>

<!--Close Tag-->

</main>

<!--Footer Tag-->

<footer><a href="mailto:webdevfoundations@hotmail.com">webdevfoundations@hotmail.com</a></footer>

<!--Close Tag-->

</body>

<!--Close Tag-->

</html>

Sample Output

Output:

Screenshot of the webpage

Basics of Web Design: Html5 & Css3, Chapter 4, Problem 1HOE , additional homework tip  4

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
Whentheuserenters!!,themostrecentcommandinthehistoryisexecuted.In the example above, if the user entered the command: Osh> !! The ‘ls -l’ command should be executed and echoed on user’s screen. The command should also be placed in the history buffer as the next command. Whentheuserentersasingle!followedbyanintegerN,theNthcommandin the history is executed. In the example above, if the user entered the command: Osh> ! 3 The ‘ps’ command should be executed and echoed on the user’s screen. The command should also be placed in the history buffer as the next command. Error handling: The program should also manage basic error handling. For example, if there are no commands in the history, entering !! should result in a message “No commands in history.” Also, if there is no command corresponding to the number entered with the single !, the program should output "No such command in history."
Activity No. Activity Time (weeks) Immediate Predecessors 1 Requirements collection 3 2 Requirements structuring 4 1 3 Process analysis 3 2 4 Data analysis 3 2 5 Logical design 50 3,4 6 Physical design 5 5 7 Implementation 6 6 c. Using the information from part b, prepare a network diagram. Identify the critical path.
2. UNIX Shell and History Feature [20 points] This question consists of designing a C program to serve as a shell interface that accepts user commands and then executes each command in a separate process. A shell interface gives the user a prompt, after which the next command is entered. The example below illustrates the prompt osh> and the user's next command: cat prog.c. The UNIX/Linux cat command displays the contents of the file prog.c on the terminal using the UNIX/Linux cat command and your program needs to do the same. osh> cat prog.c The above can be achieved by running your shell interface as a parent process. Every time a command is entered, you create a child process by using fork(), which then executes the user's command using one of the system calls in the exec() family (as described in Chapter 3). A C program that provides the general operations of a command-line shell can be seen below. #include #include #define MAX LINE 80 /* The maximum length command */ { int…
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Text book image
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Text book image
CMPTR
Computer Science
ISBN:9781337681872
Author:PINARD
Publisher:Cengage