What is CSS

As the Internet evolved, a need of placing the instructions for the layout of the data presented on the web page in an easier way raised. Thus, in 1997, the World Wide Web Consortium created the CSS language.

CSS stands for Cascading Styles Sheet. It is cascading because it goes from general to specific, and it may be understood as an auxiliary language for HTML and XML documents, as it is used only to deal with its presentation. With CSS, you do not need to specify the presentation instructions of each part of a web document or page. You can do it globally for the main characteristics, and specifically for those parts in which you need to make changes.

Further, you can specify all these instructions in separate files, within the file you are working in or specifically on a line of your web document. In addition, you can specify how the web page will be seen on a computer screen, on a mobile phone, printed, among others.

By the way, Heptagrama uses screen and printer style sheets, this means you can print the contents of all Heptagrama.com without problems.

How to use CSS

If you are going to use CSS in a separate file, you need to specify the link where the instructions are stored. To do it, you need to include this <link /> tag in the <head></head> section of your web page. For example, for Heptagrama, the link is here:

<link type="text/css" href="pics/plantilla.css" rel="stylesheet" />

If you are going to use CSS within the page, you need to specify a <style></style> tag in the <head></head> section of your web page, like this:

<style type="text/css">
  CSS instructions here

If you are going to make in-line modifications, you just add a style="" attribute in the tag and you specify the new styles there.

<p style="CSS instructions here"></p>

Knowledge + Computers