search
HomeWeb Front-endHTML TutorialDetailed introduction to article title tags in HTML

Detailed introduction to article title tags in HTML

Jun 24, 2017 pm 02:06 PM
htmlBaseletterLabeltitle

Yesterday I talked about my first web page, and today I will continue to take you in-depth. Don’t use coding tools for early learning! That way there will be less opportunities for in-depth understanding!

1. Everyone knows that articles will have various titles, and web pages are similar to articles and have elements specifically for writing titles.

##  (1),

Title one is also the largest title. It is best to have only one on a page to highlight the importance;

 (2)、

Title 2

 (3)、

< ;h3> Title Three

 (4)、

Title Four (5)、

Title Five (6),

Title Six is ​​also the smallest, and also The last one does not have 7, 8, 9......

Code block

<html>
     <head>
	<title>标题</title>
     </head>
     <body>	<h1 id="我是标题一">我是标题一</h1><h2 id="我是标题二">我是标题二</h2><h3 id="我是标题三">我是标题三</h3><h4 id="我是标题四">我是标题四</h4><h5 id="我是标题五">我是标题五</h5><h6 id="我是标题六">我是标题六</h6> </body>
</html>

Effect

2. Article

TitleIs it time to finish the paragraph? In fact, I saw the paragraph tag yesterday, if you saw it.

(1),

This is the paragraph tag, also known as the p tag.

Code

<html>
     <head>
	<title>标题和段落</title>
     </head>
     <body>	<h1 id="我是标题">我是标题</h1><p>我是段落</p> </body>
</html>

Effect

3. Let me introduce the text tags in paragraphs, which are used to add various effects

to the text.  (1), Both of these are text italics

 (2),< ;/b> Both of these are bold and highlighted text

 (3), Text reduction

(4), Text amplification

(5), strike> These three strikethrough lines (generally appear in the price area, when comparing the original price and the current price, there will be a line in the middle of the original price, which is how to realize that line)

 (6), < ;/u> Text underline,

[Note]:

Just wrap the text you want to change and it’s OK! , these are just some commonly used ones and there are many more. They are all used in the same way. Just check them out when the time comes.

Code

<html>
     <head>
	<title>文字标签</title>
     </head>
     <body>
	<h1 id="我是标题">我是标题</h1>
	<p>我是<em>斜体1</em> 我是<i>斜体2</i></p>
	<p>我是<b>加粗1</b> 我是<strong>加粗2</strong></p>	
	<p>我是<small>缩小文字</small></p>
	<p>我是<big>放大文字</big></p>
	<p>我是<s>删除线1</s> 我是<del>删除线2</del> 我是<strike>删除线3</strike></p>
	<p>我是<u>文字下划线</u></p>
     </body>
</html>

Effect

 

Next time I will tell you about the hyperlinks between web pages, which are jumps, and the introduction of images into web pages. Because it involves absolute paths and relative paths, it is not easy to understand for beginners. I will sort it out and explain it clearly to everyone.

Also welcome your comments because I just started blogging, so there must be a lot of bad things. I hope you can give me more opinions.

The above is the detailed content of Detailed introduction to article title tags in HTML. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
The Role of HTML: Structuring Web ContentThe Role of HTML: Structuring Web ContentApr 11, 2025 am 12:12 AM

The role of HTML is to define the structure and content of a web page through tags and attributes. 1. HTML organizes content through tags such as , making it easy to read and understand. 2. Use semantic tags such as, etc. to enhance accessibility and SEO. 3. Optimizing HTML code can improve web page loading speed and user experience.

HTML and Code: A Closer Look at the TerminologyHTML and Code: A Closer Look at the TerminologyApr 10, 2025 am 09:28 AM

HTMLisaspecifictypeofcodefocusedonstructuringwebcontent,while"code"broadlyincludeslanguageslikeJavaScriptandPythonforfunctionality.1)HTMLdefineswebpagestructureusingtags.2)"Code"encompassesawiderrangeoflanguagesforlogicandinteract

HTML, CSS, and JavaScript: Essential Tools for Web DevelopersHTML, CSS, and JavaScript: Essential Tools for Web DevelopersApr 09, 2025 am 12:12 AM

HTML, CSS and JavaScript are the three pillars of web development. 1. HTML defines the web page structure and uses tags such as, etc. 2. CSS controls the web page style, using selectors and attributes such as color, font-size, etc. 3. JavaScript realizes dynamic effects and interaction, through event monitoring and DOM operations.

The Roles of HTML, CSS, and JavaScript: Core ResponsibilitiesThe Roles of HTML, CSS, and JavaScript: Core ResponsibilitiesApr 08, 2025 pm 07:05 PM

HTML defines the web structure, CSS is responsible for style and layout, and JavaScript gives dynamic interaction. The three perform their duties in web development and jointly build a colorful website.

Is HTML easy to learn for beginners?Is HTML easy to learn for beginners?Apr 07, 2025 am 12:11 AM

HTML is suitable for beginners because it is simple and easy to learn and can quickly see results. 1) The learning curve of HTML is smooth and easy to get started. 2) Just master the basic tags to start creating web pages. 3) High flexibility and can be used in combination with CSS and JavaScript. 4) Rich learning resources and modern tools support the learning process.

What is an example of a starting tag in HTML?What is an example of a starting tag in HTML?Apr 06, 2025 am 12:04 AM

AnexampleofastartingtaginHTMLis,whichbeginsaparagraph.StartingtagsareessentialinHTMLastheyinitiateelements,definetheirtypes,andarecrucialforstructuringwebpagesandconstructingtheDOM.

How to use CSS's Flexbox layout to achieve centering alignment of dotted line segmentation effect in menu?How to use CSS's Flexbox layout to achieve centering alignment of dotted line segmentation effect in menu?Apr 05, 2025 pm 01:24 PM

How to design the dotted line segmentation effect in the menu? When designing menus, it is usually not difficult to align left and right between the dish name and price, but how about the dotted line or point in the middle...

What HTML elements does the online code editor use to implement code input?What HTML elements does the online code editor use to implement code input?Apr 05, 2025 pm 01:21 PM

HTML Element Analysis in Web Code Editor Many online code editors allow users to enter HTML, CSS, and JavaScript code. Recently, someone proposed...

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools