Home Web Front-end HTML Tutorial Similar HTML tags: strong and em, q, cite, blockquote_HTML/Xhtml_Web page production

Similar HTML tags: strong and em, q, cite, blockquote_HTML/Xhtml_Web page production

May 16, 2016 pm 04:43 PM
effect content Quote Label mark resemblance


There are some tags in XHTML tags that have similar functions. Of course, similarity here refers to semantic similarity, so many people don’t know how to use these similar tags. So today’s topic is to decompose similar tags and clarify the functions of each tag. use. We have already talked about the difference between strong and em before. In addition to strong and em, there are also some similar tags such as q and cite
There are some tags in XHTML tags that have similar functions. Of course, similarity here refers to semantic similarity, so many people don’t know how to use these similar tags. So today’s topic is to break down similar tags and make it clear The purpose of each label. We have already talked about the difference between strong and em before. In addition to strong and em, there are some similar tags such as q, cite, and blockquote. These three all belong to the category of references, but there are still some differences here. Let’s explain them one by one first.
, the function of q is to quote non-block elements, that is, to quote content that cannot form a paragraph. It may be a sentence said by someone, or it may be a document excerpt, etc. The characteristics are obvious here. "One sentence". And q itself does not generate paragraphs. q itself does not have any style, and general browsers will not set a default style for it to make it stand out. But we can use CSS to distinguish it from general content. There is another attribute in the q tag that is very important, and that is cite. In this cite attribute value, it is mainly to indicate where the quoted content comes from, or to give the online address.
This time the content will let you know more about the details in the paragraph
Be especially careful not to write q instead of p, as these two tags are easy to make mistakes.
In fact, I have already talked about cite in the previous article. In that article, I wrote "This tag only indicates the title and name of the document. This tag is somewhat similar to the references at the back of our books. The content of the table of contents is also a bit like a footnote. "So what is the difference between him and q? In fact, it is easy to understand, q is to display the content, and cite is to display the name of the person who said this content or the title of the book. Cite and q are often used together. for example:
Mr. Lu Xun said: Originally there were no roads on the ground, but as more people walked, there were roads . View more html markup content on this site.
So what is the difference between blockquote and them? A blockquote is a block quote, and XHTML allows it to contain any tag. The q and cite above are not so inclusive. The use of blockquote is used when one or more paragraphs of content need to be quoted. Browsers generally indent the quoted content by default to distinguish it from normal paragraphs. Of course we can change the form of distinction through CSS styles.
There is a cite attribute in blockquote, which, like q, is used to indicate the source of the citation. You can indicate the URL of the online documentation in it.
There is also a pre tag in the XHTML tag. This tag is called "formatting" in Dreamweaver. When I used Dreamweaver in the past, I never knew what this thing was used for. It’s only now clear that pre is usually used to display source code, and does not support tags that can separate paragraphs, such as

. If you need to wrap the displayed content, you only need to wrap the line in the source file. No code is required to implement it. . At the same time, pre will retain all the spaces in the note and display them.
Generally speaking, pre is currently used to display source code, which is similar to code. The difference is that pre is block-level, while code is inline. Simply put, pre can include multiple lines of content, while code only contains a short sentence or a few characters.
What is described here cannot be fully explained, so you need to try it out after reading the document and discover the special features by yourself. A friend said that he would like to see some knowledge about CSS. Here I want to convey my writing intention. I hope to go step by step so that some friends who have not yet escaped from the table layout can first use some forms that will not affect the overall layout. Because there may be compatibility issues when CSS is involved, I will talk about documentation first, and then add some CSS knowledge that does not affect the overall layout. Going deeper step by step will eventually allow readers to naturally transition from table layout to standard power. Of course, if there are friends who have completed this step through self-study, they can communicate with me in my "Miscellaneous Talk Standards" column.

Statement of this Website
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

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)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to mark minesweeper? -How to change the difficulty of Minesweeper? How to mark minesweeper? -How to change the difficulty of Minesweeper? Mar 18, 2024 pm 06:34 PM

How to mark minesweeper? First, we need to familiarize ourselves with the marking method in Minesweeper. Normally, there are two common marking methods in Minesweeper games: flag marking and question mark marking. The flag mark is used to indicate that there are mines in the block and is a deterministic mark; while the question mark mark indicates that there may be mines in the block, but it is not deterministic. These two marking methods play an important role in the game, helping players to infer which blocks may contain mines, so as to effectively proceed to the next step. Proficient use of these marking methods can improve the player's success rate in the minesweeper game and reduce the risk of stepping on mines. Therefore, when playing the minesweeper game, if the player has mastered the flag mark and question mark mark, when the player is not sure whether there is a mine in a certain square, he can use the question mark mark to mark it.

How to change the Microsoft Edge browser to open with 360 navigation - How to change the opening with 360 navigation How to change the Microsoft Edge browser to open with 360 navigation - How to change the opening with 360 navigation Mar 04, 2024 pm 01:50 PM

How to change the page that opens the Microsoft Edge browser to 360 navigation? It is actually very simple, so now I will share with you the method of changing the page that opens the Microsoft Edge browser to 360 navigation. Friends in need can take a look. I hope Can help everyone. Open the Microsoft Edge browser. We see a page like the one below. Click the three-dot icon in the upper right corner. Click "Settings." Click "On startup" in the left column of the settings page. Click on the three points shown in the picture in the right column (do not click "Open New Tab"), then click Edit and change the URL to "0" (or other meaningless numbers). Then click "Save". Next, select "

How to mark multiple locations on Baidu Maps How to mark multiple locations How to mark multiple locations on Baidu Maps How to mark multiple locations Mar 15, 2024 pm 04:28 PM

There are many functions above, especially for maps that can mark multiple places. When we know some places, we will definitely use some punctuation functions, so that we can bring you a variety of different aspects. Some of the functions you mark will produce distance differences, that is, you can know how far away they are. Of course, some names and detailed information of the above places will also be displayed. However, many netizens may not be familiar with some of the above. The content information is not very clear, so in order to allow everyone to make better choices in various aspects, today the editor will bring you some choices in various aspects, so friends who are interested in ideas, If you are also interested, come and give it a try. Standard

Analysis of the function and principle of nohup Analysis of the function and principle of nohup Mar 25, 2024 pm 03:24 PM

Analysis of the role and principle of nohup In Unix and Unix-like operating systems, nohup is a commonly used command that is used to run commands in the background. Even if the user exits the current session or closes the terminal window, the command can still continue to be executed. In this article, we will analyze the function and principle of the nohup command in detail. 1. The role of nohup: Running commands in the background: Through the nohup command, we can let long-running commands continue to execute in the background without being affected by the user exiting the terminal session. This needs to be run

Understand the role and usage of Linux DTS Understand the role and usage of Linux DTS Mar 01, 2024 am 10:42 AM

Understand the role and usage of LinuxDTS In the development of embedded Linux systems, Device Tree (DeviceTree, DTS for short) is a data structure that describes hardware devices and their connection relationships and attributes in the system. The device tree enables the Linux kernel to run flexibly on different hardware platforms without modifying the kernel. In this article, the function and usage of LinuxDTS will be introduced, and specific code examples will be provided to help readers better understand. 1. The role of device tree device tree

Explore the importance and role of define function in PHP Explore the importance and role of define function in PHP Mar 19, 2024 pm 12:12 PM

The importance and role of the define function in PHP 1. Basic introduction to the define function In PHP, the define function is a key function used to define constants. Constants will not change their values ​​during the running of the program. Constants defined using the define function can be accessed throughout the script and are global. 2. The syntax of define function The basic syntax of define function is as follows: define("constant name","constant value&qu

How to set up Cheat Engine in Chinese? Cheat Engine setting Chinese method How to set up Cheat Engine in Chinese? Cheat Engine setting Chinese method Mar 13, 2024 pm 04:49 PM

CheatEngine is a game editor that can edit and modify the game's memory. However, its default language is non-Chinese, which is inconvenient for many friends. So how to set Chinese in CheatEngine? Today, the editor will give you a detailed introduction to how to set up Chinese in CheatEngine. I hope it can help you. Setting method one: 1. Double-click to open the software and click "edit" in the upper left corner. 2. Then click “settings” in the option list below. 3. In the opened window interface, click "languages" in the left column

Where to set the download button in Microsoft Edge - How to set the download button in Microsoft Edge Where to set the download button in Microsoft Edge - How to set the download button in Microsoft Edge Mar 06, 2024 am 11:49 AM

Do you know where to set the download button to display in Microsoft Edge? Below, the editor will bring you the method to set the download button to display in Microsoft Edge. I hope it will be helpful to you. Let’s follow the editor to learn it! Step 1: First open Microsoft Edge Browser, click the [...] logo in the upper right corner, as shown in the figure below. Step 2: Then click [Settings] in the pop-up menu, as shown in the figure below. Step 3: Then click [Appearance] on the left side of the interface, as shown in the figure below. Step 4: Finally, click the button on the right side of [Show Download Button] and it will change from gray to blue, as shown in the figure below. The above is where the editor brings you how to set up the download button in Microsoft Edge.

See all articles