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”.
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
<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
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?
Chapter 4 Solutions
Basics of Web Design: Html5 & Css3
- 1. Write HTML code to develop a web page having the background in red and title "My First Page" in any other color.arrow_forwardWhat is the maximum number of distinct page layouts that can be supported by CSS?arrow_forwardCreate a CSS stylesheet such that the provided HTML (autoloan.html) looks like the following webpage.arrow_forward
- Write an HTML document representing the following web page including title and (at least 3) keywords.The 5 rectangles in the Web page are provided as images (1.png, 2.png,3.png, 4.png, and 5.png), you have to organize these images using a table as shown below.arrow_forwardThe following HTML is loaded into the browser: a) When the user clicks on the blue region around the button, what will happen?b) When the user clicks “Click me!”, what will happen?arrow_forwardWrite 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; }arrow_forward
- a. How to add a dotted blue border around all the links on a HTML page only when the mouse is over them? b. How is data from a HTML form is sent to a URL after it is submitted?arrow_forwardWhat will be generated by the following CSS and HTML code? A) Choice A B) Choice B C) Choice C D) Choice Darrow_forwardThe following picture shows a sample webpage, you are required to write the HTML and CSS code to produce this result in the browser.arrow_forward
- Write a program in html Create a CSS style for an H3 element, where: - colour is blue (in RGB format) - text aligned to left - text decoration red wavy underline - text transformed to uppercasearrow_forward2.HTML is used to develop a static webpage. It has structure and presentation. Give two examples for HTML structure and HTML presentation. HTML structure: HTML presentation:arrow_forwardI want to create an HTML page with a JavaScript file that utilizes jQuery for 3 different events, for 3 different effectsarrow_forward
- Principles of Information Systems (MindTap Course...Computer ScienceISBN:9781285867168Author:Ralph Stair, George ReynoldsPublisher:Cengage LearningNew Perspectives on HTML5, CSS3, and JavaScriptComputer ScienceISBN:9781305503922Author:Patrick M. CareyPublisher:Cengage Learning