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

Don't forget to close the HTML tag

Building web pages that comply with Web standards ...

About browser compatibility issues encountered and solutions (recommended)

Preface: Last Sunday, a senior asked me to help m...

Detailed Example of MySQL curdate() Function

MySQL CURDATE Function Introduction If used in a ...

MySql COALESCE function usage code example

COALESCE is a function that refers to each parame...

JavaScript - Using slots in Vue: slot

Table of contents Using slots in Vue: slot Scoped...

A complete list of commonly used MySQL functions (classified and summarized)

1. Mathematical Functions ABS(x) returns the abso...

Detailed explanation of JavaScript's Set data structure

Table of contents 1. What is Set 2. Set Construct...

Summary and examples of vue3 component communication methods

The communication modes of vue3 components are as...

JavaScript setTimeout and setTimeinterval use cases explained

Both methods can be used to execute a piece of ja...

How to optimize MySQL group by statement

In MySQL, create a new table with three fields, i...