External Style Sheets There are three ways to apply CSS to HTML: inline styles, embedded style sheets and external style sheets. In Lab 1, we used an embedded style sheet to style the index.html file. Your first job is to replace the embedded style sheet in index.html with an external style sheet. To do this you need to first create a file called style.css in Week_8_Lab/Styles. Move all the style rules from index.html to style.css.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

what I have so far


<!DOCTYPE html>
<html>
<head>
<meta charset=”utf-8”>
<title>Lab1</title>


<style>

body { background-color: #556271; margin: 0 10%; font-family: sans-serif; color: white;}


h1 {color: #FE6A67;text-align: center; font-weight: normal; text-transform: uppercase; border-bottom: 1px solid #D4DCCD; margin-top: 30px;}h2 {font-size: 1em;}


</style>

</head>

<body>

<h1><img>
<br><img src="21.png">

<p>Amet Justo Donec</p>

</h1>

<p>Cursus EgetPurus sit amet volutpat consequat mauris nunc congue nisi vitae. Suscipit tellus mauris a diam maecenas sed enim ut sem viverra aliquet eget sit.<p/>
<h2>Cursus Eget</h2>
<p>Purus sit amet volutpat consequat mauris nunc congue nisi vitae. Suscipit tellus mauris a diam maecenas sed enim ut sem viverra aliquet eget sit.<p/>

<h2>Diam</h2>
<p>Urna condimentum mattis pellentesque id nibh tortor. Id aliquet lectus proin nibh nisl condimentum id venenatis. A condimentum vitae sapien pellentesque habitant.<p/>

<h2>Aliquam Sem Fringilla</h2>
<p>Pellentesque, NecEst velit egestas dui id ornareEst ultricies integer quis auctor elit<p/>

</body>
</html>

**External Style Sheets**

There are three ways to apply CSS to HTML: inline styles, embedded style sheets, and external style sheets. In Lab 1, we used an embedded style sheet to style the index.html file.

Your first job is to replace the embedded style sheet in index.html with an external style sheet. To do this, you need to first create a file called style.css in Week_8_Lab/Styles. Move all the style rules from index.html to style.css.
Transcribed Image Text:**External Style Sheets** There are three ways to apply CSS to HTML: inline styles, embedded style sheets, and external style sheets. In Lab 1, we used an embedded style sheet to style the index.html file. Your first job is to replace the embedded style sheet in index.html with an external style sheet. To do this, you need to first create a file called style.css in Week_8_Lab/Styles. Move all the style rules from index.html to style.css.
Expert Solution
Step 1

Embedded stylesheet (Also, called internal CSS) is the kind of stylesheet or CSS style that is inside an HTML page and is scoped to that HTML page or file to which the styles are to be applied.

 

It is defined in between these two tags: <style>... </style>

 

The CSS given in the index.html page code in question is hence an embedded or internal CSS.

 

The question is asking to create an external stylesheet which means all the CSS styles that are in this index.html file have to be moved to a CSS file called style.css which will be called an external CSS file.

 

 

steps

Step by step

Solved in 3 steps with 6 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY