Cascading Style Sheets
Computers & Technology → Internet
- Author Art Daco
- Published May 16, 2010
- Word count 734
The cascading style sheets, CSS is a language used to define the presentation of a structured document written in HTML or XML (and by extension XHTML). The W3C (World Wide Web Consortium) is responsible for developing the specification of style sheets that serve as a standard user agents or browsers.
The idea behind the development of CSS is to separate the structure of a document from its presentation.
For example, the HTML element indicates that a block of text is a heading and which is more important than a block labeled . Older versions of HTML allow extra attributes into the open tag to format (such as color or font size). However, each label should have the information if they wanted a consistent design for a page and also a person who read this page in a browser completely lost control over the display of text.
When using CSS, label should not provide information on how it will be viewed, just mark the document structure. Separate style information in a style sheet specifies how it has to show : color, font, text alignment, size and other non-visual features to define the volume of a speech synthesizer (see synthesis of speech) , for example.
Style information can be attached either as a separate document or in the same HTML document. In this case general styles could be defined in the header of the document or in each particular tag using the attribute "style."
CSS provides three different ways to apply style rules to a web page:
-
An external style sheet, which is a style sheet that is stored in a separate file to the file that stores the HTML Web page. This is the most powerful way to program, because it completely separates formatting rules for the HTML page of the basic structure of the page.
-
An internal style sheet, which is a style sheet that is embedded within an HTML document. (He goes right into the element). This will get the benefit of separating the style information, HTML code itself. You can choose to copy the embedded style sheet from one page to another, (this possibility is difficult to implement if you want to keep the copies synchronized.) In general, the only time you use an internal style sheet, is when you want to provide some feature to a Web page in a single file, for example, if you are sending something to the website.
-
An inline style, which is a method to insert the page style language directly within an HTML tag. This approach is not entirely appropriate. The description of the formatting embedded in the Web page document, code-level task becomes a long, tedious and inelegant to solve the problem of scheduling page. This way of working could be used occasionally if they are to apply formatting in a hurry, the flight. It is not as clear, or structured, it should be, but it works.
The advantages of using CSS (or other style language) are:
-
Centralized control of the presentation of a complete website thus significantly speeds up the update.
-
Browsers allow users to specify their own local style sheet that will be applied to a web site, which greatly increases accessibility. For example, visually impaired people can set their own style sheet to increase the size of the text or highlight more links.
-
A page can have different style sheets depending on the device to display or even the user's choice. For example, to be printed, displayed on a mobile device, or be "read" for a synthesized speech.
-
The HTML document itself is clearer to understand and be able to reduce considerably the size (if not use inline style.)
Before CSS was available, the only way to compose a page was spatially using tables. Although it is a convenient and versatile technique is being used an element with a particular semantic, which is to express tabular information only for its effect on the presentation.
The introduction of CSS has led in many cases replace the use of tables. But CSS does not yet provide the versatility offered by the tables, make a diagram of a complex page is often a difficult task in CSS and browser differences even more difficult task. Future developments are expected to resolve this deficiency in CSS3 CSS and make the language more suitable to describe the spatial structure of a page.
More about CSS and HTML you can find on CSS HTML web portal.
Article source: https://articlebiz.comRate article
Article comments
There are no posted comments.
Related articles
- What is CCTLD?
- Gulf Website Hub Reveals Fresh Digital Solutions to Enhance Dubai's Expanding Market.
- Embrace Multi Graphics Inc. Expands Services to Meet Growing Demand in Digital Marketing, Design, and Printing
- Website Development Trends in 2025
- Viewing Instagram Stories Without an Account: Imginn Viewer Insights
- How to Find, Use, and Manage BitLocker Recovery Keys on Windows 10/11
- Building a Professional Website on a Budget: Using Free Tools like WordPress and AI
- Ava Labs CEO On Why You Shouldn't Ignore Red Flags In The Industry
- Cyberbullying: Empowering Families to Safeguard Their Kids
- 10 Common Online Scams to Avoid: Protecting Your Identity and Finances
- Spring Break and Staying Secure Online: An Internet Safety Guide for College Students
- Unveiling the Future: The 10 Revolutionary Trends Shaping Small E-Commerce Businesses in 2024
- Unlocking Online Content with YouTube Video Downloaders
- Unleashing the Potential of Online Earning: A Comprehensive Guide
- Navigating Success in the Digital Realm: Unveiling the Power of Digital Marketing
- How AI Will Affect the Future of Search
- Maximizing Business Efficiency: The Strategic Role of Business Intelligence with DataInseyets
- Cyber Resilience in the Age of AI
- Harnessing the Power of AI & Blockchain for Data Security and Transparency
- AI Ignites 6G Advancements in Wireless Technology
- How AI is Revolutionizing Content Writing
- What You Need to Know About Writing Prompts
- The Remarkable Ways to Use the AI-Powered Chatbot
- Where Will AI Take Us in 2024?
- AI Written Content Creation Trends for 2024
- Will AI-Linked Cryptocurrency Sector Thrive in 2024?
- Is AI Regulation vs AI Deregulation a Real Concern?
- Prompt Engineering: A Beginner's Guide to Prompt Engineering
- Balancing Innovation and Regulation of AI in the Future
- Crafting AI Short-Form Content: The Future of Digital Marketing