HTML is composed of flags and attributes, which are used together to tell the browser how to display a page of documents. Logo is used to quote document components such as a paragraph of text or picture. Attributes are options for logos and are modified in logos such as color, alignment, height and width. Many signs appear in pairs, for example, if there is <TITLE>, there is</TITLE> the previous one indicates the beginning and the latter indicates the end, and the content is placed between the two.
Basic structural markings
<HTML> ---------------------------------------------------------------------------------------------------------------------------
<HEAD> ---------Includes the file's title, scripts used, style definitions, etc.
<TITLE>HELLO WORLD! </TITLE> - contains the title of the file, the title appears in the browser title bar
<HEAD> ----------</HEAD>'s end sign
<BODY> ----------Place all flags and attributes of the information displayed in the browser, where the content is displayed in the browser</BODY>
</HTML> --------------------------------------------------------------------------------------------------------------------------
Other main logos All the following logos are used in <BODY></BODY>
<A HREF=…></A> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<IMG SRC=…> ----------------Show the image logo,... is the address of the image
<BR> ----------------------------------------------------------------------------------------------------------------------------
<P> -----------------Segmented Flag
<B></B> --------------------------------------------------------------------------------------------------------------------------
<I></I> --------------------------------------------------------------------------------------------------------------------------
<HR> ----------------------------------------------------------------------------------------------------------------------------
<TABLE></TABLE> ---------Define tables, important logos in HTML
<TR></TR> ----------Define the row of the table, used in <TABLE></TABLE>
<TD></TD> ------------Table cell, used in <TR></TR>
<FONT></FONT> ------------------------------------------------------------------------------------------------------------------------
Usage of attributes:
Attributes are used to modify the flag, and the attributes are placed in the start flag.
For example: the attribute bgcolor=BLACK means that the background color is black. Examples of citing attributes: <BODY bgcolor=BLACK></BODY> means that the page background color is black, and <TABLE bgcolor=BLACK></TABLE> means that the table background color is black.
Common properties: Align attribute range properties
ALIGN=LEFT Left alignment (default) WIDTH=pixel value or percentage object width
ALIGN=CENTER Center HEIGHT=pixel value or percentage object height
ALIGN=RIGHT Right-aligned color attribute
COLOR=#RRGGBB Foreground color reference color comparison table
BGCOLOR=#RRGGBB Background color total 2 pages Previous page 12 Next page