HTML basic Tag Self-understanding

Source: Internet
Author: User

HTML5 class notes Comprehension 2

Last time I forgot to say the HTML5 writing format to Add comments before <! DOCTYPE html> Tell the computer this is a HTML5 document .

This is a title tag that is displayed in the upper left corner of the body of the page. The number in the label represents the minimum size of the font to 5 . HTML automatically adds a blank line before or after a title tag. This title tag can also be added to the aling property to adjust the left, right, and middle.

Various formatting text labels

<b></b>: define bold characters

<strong></strong>: Defining the aggravating tone

<big></big>: Define large text

<em></em>: Define text-focused

<i></i>: Defining italic characters

<small></small>: Define small words

<sub></sub>: defining subscript words

<sup></sup>: defining superscript words

<del></del>: Define Delete words

<u></u>: Defining underscores

It's important to say superscript and subscript. What type of font is the subscript word, for example:h2,H2O,P2O. Superscript words, for example:X2,Y3Y.

How to write:

English digital <sub> Digital english </sub> Digital English This is the notation of subscript

English digital <sup> Digital english </sup> Digital English This is the notation of subscript

Hyperlink Related tags

<a href= "The URL you want to link to"> This is the character that the hyperlink shows up </a>

The way to open the URL is to open the link in the current browser window and have network support

There are three property values after "url you want to link to" target="_blank" opens a new browser window to open the link;target=" _self"opens the link in the current browser; target="_top"is used in the frame, Open connections shown in the top-level frame.

You can also add title="" This property will appear when the mouse moves to the hyperlink displayed by the character.

Anchor Point

<a href= "# Anchor name " > Jump stroke name </a>

<a name="# anchor name " > Set the location of the jump anchor to go to the name of the site </a>

The names of the above two anchor points should be the same, otherwise they will not succeed. There is also one of the most common return top anchor points <a name= "" id= "" ></a>,<a href= "#" ></a> these two.

. file Format "/>

Situation

HTML file location

Picture location

Writing

Same directory

F:/html/01.html

F:/html/01.jpg


Next Level Directory

F:/html/01.html

F:/html/images/01.jpg

Previous level Directory

F:/html/01.html

F:/01.jpg

Different directories on the same level

F:/html/01.html

F:/images/01.jpg

The properties and property values of the picture width="width size",height="Height size". First of all, the next time to add and incorrect questions to correct the place.

HTML basic Tag Self-understanding

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.