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 necessary basic knowledge of front-end HTML?

2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly explains "what are the necessary basic knowledge of front-end HTML". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "what are the basic knowledge of front-end HTML?"

Web service nature

Browser sends request-- > HTTP protocol-- > server receives request-- > server returns response-- > server sends HTML file content to browser-- > browser renders page.

What is HTML?

HTML is not what?

HTML is a markup language (markup language), not a programming language.

HTML uses tags to describe web pages.

HTML document structure

The most basic HTML document:

Note: you need to use declaration coding for Chinese web pages, otherwise garbled code will occur. Some browsers will set GBK as the default encoding, then you need to set it to.

HTML tag format

The syntax of the tag:

Several important attributes:

HTML comment

Comments are the mother of code.

Label

The declaration must be the first line of the HTML document, before the tag.

The declaration is not a HTML tag; it is an instruction to the web browser about which version of HTML the page is written in.

Tags commonly used in head

Tag meaning definition page title definition internal style sheet definition JS code or introduction of external JS file external style sheet file or website icon to define the original information of the page.

Meta tag

Introduction to the Meta tag:

The composition of meta tag: meta tag has two attributes, they are http-equiv attribute and name attribute, different attributes have different parameter values, these different parameter values achieve different web page functions.

1.http-equiv attribute: equivalent to the header function of http, it can send back some useful information to the browser to help display the web page content correctly, and the corresponding attribute value is the content in content,content is actually the variable value of each parameter.

2.name attribute: it is mainly used to describe web pages, and the corresponding attribute value is the content in content,content, which is mainly convenient for search engine robots to find information and classification information.

Tags commonly used in body

Basic tags (block-level tags and inline tags)

Special character

Content corresponds to code space > >

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: 240

*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