Preview

Cascading Style Sheets

Satisfactory Essays
Open Document
Open Document
326 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Cascading Style Sheets
CASCADING STYLE SHEETS
CSS or Cascading Style Sheets allow you to control your page layout or a simple way to add style (e.g. font,colors,spacing). HTML deals with structure while CSS deals with style. With CSS,you will recognize some similarities with HTML attribute names and values. But in CSS, you will use curly braces { } colons : and semi colons ; and you will use selectors and declarations.
Good HTML and CSS writing practice it to test one body or block of the codes at a time,instead of writing the code from the start to finish and then test the whole program,more often than not there will be errors that you will encounter and the longer the program to test the most likely you will have bugs in the code.
CSS comes in three style:
1. In line styles – styles that are placed inside HTML tags. These are primarily used to format elements which are not part of the general formatting rule. It overrides previously defined styles. You should avoid using it very of ten as it will defeat the very purpose of CSS.
EXAMPLE
2. Internal Style Sheets – used for making document-wide style rules. They are placed in the header of the document. Internal style sheets are defined by the tag.
EXAMPLE
P {text-align:justify; font-size:12px; color:#275A5A} 3. External Style Sheet- these are sheets that you need to use if you want to make a central formatting control on multiple web pages. This method uses the tag to link the page to the external style sheet. With external CSS, it is possible to format the entire web site by just modifying a single file.
EXAMPLE
Advantages of Using CSS
1. Save typing and development time because you have to enter CSS codes only once and it can be applied to many HTML scripts.
2. Download faster because your browser will download only one file once.
3. You can also add multiple link tags in one document.

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Additions in Properties include border-radius, image-source, image-slice, and the values for width outset and stretch have been added in CSS3. It also features properties for managing boxes like shadowing, wrapping and breaking have been added. The best part of CSS3 is that it has done away with complex structures for div tag and makes it easy for hassle free designing of multiple table-less columns. This can be simply done by putting in the number of columns in the browser that need to be added in the body element along with their width, color and height to make the text flow through the columns with ease.…

    • 272 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    In order to test your IIS server implementation you decide to create a test web site using HTML. Your Senior Administrator suggests you familiarize yourself with some basic HTML tags before you begin.…

    • 242 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Nt1310 Final Exam

    • 746 Words
    • 3 Pages

    A(n) __________ statement must be inserted into all Web pages in which you want to use an external style sheet.…

    • 746 Words
    • 3 Pages
    Good Essays
  • Good Essays

    It237 Week 2 Checkpoint

    • 414 Words
    • 2 Pages

    Throughout this paper I will be describing external, embedded, and inline types of cascading style sheets. Also, I will be providing a pro and a con for each type of cascading style sheet.…

    • 414 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    Nt1330 Final Exam

    • 2055 Words
    • 9 Pages

    The term cascading is used because designers can apply many style sheets to the same Web page, one on top of the other.…

    • 2055 Words
    • 9 Pages
    Powerful Essays
  • Good Essays

    HTML is currently in its fifth revision or HTML53. With HTML5 a standard is set for how to display the web page; where pictures are displayed, fonts used for text and total layout of the page. XML (extensible markup language) is used for web documents. CCS (cascading style sheet) is written into the HTML document or attached as a file to define the appearance of the displayed page.…

    • 897 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Ap Calculus

    • 2722 Words
    • 11 Pages

    | A defined set of formatting characteristics, such as font, font size, font color, cell borders,…

    • 2722 Words
    • 11 Pages
    Powerful Essays
  • Satisfactory Essays

    What is a style guide? Is adhering to a style guide important? Why or why not?…

    • 319 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    unit3lab1

    • 7639 Words
    • 49 Pages

    Write a one-page paper explaining how to use those tags. Include a short example of an HTML page that properly uses the three tags.…

    • 7639 Words
    • 49 Pages
    Satisfactory Essays
  • Good Essays

    14fa MIDTERM

    • 882 Words
    • 5 Pages

    5 On a link statement to an external CSS file, which keyword is used after the media attribute to indicate that the CSS file should be used when the web page will be viewed on a computer screen or monitor?…

    • 882 Words
    • 5 Pages
    Good Essays
  • Good Essays

    WFV1 Notes

    • 4474 Words
    • 16 Pages

    Jpeg/png/gif Site Development Associate v2.0, Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements, section "Images in Web Pages.”…

    • 4474 Words
    • 16 Pages
    Good Essays
  • Good Essays

    It is a tool that you can use to eliminate repetitive types of information on your web pages. It is a file the server includes in a web page before sending it out to a browser. It uses headers, navigation panels, and footers. It’s useful because you only need to change one file and every web page using that element picks up the update.…

    • 411 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Shelly, G. B., & Campbell, J. T. (2012). Web Design: Introductory, 4e. Boston, MA: Course Technology, Cengage Learning.…

    • 612 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Web standards include recommendations for HTML, XHTML, Cascading style sheets, Dom, and the standardized version of…

    • 425 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    What are the advantages of external cascading style sheets (CSS) compared to internal CSS and the embedded ? Explain situations in which each is the appropriate type. Given these situations, which type do you think would be more useful for the majority of web pages?…

    • 426 Words
    • 2 Pages
    Satisfactory Essays

Related Topics