Web Development and Design Foundations with HTML5 (8th Edition)
Web Development and Design Foundations with HTML5 (8th Edition)
8th Edition
ISBN: 9780134323534
Author: 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
Which of the following is not correct about DHTML?   a. It allows the easy control of every element of the web page.       b. It is a distinct language.     c. It is a combination of HTML, JavaScript, CSS and DOM.     d. It makes a web page more interactive and attractive.
What will be generated by the following CSS and HTML code?  A) Choice A B) Choice B C) Choice C D) Choice D
In which scenario would it be acceptable to use GET, instead of POST, for an HTML form?: * A) You are submitting your favorite restaurant’s name, address, and phone number. B) You are submitting very large amounts of information. C) You are submitting a user name and password. D) You don’t want the information displayed in the address field of the action page.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning
Text book image
Fundamentals of Information Systems
Computer Science
ISBN:9781305082168
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning
Text book image
Principles of Information Systems (MindTap Course...
Computer Science
ISBN:9781285867168
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning