HTML styleLOGIN

HTML style

We used various tags above to make the HTML text format conform to our wishes. In fact, there is an attribute that can help us reduce a lot of trouble.

style provides a universal way to change the style of all HTML elements. Here you can define the background color, font style, font size, font color, and alignment. Now let’s start writing an HTML file again

QQ截图20161010172716.png


After seeing the effect, you will feel more friendly, and you won’t have to do it again in the future. Use these tags separately and integrate them in style. Most of the text formatting has been processed, and you will be deeply impressed.


Next Section
<html> <body> <h1 align="center">This is heading 1</h1> <h1 style="font-family:verdana">A heading</h1> <p style="font-family:arial;color:red;font-size:20px;">A paragraph.</p> <p>上面的标题在页面中进行了居中排列。上面的标题在页面中进行了居中排列。上面的标题在页面中进行了居中排列。</p> </body> </html>
submitReset Code
ChapterCourseware