Web Development and Design Foundations with HTML5 (8th Edition)
Web Development and Design Foundations with HTML5 (8th Edition)
8th Edition
ISBN: 9780134322759
Author: Terry Felke-Morris
Publisher: PEARSON
Expert Solution & Answer
Book Icon
Chapter 3, Problem 1MC
Program Description Answer

When Cascading Style Sheet (CSS) is coded in the body of the Web page as an attribute of an HTML tag is referred as “Inline”.

Hence, the correct answer is option “B”.

Expert Solution & Answer
Check Mark

Explanation of Solution

Cascading Style Sheets (CSS):

Cascading Style Sheet is a computer language that is used to present the document written in a mark-up language like HTML, MXML, and AIML.

Inline:

  • Inline is one of the most common ways to add CSS to HTML elements.
  • Inline CSS is used to provide a unique style to a single HTML element.
  • It uses the style attribute of a HTML element.

Example program of Inline CSS:

<html>

<body>

<h1 style="color:red;margin-right:25px;">Inline CSS</h1>

<p>This is an example program of Inline CSS.</p>

</body>

</html>

Sample Output:

Web Development and Design Foundations with HTML5 (8th Edition), Chapter 3, Problem 1MC

The above HTML code shows how to change the colour of the heading “Inline CSS” to red and to place the heading 25pixels from the right side. A paragraph “This is an example program of inline CSS” is written in the default format.

Explanation for incorrect options:

Embedded CSS:

In “Embedded CSS”, the code will be present within the head section of the HTML code of a Webpage.

Hence, the option “A” is wrong.

External CSS:

“External Style Sheet” is used to change the entire look of the website by changing just one file.

Hence, the option “C” is wrong.

Imported CSS:

“Imported Style Sheet” is used to import or store the style sheet somewhere on the site as a separate file.

Hence, the option “D” is wrong.

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
1. Write HTML code to develop a web page having the background in red and title "My First Page" in any other color.
Create a CSS stylesheet such that the provided HTML (autoloan.html) looks like the following webpage.
Write the code necesary in javascript to create a webpage that contains a contact form like the one in the attatched picture. To create and style this form, copy the following HTML and CSS code exactly as follows: HTML: <form><label for="myName">Name:</label> <input type="text" name="myName" id="myName"> <label for="myEmail">E-mail:</label> <input type="text" name="myEmail" id="myEmail"› <label for="myComments">Comments:</label> <textarea name="myComments" id="myComments" rows="2" cols="20"></textarea> <input id="mySubmit" type="submit" value="Submit"› </form> CSS: form { background-color:#eaeaea; font-family: Arial, sans-serif; padding: lOpx; } label { float: left;width: 100px;clear: left; text-align: right; padding-right: lOpx;margin-top: lOpx; }input, textarea { margin-top: lOpx;display: block; }#mySubmit { margin-left: 110px; }
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Principles of Information Systems (MindTap Course...
Computer Science
ISBN:9781285867168
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning