Introduction to HTML_PowerNode Java Academy

Introduction to HTML_PowerNode Java Academy

What is HTML?

HTML is a language used to describe web pages. HTML refers to Hyper Text Markup Language, which is a markup language. A markup language is a set of markup tags. HTML uses markup tags to describe web pages.

What is hypertext?

The real power of markup languages ​​lies in their ability to collect documents, combine them into a complete repository, and link the repository with other document collections in the world. In this way, readers can not only fully control the display of the document on the screen, but also control the order in which they browse information through hyperlinks. That's the "HT" in HTML and XHTML - hypertext, and it's what holds the entire Web together.

What is a hyperlink?

A hyperlink, or anchor as it is called in the standard, is marked with the <a> tag and can be expressed in two ways.
One type of anchor creates a hotspot in the document that, when activated or selected (usually with a mouse) by the user, causes the browser to follow the link. The browser automatically loads and displays a portion of the same or other documents, or triggers certain actions related to Internet services, such as sending an e-mail or downloading a special file.

Another type of anchor creates a marker in the document that can be referenced by a hyperlink.
Both types of anchors use the same label; perhaps that's why they have the same name. But we find it easier to understand the two types of anchors if you distinguish them and think of the anchors that provide hotspots and hyperlink addresses as "links" and the anchors that mark the target part of the document as "anchors".

What are HTML tags?

HTML markup tags are often referred to as HTML tags. HTML tags are keywords enclosed in angle brackets, such as <html>. HTML tags usually appear in pairs, such as <b> and </b>. The first tag in the tag pair is the start tag and the second tag is the end tag. The start and end tags are also called opening and closing tags.

What is an HTML document?

An HTML document contains HTML tags and plain text. An HTML document is also called a web page.
The role of a web browser is to read HTML documents and display them in the form of web pages. Browsers do not display HTML tags; instead, they use the tags to interpret the content of the page.

.htm or .html file extension?

When you save an HTML file, you can use either the .htm or .html file extension. Because many software in the past (such as DOS) only allowed three-letter file extensions, today there is no problem using .html.

Features of HTML:

HTML is a loose language that is not case sensitive. Although double tags are required to appear in pairs, it will not report an error if they do not appear in a pair; it will not report an error if a single tag is not closed; it will not report an error if single quotes, double quotes, or no quotes are used in attributes. But in order to be more standardized, we generally strictly enforce the following rules:

  • Double tags appear in pairs (<font>123</font>)
  • Single tags must be closed (<img src="/image/bj.jpg" />)
  • Tag names and attribute names should be lowercase
  • The code hierarchy is clear, with indentation, line breaks, and blank lines

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

<<:  Docker deployment nginx implementation process graphic and text detailed explanation

>>:  MySQL 8.0.22 installation and configuration method graphic tutorial under Windows 10

Recommend

Should I use UTF-8 or GB2312 encoding when building a website?

Often when we open foreign websites, garbled char...

How to use regular expression query in MySql

Regular expressions are often used to search and ...

Sample code using vue-router in html

Introducing vue and vue-router <script src=&qu...

UrlRewriter caching issues and a series of related explorations

When developing a website function, the session c...

Solution to incomplete text display in el-tree

Table of contents Method 1: The simplest way to s...

Detailed explanation of MySQL sql_mode query and setting

1. Execute SQL to view select @@session.sql_mode;...

Detailed explanation of efficient MySQL paging

Preface Usually, a "paging" strategy is...

How to set PATH environment variable in Linux system (3 methods)

1. In Windows system, many software installations...

Detailed installation process of Jenkins on Linux

Table of contents 1. Install JDK 2. Install Jenki...

MySQL database operation and maintenance data recovery method

The previous three articles introduced common bac...

Teach you to create custom hooks in react

1. What are custom hooks Logic reuse Simply put, ...