Basics of Web Design: Html5 & Css3
Basics of Web Design: Html5 & Css3
4th Edition
ISBN: 9780134444338
Author: Terry Felke-Morris
Publisher: PEARSON
Expert Solution & Answer
Book Icon
Chapter 4, Problem 1RQ
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>

Output:

Screenshot of the output

Basics of Web Design: Html5 & Css3, Chapter 4, Problem 1RQ

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
Using HTML and CSS programming languages, create your personal web page which is composed by two pages (Curriculum Vitae and Cover letter) with the following content: The curriculum vitae: - The web page title is your name-cv (example: Abcd-CV) - The web page (body) color code is #A9F5F2 - Heads - Paragraph (the style of the text is justifying) - Two different colors of the text - Image (choose image from the web) - Ordered list - Unordered list -Hyperlink that connect you to the second page (cover letter) The cover letter: - The web page title is your name-cover letter (example: Abcd-cover letter) - Head - Paragraph (the style of the text is justifying) - Two different colors of the text - The web page (body) color code is #F5F6CE - Hyperlink that connect you to the wikipedia page of your native cityRequired to answer. Multi Line Text.   please use any data or color, no problem
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.
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