How Do You Create An In-Line Style Using Cascading Style Sheets (CSS)?
Cascading Style Sheets (CSS) instructions are applied to HTML coding in web pages to format style. One method of applying CSS to web pages is by using in-line style declarations. Create a basic web page. A basic web page includes HTML, HEAD, TITLE, BODY tags. These tags need ending tags. See example in attached image file. Add content to your basic web page. In our example we will be using a paragraph tag to add content. The paragraph tag is used to provide a block of text on a web page. Space is provided between each block of text formatted by paragraph tags. Assign ‘red’ color to one of the words in the sample paragraph. An in-line style declaration can change the color of text within a document. The SPAN tag is used to provide font formatting attributes from CSS instructions. The SPAN tag has been applied to the word ‘example’. Only this text will appear ‘red’ in color. The SPAN tag also has an ending tag.