HTML two (basic tag)_html/css_WEB-ITnose
1. Title
HTML title (Heading) is defined through tags such as
- .
<!--标题--><h1>标题 1</h1><h2>标题 2</h2><h3>标题 3</h3><h4>标题 4</h4><h5>标题 5</h5><h6>标题 6</h6><!--段落--><p>请仅仅把标题标签用于标题文本。不要仅仅为了产生粗体文本而使用它们。请使用其它标签或 CSS 代替。</p>
Results:
Title 1Title 2
Title 3
Title 4
Title 5 Title 62. Paragraph
HTML paragraph is defined through the
tag.
<p>这是段落。</p><p>这是段落。</p><p>这是段落。</p><p>段落元素由 p 标签定义。</p>
Result:
This is the paragraph.
This is the paragraph.
This is the paragraph.
Paragraph elements are defined by the p tag.
<!--多行段落和段落中有空格--><p>这个段落在源代码中包含许多行但是浏览器忽略了它们。</p><p>这个段落在源代码 中包含 许多行但是 浏览器忽略了 它们。</p><p>段落的行数依赖于浏览器窗口的大小。如果调节浏览器窗口的大小,将改变段落中的行数。</p>
Result:
This paragraph contains many lines in the source code but the browser ignores them.
This paragraph contains many lines in the source code but the browser ignores them.
The number of lines in a paragraph depends on the size of the browser window. If you resize the browser window, the number of lines in the paragraph will change.
<h1>春晓</h1><p> 春眠不觉晓, 处处闻啼鸟。 夜来风雨声, 花落知多少。</p><p>注意,浏览器忽略了源代码中的排版(省略了多余的空格和换行)。</p>
Result:
Spring DawnSpring sleep without waking up, I can hear the singing of birds everywhere. The sound of wind and rain comes at night, and you know how many flowers have fallen.
Note that browsers ignore typography in source code (extraneous spaces and line breaks are omitted).
3. Links
HTML links are defined through the tag.
<a href="http://www.163.com">这是一个连接</a>
Result: This is a link
<!--在新的浏览器窗口打开链接 target值设置为_blank--><a href="http://www.163.com" target="_blank">这是一个连,在新窗口中打开</a>
3.1, anchor link
within the same page The connection jumps from one location to another
Create anchor
Connection Anchor
<a href="#a4">连接到a4</a><a name="a4">a4</a>
4. Image
HTML images are defined through the tag.
<img src="图像路径" />

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The official account web page update cache, this thing is simple and simple, and it is complicated enough to drink a pot of it. You worked hard to update the official account article, but the user still opened the old version. Who can bear the taste? In this article, let’s take a look at the twists and turns behind this and how to solve this problem gracefully. After reading it, you can easily deal with various caching problems, allowing your users to always experience the freshest content. Let’s talk about the basics first. To put it bluntly, in order to improve access speed, the browser or server stores some static resources (such as pictures, CSS, JS) or page content. Next time you access it, you can directly retrieve it from the cache without having to download it again, and it is naturally fast. But this thing is also a double-edged sword. The new version is online,

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

This article demonstrates efficient PNG border addition to webpages using CSS. It argues that CSS offers superior performance compared to JavaScript or libraries, detailing how to adjust border width, style, and color for subtle or prominent effect

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

This article explains the HTML5 <time> element for semantic date/time representation. It emphasizes the importance of the datetime attribute for machine readability (ISO 8601 format) alongside human-readable text, boosting accessibilit

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex
