Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the common codes in HTML?

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces what HTML commonly used code has, has certain reference value, interested friends can refer to, I hope you read this article after a lot of gains, the following let Xiaobian take you to understand.

I. HTML Common Code

Description, keywords, author and other elements of the page: meta name="" content=""

Client script: window.alert ('');

Style information for documents:

Image: img src

New line: br

Hyperlink: a herf

New page opens: target="_blank"

Unordered list:

Ordered list:

Table header: thead

Subject of table: tbody

Define the footer of the table: tfood

Definition of table: table

Border: border

Space between cell border and content: celladding

Spacing between cells: cellspacing

Table header: th

Row of table: tr

Cell of table: td

form: form action="where the data entered by the viewer is transmitted" methot="how the data is transmitted"(get or post)

Textbox:

Password box:

Radio box: radio Radio box when type=radio

Check box: checkbox? Multi-choice box when type=checkbox

Default option: checked

[]: Multiple values, arrays

Drop-down list box: Options

Default selected: selected

Multiline text:

Number of rows: cols

Number of columns: rows

Upload an avatar or scene:

Submit button:

Reset button:

II. Basic framework

Like people, web pages include "heads" and "bodies,"

Tags contain basic information such as page title, language code, page description, etc., and usually we actually see the content of the page are placed in the tag. Now let's introduce the basic information in.

Page title (markup format is)

Create page title text:Title//Text written here will appear in IE's title bar.

Web page document information (markup format is)

Description://This page is in TXT or HTML format, and the language coding method is GB2312(i.e. Simplified Chinese).

Keyword information describing web pages:

Detailed description of the web page:

Refresh page://Refresh in 5 seconds and link to xxx.htm.

III. Component elements

No matter how ever-changing web pages, the most basic elements that constitute a web page content are roughly only five, namely text, images, tables, hyperlinks and form controls, so the following will be listed around these five elements.

Text (mark format is)

Specify text font:Song text

Specify text size:Text number 3

Specify text color:Red text//Web page color is encoded in 16 bits, so #FF0000 appears red. You can check out the related information for other color codes.

Picture (marked in format)

// src specifies the path address, width is width, height is height, border is border size, align is horizontal position.

Table (marked in format)

Add text or pictures here
//width, height, border, align Same as above example, cellpadding is the spacing between borders and cells, cellspacing is the spacing between cells, bgcolor is the background color of the table.

The elements described above are only present in the current page, and the appearance of web hyperlinks has greatly changed people's browsing habits, according to their preferences, click on the relevant links to view web information.

Hyperlink (tag format is)

Link text or image//href is the link page after being clicked, title is the prompt text that appears after hovering over the link text or image.

Form controls (marked with,,)

Form controls realize the interaction between people and web pages, such as forums and shopping sites that we often go to have its "figure."

Text box://value is the value of the control, each of the following form controls can be set, not set to blank by default

Password box:

Radio box:

Check box:

Submit button:

Reset button:

Hidden areas:

Text field://rows is the number of rows, cles is the width

List box:

Thank you for reading this article carefully. I hope that the article "What are the common HTML codes" shared by Xiaobian will be helpful to everyone. At the same time, I hope that everyone will support you a lot and pay attention to the industry information channel. More relevant knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report