This section introduces how text formats and special characters are implemented in XHTML.
text format tag
We used the tag once in the previous tutorial, which made the content contained within it bold. For example, "Rookie Bar" will be displayed as Rookie Bar. We call this tag that defines the way text is displayed called a text format tag (text style tag...). Similar to the bold tag , there are italic tags and emphasis tags . We recommend that you use CSS to define the style of web pages instead of XHTML tags like . The purpose of introducing these tags here is to prevent you from being confused when reading the source code of other people's web pages.
Special characters (character entities)
"" are special characters in XHTML because they are used to identify tags, and the "" in tags will not appear on the page. So what should we do if we want the browser to display these special characters? At this time, we can use character entities, such as the less than sign "Open the "index.html" file created previously with Notepad. Make the following modifications to the source file (red text prompt), save it and see the difference before and after. Please confirm that your web page is the same as this page.
Ghostwriting for winter and summer vacation homework (MathematicsNoGuarantee that there are no wrong questions, Chinese language does not guarantee that there will be no mistakes) Typo, find someone else for your English homework)
Help bullyFourth gradebelow Students, Special items are subject to additional fees.
Parents will helpPretend to be a parent.
Let’s practice using character entities. Open the previously saved "index.html" and enter the following code before the
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