
views
Writing Inline CSS
Be sure you have a basic understanding of HTML tags. You should know how tags work and of the src and href attributes.
Learn some of the basic CSS properties. You will find that there are very many properties. However, it is not necessary to learn them all. Some good basic CSS properties to know are color and font-family.
Learn about values for each respective property. All properties need a value. For the color property, for example, you might put the red value.
Learn about the style HTML attribute. It is used within an element like href or src. To use it, within the quotation marks after the equal sign, put the CSS attribute, a colon, and then the value of the property. This is known as a CSS rule.
Understand that inline CSS is not usually used for websites by professional web developers. Inline CSS can add unnecessary clutter to an HTML document. However, it is a great way to get introduced to how CSS works.
Writing Basic CSS
Launch the program you desire to use. It should allow you to create HTML and CSS files. If you don't have a special program installed, you can use Notepad or another text editor. Simply save your file both as a text file and a CSS file.
Open the HTML file for your website. You should open this with an HTML editor as well, if you have one installed. HTML editors allow you to edit HTML and CSS at the same time.
Create a