HTML Basics Tutorial: Typesetting Tags
<p></p> represents a paragraph.
Common attributes: align: horizontal alignment, values: left (left), center (center), right (right)
Example: <p>php.cn</p>
##
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <p align="left">HTML是一種規(guī)范</p> <p align="center">是一種標準</p> <p align="right">編寫網頁的一種標準</p> </body> </html>
Line break mark<br>
Horizontal line mark (unilateral mark): <hr>
- Size: The thickness of the horizontal line, the unit is general is px.
- color: The color of the horizontal line.
- width: The width of the horizontal line.
- noshade: Remove the shadow of the horizontal line (in HTML, noshade is an attribute with no value). Such as: <hr noshade>
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> HTML是一種規(guī)范,是一種標準,編寫網頁的一種標準。 <hr size="2" color="red" width="80%" noshade> 超文本:就是網頁上不光有文本,還有圖片、音樂、視頻等。 <br><br><br><br> 標注:是一種記號,是一種標志。如:紅綠燈 </body> </html>
<pre>Pre-typesetting mark
Function: All whitespace characters (spaces, newlines) will be retained, in other words: they will be output unchanged.