73.7k views
3 votes
Embedded style sheets are created by web page authors and consist of styles that are inserted directly within the body element of a Hypertext Markup Language (HTML) document.​A. True

B. False

User Jnorris
by
5.8k points

1 Answer

6 votes

Answer:

B. False

Step-by-step explanation:

There are three ways of styling a web-page namely:-

Inline Style Sheets

Internal/Embedded Style Sheets

External Style Sheets.

In Inline Style sheet, the style sheet information is applied directly to a an HTML document.

e.g <p> This is an inline styling </p>

In Internal style sheet, the style sheet information is embedded within <style></style> tags in the head of your document

e.g

<style>

p {

font-family: arial, serif;

font-size: 50%;

}

hr {

color: blue;

height: 1px;

}

</style>

In External style sheet, the style sheet information is written in a file where you can declare all the styles that you want to use on your website. You then link to the external style sheet using <link rel="stylesheet" href="styles.css">

e.g

1. Create a style sheet

body {

background-color: darkslategrey;

color: azure;

font-size: 1.1em;

}

h1 {

color: coral;

}

#intro {

font-size: 1.3em;

}

.colorful {

color: orange;

}

2. Link style sheet

<!DOCTYPE html>

<html>

<head>

<title>My Example</title>

<link rel="stylesheet" href="styles.css">

</head>

<body>

<h1>Hello World</h1>

</body>

</html>

User Illona
by
5.4k points