Home > Article > Web Front-end > HTML basics
This article mainly introduces the basic knowledge of HTML. Interested friends can refer to it. I hope it will be helpful to everyone.
Open DREAMWEAVER and create new HTML. .
body attributes:
bgcolor Page background color
background Background wallpaper, picture
text Text Color
topmargin having Format control tag:
Control the font color and Font and size.
# & LT; B & GT; & LT;/B & GT; Font boldness # & LT; Strong & GT. ; Centered
or
Equivalent to carriage return
represents a space, Ctrl shift space
Content container label:
The title will wrap automatically. HTML titles are defined through tags such as< ;/p> using using using using using to ‐ used to occupy 1 row by default
< 1"> . li> Contents "./" represents the current directory
relative path: start searching from the current page.
Absolute path: Start searching from the root of the website. "/" represents the root of the website. Hyperlink tag:
Hyperlink text< /a> —Open in a new window
You can also find the directory on the current page and click the hyperlink on the directory to automatically jump to a certain place on the page.
Picture tag:
Set one height and one width to maintain the original proportion.
alt displays text when the image cannot be loaded, and can also help search engines search.
title can add a picture description, and the description can be displayed when the mouse is placed on the picture.
sheet:
width: Width. Can be expressed in pixels or percentages. Commonly used is 960 pixels.
border: border, the common value is 0.
cellpadding: The distance between the content and the border. The common value is 0.
cellspacing: The spacing between cells, the common value is 0.
algin: Alignment.
bgcolor: background color.
background: background image.
align: The horizontal alignment of a row of content.
valign: Vertical alignment of a line of content.
height: Row height.
bgcolor: background color.
background: background image.
align: Alignment of cell content.
valign: The vertical alignment of the cell's content.
width: cell width.
height: cell height.
bgcolor: background color.
background: background image.
Content must be placed in cells, cells must be placed in rows, and rows must be placed in tables.
When setting the cell row height and column height, it will also affect the corresponding row or column.
Cell merging: (It is recommended to use table nesting as much as possible)
colspan=“n” merge cells in the same row (you need to subtract the corresponding when writing the code later) Column)
rowspan="n" Merge cells in the same column (subtract the corresponding column from the second row)
Summary: The above is the entire content of this article, I hope It can be helpful to everyone’s study.
Related recommendations:
A few HTML basic knowledgePoints
HTML basics Knowledge, a detailed introduction to the style of hyperlink settings
Basic knowledge of html in the front end
The above is the detailed content of HTML basics. For more information, please follow other related articles on the PHP Chinese website!