HTML tag writing specifications
HTML tags are not case-sensitive. For example: <font>, <Font>, <fOnt>
HTML tag attributes are optional. Some tags have no attributes, such as: <html>, <head>, <title>, etc.
The content of double-sided tags is between the start and end tags, and the content of single-sided tags is between the start and end tags. The edge tag has no content.
HTML tags can be nested within each other, but be sure to nest them in order, with the outer layer nested within the inner layer, and one layer within another.
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>php.cn</title> </head> <body> <h1>行路难·其一</h1> <font size="6" color="red">长风破浪会有时</font> <br> <Font size="6" color="blue">直挂云帆济沧海</font> </body> </html>
Attributes and nesting will be explained in detail in subsequent chapters
Next Section