Learning HTML by yourself


5 - Inline Style writing.

23/11/2011 18:43

Inline styles are styles set within one tag. They only affect the current tag, every other similar tag on the page will have the default styles. For example, if you want one paragraph to have a grey background, you can use an inline style Try this out on your Web page:

It' looks like the line below


This paragraph has an inline style to change the background color to grey.

The style is defined by the "style" attribute on the element itself.

 

 

—————

Back