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

    Other major changes include CSS Selectors which CSS2 had simple selectors and the new version calls the components as a sequence of simple selectors. Pseudo elements because many Pseudo elements have been added that allow in-depth yet easy styling. Also a new convention of double colons ‘::’ has been introduced. Style properties let multiple background images be layered in the box using different elements like background image position and repeat. Border style is the styling of borders that extended to images and rounded designs which includes creating image of the borders and then automatically apply image to the borders through CSS.…

    • 272 Words
    • 1 Page
    Satisfactory 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
  • Good Essays

    Nt1310 Final Exam

    • 746 Words
    • 3 Pages

    If you have several Web pages and need a consistent style that can be easily updated, __________ is a good choice.…

    • 746 Words
    • 3 Pages
    Good Essays
  • Good Essays

    It237 Week 2 Checkpoint

    • 414 Words
    • 2 Pages

    First, I will be describing the external cascading style sheet as well as a pro and a con for the it. An external style is one in which you write the code in a document separate from the HTML for the web page. External style sheets are the preferred method for writing a CSS or cascading style sheet code because it can be used to format some or all of the pages at your website. One pro to using external CSS types is that they can be reused throughout websites and easy to maintain. One of the cons of external style is that in normal situations it is removed from HTML mails creating messy HTML layout.…

    • 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
  • Satisfactory Essays

    Using the links below and Internet research, list the usage for each of the HTML tags in the table below.…

    • 242 Words
    • 1 Page
    Satisfactory 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

    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

    The second key element to consider is contrast and focus. Focus is the center of interest. Web pages need a focal point. This is where you want your visitors to focus their attention. Creating Web pages with contrast using size and colors will help establish a focal point.…

    • 612 Words
    • 3 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

    For developers, coding within the web standards can minimize both development time, code maintenance time, and can ensure increased visibility in various search engines. One of the many standardized tags used in HTML is the tag. Meta tags do not have an effect on how a web page is displayed nor does this information appear to the user; although it can provide information or description about a web page. This information provided is used by search engines, such as Google and Bing, to better understand what your site is about in order to list on search results. According to (Kyrnin, 2013), “Focus on one phrase that really captures what your page is about, and make sure that that phrase is repeated in the content, the headlines, and links within the page.” Using effective tags can help promote accessibility and search engine optimization resulting increased visibility.…

    • 425 Words
    • 2 Pages
    Good Essays

Related Topics