Question

In: Computer Science

What are the reasons for adding CSS to web programming? Also provide a briefing of CSS...

What are the reasons for adding CSS to web programming? Also provide a briefing of CSS rules, syntax, and styles.

Solutions

Expert Solution

Answer:

Reasons for adding CSS to web programming:

The look and feel of the content written in HTML can be controlled by an extremely powerful style sheet language CSS. Cascading Style Sheets, commonly known as CSS, is an integral part of the modern web development process. The layout and presentation of website can be handled well by separating content from design as it is a highly effective HTML tool.

Some of reasons why everyone should use CSS in web design:

1. CSS Provides Efficiency in Design and Updates

2. CSS Use Can Lead To Faster Page Downloads

3. CSS is Easy to Work With

CSS rules, syntax and style:

A CSS rule is a grouping of one or more CSS properties which are to be applied to one or more target HTML elements.

A CSS rule-set consists of a selector and a declaration block.

The selector points to the HTML element you want to style.

The declaration block contains one or more declarations separated by semicolons.

Each declaration includes a CSS property name and a value, separated by a colon.

A CSS declaration always ends with a semicolon, and declaration blocks are surrounded by curly braces.

For example:

div {
      border    : 1px solid black;
      font-size : 18px;
  }

Please give thumbsup, if you like it. Thanks.


Related Solutions

suggests on how to save the web portfolio Programming languages Chosen: HTML, CSS, and JavaScript. Project...
suggests on how to save the web portfolio Programming languages Chosen: HTML, CSS, and JavaScript. Project Name: Auto Portfolio Project Goal: Create a website that will generate a web portfolio using information inputted by the user. Product Backlog using user stories: As a user, I want to be able to save my web portfolio in a format which I can save so I can use the website later for my own needs. Example: http://www-personal.umich.edu/~hamatilo/
suggests on how to save the web portfolio Programming languages Chosen: HTML, CSS, and JavaScript. Project...
suggests on how to save the web portfolio Programming languages Chosen: HTML, CSS, and JavaScript. Project Name: Auto Portfolio Project Goal: Create a website that will generate a web portfolio using information inputted by the user. Product Backlog using user stories: As a user, I want to be able to save my web portfolio in a format which I can save so I can use the website later for my own needs.
Debug3-4.css You’ve been given the initial HTML and CSS code for this web page, but there...
Debug3-4.css You’ve been given the initial HTML and CSS code for this web page, but there are several errors in the CSS stylesheet. Use your knowledge of CSS to locate and fix the errors. The body element should have a width that is 90% of the width of the browser window ranging from a minimum of 600 pixels up to a maximum of 1024 pixels. Fix the syntax errors in the body style rule that defines the width of the...
In web programming what is the Client-Server model?
In web programming what is the Client-Server model?
In web programming, what is the three tier architecture?
In web programming, what is the three tier architecture?
In web programming what is the Client-Server model?
In web programming what is the Client-Server model?
Create a Web Page Using HTML, CSS, JS, jQuery • Create a web profile, including any...
Create a Web Page Using HTML, CSS, JS, jQuery • Create a web profile, including any of the following: • Your hobbies, likes/dislikes, career aspirations, dream job, favorite animals/ pets, favorite superhero, etc. • You do not have to share personal information that you are uncomfortable with sharing. Follow these guidelines when creating your page: • Include at least one heading (h1, h2, etc.) in your web page. • Provide a quote from a book, movie, etc. • Include at...
Build a web page using an external CSS file based on the following specifications : a)...
Build a web page using an external CSS file based on the following specifications : a) The page must have a breaking point at 768px (desktop/mobile). b) The three sections contents (header, main and footer) must be full-width and no larger than 960px (horizontally centered block). Ma c) Header must be 80px high, full width and fixed and will show your name on the left /5 side. The burger icon should appear when the browser’s window is 768px or lower....
PLEASE USE R PROGRAMMING LANGUAGE TO ANSWER THESE EXAMPLES. Also please explain any important reasons/tips for...
PLEASE USE R PROGRAMMING LANGUAGE TO ANSWER THESE EXAMPLES. Also please explain any important reasons/tips for how you coded. Thank you! The Basic Examples: a) If Statements: Write code that generates a random variable x uniformly between 0 and 1. If x is bigger than 0.6, square it; if x is less than 0.3, set it equal to 5, otherwise set x = 0. b) Forloops: Write a program that makes a vector of all zeros of length 5.Then write...
Use CSS to format the appearance of a web page containing several literary quotes marked as...
Use CSS to format the appearance of a web page containing several literary quotes marked as blockquote elements. Figure 2–54 shows a preview of the formatted page. Figure 2-54 Do the following: 1.Open the files code2-1.html and code2-1.css and in the comment section enter your name (First + Last) and the date (MM/DD/YYYY) into the Author: and Date: fields of each file. 2. Go to the code2-1.html file and within the head section insert a link element linking the page...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT