1. Html --- the abbreviation of hypertext markup language --- hypertext markup language.
What is this technology
What can this technology do
How to use technology well
2. Html is used to make web pages.
3. Some html specifications
Html files have their own specific extensions of: .html, .htm
Html tags are divided into the following two types:
Single tags: Single tags are generally used for special meanings, for example:
means line break,
horizontal line
Double labels: Double labels are generally used to encapsulate data and display specific styles, for example: Welcome
Rules for writing tags
In HTML, whether it is a single tag or a double tag, it must be closed correctly,
For any html page, there will be a fixed content:
Html must use html as the root tag, and then there are head and body tags below. Generally, the title tag and meta tag are written in the head. , where title sets the title content of
Html page. Meta is used to specify specific attribute information of html page.
Comments in Html:
4. Common tags
HTML tag listMark | Type | Translation or meaning | Function | Remarks | |||||||||||||||||||||||||||||||||||||||
File tags | |||||||||||||||||||||||||||||||||||||||||||
● | File declaration | Let the browser know that this is an HTML file | |||||||||||||||||||||||||||||||||||||||||
● | Start | Provide overall information of the file | |||||||||||||||||||||||||||||||||||||||||
● | Title | Define the file title, which will be displayed at the top of the browser | |||||||||||||||||||||||||||||||||||||||||
● | This article | Design file format and content location | |||||||||||||||||||||||||||||||||||||||||
Typesetting mark | |||||||||||||||||||||||||||||||||||||||||||
○ | The description tag | adds a description to the file but is not displayed | |||||||||||||||||||||||||||||||||||||||||
○ | Paragraph mark | Leave a blank line between words, pictures, tables, etc. | |||||||||||||||||||||||||||||||||||||||||
○ | Line break mark | To display words, pictures, tables, etc. on the next line | |||||||||||||||||||||||||||||||||||||||||
| ○ | Horizontal line | Insert a horizontal line | ||||||||||||||||||||||||||||||||||||||||
● | Center | Let words, pictures, tables, etc. be displayed in the middle | Object | ||||||||||||||||||||||||||||||||||||||||
● | Default format | Display the files according to the source code arrangement | |||||||||||||||||||||||||||||||||||||||||
● | Separation mark | Set the placement of words, pictures, tables, etc. | | |
|||||||||||||||||||||||||||||||||||||||
| ● | Recommended fold | Default fold location | ||||||||||||||||||||||||||||||||||||||||
Font tag | ● | ||||||||||||||||||||||||||||||||||||||||||
Produces font bold Bold Effect | |||||||||||||||||||||||||||||||||||||||||||
● | Bold mark | produces a bold font Effect | |||||||||||||||||||||||||||||||||||||||||
● | Emphasis mark | The font appears with italic effect | |||||||||||||||||||||||||||||||||||||||||
● | Italic mark | The font has an italic effect | |||||||||||||||||||||||||||||||||||||||||
● | Typing font | Courier font, same letter width | |||||||||||||||||||||||||||||||||||||||||
● | Add bottom line | Add bottom line | |||||||||||||||||||||||||||||||||||||||||
● | Level 1 title tag | Get thicker, bigger and wider, the degree is inversely proportional to the series | |||||||||||||||||||||||||||||||||||||||||
● | Secondary title tag | Make the font bolder and larger Widen | |||||||||||||||||||||||||||||||||||||||||
● | Third-level title tag | Change the font Thick to large and widened | |||||||||||||||||||||||||||||||||||||||||
● | Level 4 title tag | Make the font thicker, larger and wider | |||||||||||||||||||||||||||||||||||||||||
● | Level 5 title tag | Make the font thicker, larger and wider | |||||||||||||||||||||||||||||||||||||||||
● | Level 6 title tag | Make the font thicker, larger and wider | |||||||||||||||||||||||||||||||||||||||||
● | glyph Mark | Set font, size, color | |||||||||||||||||||||||||||||||||||||||||
○ | Base glyph tags | Set all glyphs, sizes, colors | |||||||||||||||||||||||||||||||||||||||||
● | Enlarge the font size | Make the font size slightly larger | |||||||||||||||||||||||||||||||||||||||||
● | Shrink the font size | Make the font slightly thinner | |||||||||||||||||||||||||||||||||||||||||
● | Draw strikethrough | Add a strikethrough to the font | |||||||||||||||||||||||||||||||||||||||||
| ● | Program code | The font is slightly wider, such as | ||||||||||||||||||||||||||||||||||||||||
● | Keyboard words | The font is slightly wider, single space | |||||||||||||||||||||||||||||||||||||||||
● | Example | The font is slightly wider, such as | |||||||||||||||||||||||||||||||||||||||||
● | Variable | italic effect | |||||||||||||||||||||||||||||||||||||||||
● | Biography Quote | italic effect | |||||||||||||||||||||||||||||||||||||||||
● | Quote text block | Indented font | |||||||||||||||||||||||||||||||||||||||||
● | Predicate definition | Italic effect | |||||||||||||||||||||||||||||||||||||||||
● | Address tag | italic effect | |||||||||||||||||||||||||||||||||||||||||
● | Subscript | Index | |||||||||||||||||||||||||||||||||||||||||
● | Subscript | Subscript | |||||||||||||||||||||||||||||||||||||||||
List tag | |||||||||||||||||||||||||||||||||||||||||||
● | Sequential list | The list items will be arranged in numerical and alphabetical order | |||||||||||||||||||||||||||||||||||||||||
● | Unordered list | List items will be arranged in dots | |||||||||||||||||||||||||||||||||||||||||
○ | Checklist items | Each tag identifies a checklist item | |||||||||||||||||||||||||||||||||||||||||
● | Menu list | The list items will be arranged in dots, such as | Objection | ||||||||||||||||||||||||||||||||||||||||
| ● | Definition list | The list appears in two levels | ||||||||||||||||||||||||||||||||||||||||
○ | Definition entry | Title indicating the definition | |||||||||||||||||||||||||||||||||||||||||
○ | Definition content | Mark definition content | |||||||||||||||||||||||||||||||||||||||||
Table mark |
HTML 原始码 | 显示结果 | 描述 |
< | < | 小於号或显示标记 |
> | > | 大於号或显示标记 |
& | & | 可用於显示其它特殊字符 |
" | " | 引号 |
® | ? | 己注册 |
© | ? | 版权 |
™ | ? | 商标 |
半方大的空白 | ||
全方大的空白 | ||
不断行的空白 |
6. Introduction to commonly used tags
1), font tag:
is applied to the content part of the file, that is, the position between and . It only affects the marked words and sentences, and is a containment mark.
Parameter settings: Example: Creation of Webpage> ; face="Arial" sets the font style of the text. Arial is a commonly used one. Please do not use glyphs other than Window’s built-in glyphs. For Chinese web pages that are not set to Gb2312 Encoding, Netscape Net vigator will not display any Chinese glyphs specified by this tag. size=" 2" sets the size of the text. The value can be absolute or relative. Absolute means that the mark determines the size of the text by itself and is not affected by
For example, size="5" means that the size is 5, and html The default value is 3, that is, size="3" is the same as not being set. Relative means to increase or decrease the size series based on the default value of 3. For example, size=" 2" is equivalent to size="5" in absolute representation, but if
2), img tag
is mainly used to insert pictures into web pages
General parameter settings for:
For example,
Image source, accepts .gif, .jpg and .png formats , the former two have been popular for a long time, and the latter began to develop in 1996 and will replace the former two in the future. If the image file is in the same directory as the html file, only the file name must be written. Otherwise, the correct path must be added, either relative or absolute.
Set the image size. The width and height are generally in pixels. Usually only set to the actual size of the picture to avoid distortion. If you want to change the size of the picture, it is best to use an image editing tool in advance.
Set the edge of the image to be blank to prevent text or other images from being too close. hspace is to set the space around the image, vspace is to set the space above and below the image, and the height is in pixels.
Image border thickness.
Adjust the position of the text next to the picture. You can control the text to appear at the top, middle, bottom, left and right of the picture, etc. Optional values: top, middle, bottom, left, right, default is bottom. Netscape also supports texttop, baseline, absmiddle, absbottom.
texttop means that the picture and text are paired according to the top line.
baseline means that the picture is paired to the bottom line of the current text line.
absmiddle means that the picture is paired to the current text line. In the center,
absbottom indicates the absolute bottom of the image to the current line of text (the absolute bottom means that it takes into account the lower edge of words such as y, g, q, etc.).
This is the text used to describe the graphic. If the user uses a text browser, since images are not supported, these texts will be displayed instead of the image. If the browser supports image display, the text will also be displayed when the mouse is moved over the image.
Set to display the low-resolution image first. If a large image is added and the download time is very long, the low-resolution image will be displayed first. To avoid losing interest in browsing, it is usually a grayscale version of the original image.
3), table tag
Used to mark cells (cells)
|

The official account web page update cache, this thing is simple and simple, and it is complicated enough to drink a pot of it. You worked hard to update the official account article, but the user still opened the old version. Who can bear the taste? In this article, let’s take a look at the twists and turns behind this and how to solve this problem gracefully. After reading it, you can easily deal with various caching problems, allowing your users to always experience the freshest content. Let’s talk about the basics first. To put it bluntly, in order to improve access speed, the browser or server stores some static resources (such as pictures, CSS, JS) or page content. Next time you access it, you can directly retrieve it from the cache without having to download it again, and it is naturally fast. But this thing is also a double-edged sword. The new version is online,

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

This article demonstrates efficient PNG border addition to webpages using CSS. It argues that CSS offers superior performance compared to JavaScript or libraries, detailing how to adjust border width, style, and color for subtle or prominent effect

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

This article explains the HTML5 <time> element for semantic date/time representation. It emphasizes the importance of the datetime attribute for machine readability (ISO 8601 format) alongside human-readable text, boosting accessibilit

The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 English version
Recommended: Win version, supports code prompts!

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)
