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 is the basic Chinese document and website structure of HTML?

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

What is the basic Chinese document and website structure of HTML? in view of this question, this article introduces the corresponding analysis and answer in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

The main job of HTML is to edit text structure and text content (also known as semantic semantics) so that browsers can display it correctly.

Introduce how to use HTML: add headings and paragraphs to a paragraph of text, emphasize sentences, create lists, and so on.

Basics: title and paragraph section (recommended study: HTML getting started tutorial)

Most of the text structure consists of headings and paragraphs. Whether it is novels, newspapers, textbooks, magazines and so on.

Structured content will make the reader's reading experience easier and more enjoyable.

In HTML, each paragraph is passed through the

Element tags are defined, such as the following

I am a paragraph, it is true.

Each Heading is defined by a "title tag", and there are six title element tags--,. Each element represents a different level of content in the document; it represents the main title (the main heading), the second-level subtitle (subheadings), the third-level subtitle (sub-subheadings), and so on.

Preferably, you should use it only once for each page-this is the top-level title, and all other headings are at the bottom of the hierarchy.

Make sure that headings are used in the correct order in the hierarchy. Do not use subheadings, followed by subheadings-this is pointless and can lead to strange results.

Of the six header levels available, you should aim to use no more than three per page, unless you consider it necessary to use more. Documents with many levels (that is, deeper title hierarchies) become difficult to manipulate and navigate. In this case, if possible, it is recommended to spread the content across multiple pages.

List Lists

Now, let's pay attention to the list. Lists can be found everywhere in life-from your shopping list to your home route list to the list of tutorial instructions you follow.

Unordered lists are used to mark each item. Here, the order of items doesn't matter-let's take a look at the breakfast list below:

Soybean milk Youtiao bean juice coke ring

Focus on

In human language, in order to highlight the meaning of a sentence, we usually emphasize certain words, and we usually want to mark certain words as emphasis or to some extent different. HTML provides many semantic elements and allows us to mark the body content by the meaning of these elements. In this chapter, we will see a small number of elements that are the most common.

In HTML, we mark such a situation with the (emphasis) element. This not only makes the document more interesting to read, but also can be recognized by screen readers and sent out in different tones. The default style of the browser is italic, but you shouldn't just use this tag to get italic style. to get italic style, you should use elements and some CSS, or elements (see below).

I am glad you weren't late.

Why do we need to be structured?

There are multiple elements in the body of the document (body)-unmarked, but edited using line feeds (enter enter / newline jump to the next line).

However, when you open the document in a browser, you will see that the text appears as a whole block!

This is because there are no elements for the content structure, so browsers don't know what a title is and what a paragraph is. In addition:

When users read a web page, they often skim quickly to find relevant content, often only reading the title at the beginning (we usually spend very little time on a web page). If users can't see something useful in a few seconds, they are likely to get frustrated and leave.

Search engines that index your pages regard the content of the title as an important keyword that affects the search ranking of the page. Without a title, your web page is not very effective in SEO (search engine Optimization).

People with severe visual impairment usually don't read web pages; they use hearing instead. The software that does this is called a screen reader (screen reader). The software provides a quick way to access a given text content. Among the various technologies used, they provide an overview of the document by reading the title, allowing users to quickly find the information they need. If the title is not available, the user will be forced to hear the entire document read aloud.

Using CSS to style content, or using JavaScript to do something interesting, you need to contain elements of related content, so CSS / JavaScript can effectively locate it.

This is the answer to the question about the basic Chinese document of HTML and the structure of the website. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

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