HTML Styles CSS
HTML Styles CSS
CSS
HTML Styles CSS
CSS stands for Cascading Style Sheets.
CSS saves a lot of work. It can control the layout
of multiple web pages all at once.
What is CSS?
Cascading Style Sheets (CSS) is
used to format the layout of a
webpage.
With CSS, you can control the color, font, the size of text, the spacing
between elements, how elements are positioned and laid out, what
background images or background colors are to be used, different
displays for different devices and screen sizes, and much more!
</body>
</html>
Internal CSS
An internal CSS is used to define a style for a single
HTML page.
An internal CSS is defined in the <head> section of an
HTML page, within a <style> element.
The following example sets the text color of ALL the
<h1> elements (on that page) to blue, and the text color
of ALL the <p> elements to red. In addition, the page will
be displayed with a "powder blue" background color:
Internal CSS
Internal CSS
External CSS
An external style sheet is used to define the style for
many HTML pages.
The external style sheet can be written in any text editor. The file must not
contain any HTML code, and must be saved with a .css extension.