In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is a detailed introduction to "What is the role of HTML tags". The content is detailed, the steps are clear, and the details are properly handled. I hope this article "What is the role of HTML tags" can help you solve your doubts. Let's go deeper and learn new knowledge together with the ideas of Xiaobian.
CSS style is presentation. It's like a Web jacket. For example, the title font, color changes, or add background images, borders, etc. to the title. All of these things that are used to change the appearance of content are called presentations.
JavaScript is used to implement special effects on web pages. For example: mouse over pop-up drop-down menu. Or mouse over the table background color changes. There is also rotation of news focus (news pictures). It can be understood that animation and interaction are generally implemented in JavaScript.
Fixed structure of HTML
An HTML file has its own fixed structure.
…
…
Code explanation:
Called the root tag, all web tags are in the middle.
The tag is used to define the header of the document, which is the container for all header elements.
The header elements have labels such as,,,, etc. The header labels are described in detail in the next section.
The content between and tags is the main content of the web page, such as,
、、
Web content tags, etc., where the content in the tag will be displayed in the browser.
2. The role of labels
The header of the document describes various attributes and information of the document, including the title of the document. Most document headers contain data that is not actually displayed to the reader as content.
The following tags can be used in the head section:
…
…
…
3. Labels
The text between and tags is the title information of the page, which appears in the title bar of the browser. The title tag of a web page is used. Webpage creation learning exchange group, 49406, 4934.
In order to tell users and search engines what the main content of this page is, search engines can quickly determine the topic of the page by the title of the page. The content of each page is different, and each page should have a unique
A title without two.
For example:
hello world
The content of the tag "hello world" appears in the title bar of the browser,
4. Use of labels
When we learn how to make web pages, we often hear a word, semantically. So what is called semantic, said the popular point is: understand the purpose of each tag (under what circumstances it is reasonable to use this tag), for example, the title of the article on the web page can use the title tag, the column name of each column on the web page can also use the title tag.
The text of the passage must be placed in the paragraph tag. If there is text that you want to emphasize in the passage, you can make
Use em labels for emphasis, etc.
So much for semantics, but what benefits can semantics bring us?
It is easier to be included in search engines.
②。Make it easier for screen readers to read web content.
Wechat public platform: web design self-learning platform
Time limit! Free Dreamweaver, js and other front-end tutorials
If you want to reprint, please indicate the source of the article and the source URL:
HTML Examples
Rookie tutorial (runoob.com) My first title
My first paragraph.
Introduction to HTML
Case analysis
DOCTYPE declares document types
Located in tags with descriptions of document types
Located in tabs with content for visualization pages
Located on label with use as a title
the label
with
displayed as a paragraph
Introduction to HTML
What is HTML?
HTML is a language used to describe web pages.
HTML stands for Hypertext Markup Language.
HTML is not a programming language, but a markup language.
A markup language is a set of markup tags.
HTML uses markup tags to describe web pages
HTML documents contain HTML tags and text content
HTML documents are also called web pages.
Introduction to HTML
HTML tags
HTML tags are often referred to as HTML tags.
HTML tags are keywords surrounded by angle brackets, such as
HTML tags usually appear in pairs, such as and
The first label in a label pair is the start label and the second label is the end label
Start and end labels are also known as open labels and closed labels
content
HTML elements
"HTML tag" and "HTML element" usually both describe the same meaning.
But strictly speaking, an HTML element contains both a start tag and an end tag, as in the following example:
HTML elements:
This is a paragraph.
Web browser
Web browsers (such as Google Chrome, Internet Explorer, Firefox, Safari) are used to read HTML files and display them as web pages.
Browsers do not display HTML tags directly, but tags can be used to determine how the content of HTML pages is presented to users:
Introduction to HTML
HTML page structure
Here is a visual HTML page structure:
page title
This is a title.
This is a paragraph.
This is another paragraph.
Introduction to HTML
HTML version
Since the early days of the Web, there have been many versions of HTML:
version
release time
HTML
1991
HTML+
1993
HTML 2.0
1995
HTML 3.2
1997
HTML 4.01
1999
XHTML 1.0
2000
HTML5
2012
XHTML5
2013
statement
Declarations help to display web pages correctly in browsers.
There are many different files on the web, and if you can declare the HTML version correctly, the browser will display the content correctly.
doctype declaration is case-insensitive and can be used in the following ways:
general statement
HTML5
HTML 4.01
XHTML 1.0
View full page Statement Type DOCTYPE Reference Manual.
Introduction to HTML
Chinese code
At present, in most browsers, direct output of Chinese will result in Chinese garbled characters. In this case, we need to declare the characters as UTF-8 in the header.
HTML Examples
Page Title My First Title
My first paragraph.
If you want to reprint, please indicate the source of the article and the source URL:
Hypertext Markup Language (HTML) is a markup language used to make web pages, which does not need to be compiled and can be interpreted and executed directly by browsers. More vividly, HTML is the "native language" of browsers. HTML is mainly responsible for information presentation in web page design, independent of various operating system platforms, and can inform browsers to display content. HTML has been used as the Internet's information presentation language since the 1990s to describe the formatting of web pages and link information to other web pages on the Internet.
HTML Introduction
With respect to hypertext markup language, it has the following meanings:
Hyper: Relative to linear. Previous computer programs ran essentially linearly, that is, when a computer program finished executing a command, it moved to the next line, and when that line ended, it moved down, and so on. HTML, however, is different; it can jump anywhere at any time. For example, a program can jump from line 1 to line 8, then to line 5, or even to another program to execute.
Text: The word itself, meaning it is self-explanatory.
Markup: refers to how text is processed. Text is marked in a manner similar to bolding text in a text editing program, or making a line of text a title or list item.
Language: HTML is a language that uses many English words.
Read here, this article "HTML tags have what role" article has been introduced, want to master the knowledge of this article also need to practice before you can understand, if you want to know more related content of the article, welcome to pay attention to the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.