In lesson 1, we have learned about the concepts of CSS and its basic
structure. In this lesson, we shall learn how to incorporate CSS in a
webpage.
There are basically three ways to apply CSS in a webpage namely inline style, embedded style sheet and external style sheet. In this lesson, we shall examine only the inline style method first. We shall explore other ways in coming lessons.
Inline style means that we apply CSS styles to individual elements in an HTML document, it will only change the style of the parts of the document specified by those elements.
The structure to apply inline CSS is by using the attribute style as shown below:
There are basically three ways to apply CSS in a webpage namely inline style, embedded style sheet and external style sheet. In this lesson, we shall examine only the inline style method first. We shall explore other ways in coming lessons.
Inline style means that we apply CSS styles to individual elements in an HTML document, it will only change the style of the parts of the document specified by those elements.
The structure to apply inline CSS is by using the attribute style as shown below:
< element style=” property1:value1; property1:value2;…”}
Example
Example 2.1
Inline CSS Style
Inline CSS Style
What is CSS
HTML vs CSS
< p style=” font-family: “”Courier New”, Courier, monospace ; color: rgb(255,153,204)”> HTML has now evolved into more recent and more powerful HTML5 and CSS(Cascading Style Sheet). CSS has made formatting and presenting web documents easier and more systematic. CSS is a W3C technology that allows webmaster to specify the presentation of elements on a webpage separately from the structure of the documents. The separation of structure from presentation makes creation and maintenance of web pages easier. Instead of formatting a website page by page, CSS allows web developers to create a style for all the pages using an external CSS file. Besides, you can create a unique style for an individual page or a section of a page.
0 Comments
Good day precious one, We love you more than anything.