Home >Web Front-end >HTML Tutorial >Getting started in 30 minutes HTML_html/css_WEB-ITnose
1. HTML tags
1. Title tags
2. Paragraph tags
3. Image tags
For example:
In short, please note: Don’t forget the closing tag for all tags.
2. Elements
elements refer to all codes from the start tag to the end tag. Elements can be nested.
For example:
element
Note:
means line break.
3. Attributes
tags contain more information in HTML, usually represented by attributes. Attributes Always appears as name/value.
For example: Hyperlink
1. Style
Function: Used to modify elements.
Format:
For example:
Style Changed
2.target
Function: Open the link in a new browser window
For example:
2. Hyperlink
Function: Jump url
Format:< Tag href="url">Element
3. Anchor
Function: Reduce server requests.
Format
For example:Useful Tips Section
Jump to the Useful Tips Section.
Note:
If you write the link like this: href="http://localhost:3000/html", two HTTP requests will be generated to the server. This is because the server will add a forward slash to the address and then create a new request, like this: href="http://localhost:3000/html/" Naming anchors are often used to create table of contents in long documents. . Each chapter can be given a named anchor, and links to these anchors are placed at the top of the document.
If the browser cannot find a defined named anchor, it will navigate to the top of the document. No errors will occur.
4. Table
Each row contains multiple
Table border:
Header of each column:
Caption:
Note: Empty cells
Spanning columns:
Cross line:
List:
Cell padding:
Cell spacing:
Table background image: