Html学习_style属性应用

 

用style属性改变字体大小、颜色、字体、背景颜色和对齐方式

<!DOCTYPE html>

<html>

    <head>

        <title>Putting it all together</title>

    </head>

    <!--用style属性改变字体大小、颜色、字体、背景颜色和对齐方式-->

    <body style="background-color:brown">

        <p style="font-size:20px; color:blue; font-family:Arial">A truly spectacular paragraph!</p>  

        <h3 style="text-align:center">Favorite Football Teams</h3>

            <ol style="background-color:yellow">

                <li>The Hawthorn Football Club</li>    

                <li>San Franscisco 49ers</li>

                <li>Barcelona FC</li>

            </ol>            

    </body>

</html>

 

你可能感兴趣的:(style)