HTML Notes (ii)

Source: Internet
Author: User
Tags closing tag html comment html notes

* The start tag is often referred to as the start tag (opening tag), and the end tag is often called a closed tag (closing tag).

HTML tags are not case sensitive:<p> is equivalent to <p>. It is recommended to use lowercase tags.

1, the HTML title (Heading) is defined by the tag. such as:<H1> This is a title </H1>

<P> to define the .      such as: <p> This is a paragraph. </p>

<A> . The address of the link in the   href attribute specify   <a href= " url " link text </a>    such as: <a href = "http://www.runoob.com "> This is a link </a>

4, HTML images are tagged to define .    such as: <img Src= "/images/logo.png " width= "258" height= "39" />

5 . HTML elements with no content are called empty elements. The empty element is closed in the Start tab. <br> is the empty element without closing the label (the<br> tag defines a newline).

6. HTML horizontal lines tags create horizontal lines in the HTML page.   The HR element can be used to delimit content. such as:<p> This is a paragraph. </P> <hr>

7. The HTML comment Comment is as follows: Example <!-- This is a comment --

8. HTML wrapping If you want to wrap (a new line) without creating a new paragraph, use the <br/> tag: <p> this <br> paragraph <BR> demonstrates the effect of the branch </P>

9. HTML text formatting tags

Define bold font:<b> Define emphasis characters:<em> define italic:<i> define small words:< ;small> definition of aggravating tone:<strong>

Define subscript:<sub> define superscript:<sup> define Insert Word:<ins> define Delete word: <del>

HTML "Computer Output" tab

Define computer code:<code> define keyboard code:<kbd> Define computer code sample:<samp> define variable:<var&        gt; Define pre-formatted text:<pre>

HTML citations, references, and label definitions

Definition abbreviation:<abbr> define address:<address> define Text direction:<bdo> define long references:& Lt;blockquote> defining short References:<q>

Define references, citation:<cite> define a definition project:<def>

10. HTML Link-target property opens the document in a new window: <a href="http://www.runoob.com/" Target="_blank"> Access rookie Tutorial! </a>

HTML Link-id attribute

To insert an ID in an HTML document:

<a id= "Tips" > Useful tips section </a>

Create a link to the Useful Tips section (id= tips) in an HTML document:

<a href= "#tips" > Access useful tips section </a>

Alternatively, create a link from another page to the "Helpful Tips section (id=" Tips ")":

<a href= "Http://www.runoob.com/html/html-links.html#tips" > Access Useful tips Section </a>

HTML Notes (ii)

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.