In this exercise you applied linked, embedded, and inline styles to style a home page.

In this exercise you applied linked, embedded, and inline styles to style a home page.

March 17, 2022
4 Views
0
0

In this exercise you applied linked, embedded, and inline styles to style a home page. Use your experiences and research the web to answer these questions:

a. In step 7, you entered a comment after the closing

tag. Why is a comment especially useful after a closing

tag?

b. What is the primary advantage of using an external versus embedded style sheet for the majority of your website styles?

c. In step 15, two tags were given the same inline style. Why would you use inline styles versus embedded or external styles?

Answer and ExplanationSolution by a verified expert

a
Explanation
The web page may or may not contain many sections or divisions. For instance, a college website shows professors' details along with their photos and social media IDs. The programmer has to develop separate sections for each staff to include everything about them. Many

need to be used in the whole code. The main use of giving a comment at the end of the

is that It acts as a separator between two different sections and makes the detail readable. This comment used in the HTML will only be visible in the source code and invisible in the browser. It is very useful while creating complex web pages, as it indicates that the outer wrapper is closed here.

Verified Answer
The main use of giving the comment at the end of the

is that it offers more readability and specifies the end of the above section.

b
Explanation
Changes made to an external style sheet reflects in all the web pages linked with it. Changing the look of entire website or reskinning the page is made easier by an external style sheet. On the other hand, internal style sheets specified between the head tags of an HTML document apply styles only on the specific document. Internal style sheet finds its preference to style a web page different from all other pages on the website.

Verified Answer
Reskinning the website becomes faster and easier.

c
Explanation
The foremost benefit of the inline style is that it overrides the content of the embedded sheets, and it is useful for making flexible changes to specific elements in the sheets. The inline style was preferred over embedded or external styles. Inline styling is done along with HTML attributes in the same line. It is not present in any external file or elsewhere.

Verified Answer
The inline style was chosen to override the embedded or linked style rules, as inline style sheet allows to specify the styles to specific elements in the sheet.

Purchase this answer to view it.
Click the button to login/signup and buy full solution at 2 USD only.

The Best Research Paper Writing Service

Would you want to pay someone to write your paper professionally from scratch? 100% Original and 0% AI Content!.

🎓 Write my Essay
📚 Write my Persuasive Essay
📋 Humanize AI Content for Turnitin
💻 Write my Reflective Essay
📑 Write my Research Paper
📜 Write my Thesis Paper
📘 Write my Dissertation
📋 Write my Case Study
📝 Write my Online Exam
✒️ Write my Term Paper
Write my Paper