Home  >  Article  >  Web Front-end  >  XHTML introductory learning tutorial: XHTML common tags_HTML/Xhtml_web page production

XHTML introductory learning tutorial: XHTML common tags_HTML/Xhtml_web page production

WBOY
WBOYOriginal
2016-05-16 16:44:311675browse

Just like an article, our webpage also needs clear paragraphs and titles with different levels of importance. This section will introduce the commonly used tags in XHTML to implement functions such as titles and paragraphs.. Title tags

to


defines the title. We can use tags from

to

. Their corresponding termination tags are
to respectively, where the font sizes from

to

decrease in order. The importance also gradually decreased. The browser will automatically add a blank line above and below the title. Paragraph tag


Define paragraphs using

and

. The content between

and

will be recognized as a paragraph, which is similar to what we usually call a "natural paragraph". Similar to headings, browsers add a line of whitespace before and after the beginning of a paragraph. Line break tag
(
)
When we want to start another line of text but don’t want to start another natural paragraph, we can use the
tag. The
tag is also an empty tag and needs to be added with a "/" to comply with XHTML requirements. Horizontal dividing line tag
(
)
The tag that implements the horizontal dividing line is
. Like the
tag,
is also an empty tag. In order to comply with the rules of XHTML, a "/" needs to be added. (The following is a dividing line)
Comment
Proper use of the four tags introduced above can make users browsing your webpage feel that the hierarchy of the webpage is clear, and comments can make you feel that the hierarchy is clear when reading the source code of your webpage, so as not to be confused. Things between are the content of the annotation, and they will not be displayed on the web page. See how we insert comments in the exercise example below. Practice examples
Now open the web page we saved in the previous section and practice several important tags learned in this section. Remove "This is my first webpage." in and enter the following:

Service Announcement




I now provide the following services to primary school students and parents across the country:


Services for students



Ghostwriting for winter and summer vacation homework (there is no guarantee that there will be no wrong questions in mathematics, and there is no guarantee that there will be no typos in Chinese. For English homework, please find someone else)

If you help bully students below fourth grade, you will be charged extra for special cases.

Parents will help pretend to be parents.


VIP Service


Anyone who purchases all three services will be automatically upgraded to VIP. We will create a personal homepage for you for free, fully compliant with W3C's XHTML standard and ISO2009~.



Save the changes and browse the webpage to confirm that your webpage is the same as this page and you are done.
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