html-Learning Notes (text formatting, referencing, computer code)

Source: Internet
Author: User

HTML can define a number of elements for formatting output, such as bold and italic characters.

<b> Define Bold fonts

< P > This is a section <b> bold font </b> defined by Tags </  p>

<big> define large font, corresponding <small> define small font

 <  p  >  this is a <  big  >  large font </ big  >  define </ p  >  <  p  >  this is a <  small  >  small font </ small  >  defines </ by small tags p  >  

<em> definition accent <strong> define aggravating tone

< Strong > This text was strong</strong><em>This text is emphasized</em>

The <pre> pre tag controls blank lines and spaces. It's not always possible to use spaces in HTML, but if the spaces are included in the <pre> tab, you can keep the spaces you want in the document.

< Pre > This is a pre-formatted text. It retains the      space and line breaks.  </pre>

<i> Define Italic characters

<sub> Set the label word

<sup> defining superscript words

<ins> Define Insert Text

<del> define Delete words

Reference tags in html

There are two reference tags in HTML: Short references <p> and long references <blockquote>

The HTML <q> element defines a short reference.
Browsers typically surround quotes for <q> elements.

The HTML <blockquote> element defines the referenced section.
The browser typically indents the <blockquote> elements.

This is a long reference:<blockquote>This is a long reference. This is a long reference. This is a long reference. This is a long reference. This is a long reference. This is a long reference. This is a long reference. This is a long reference. This is a long reference. This is a long reference. This is a long reference. </blockquote>This is a short quote:<Q>This is a short reference. </Q><P>with the BLOCKQUOTE element, the browser inserts line breaks and margins, and the Q element does not have any special rendering. </P>

Abbreviations and acronyms

<abbr> is abbreviated label,<acronym> is an acronym

<abbrtitle= "Etcetera">etc.</abbr><BR/><acronymtitle= "World Wide Web">Www</acronym><P>In some browsers, the title can be used to show the full version of the expression when you move the mouse over the thumbnail word.</P><P>Valid only for acronym elements in IE 5.</P><P>Valid for both the ABBR and acronym elements in Netscape 6.2.</P>

HTML <kbd> element definition keyboard Input:

< P > To open a file, select:</p><p><kbd > File | Open ... </ KBD ></ P >

HTML <samp> element definition Computer Output Example:

< Samp > demo.example.com login:apr 09:10:17linux 2.6.10-grsec+gg3+e+fhs6b+nfs+gr0501+++p3+c4a+gr2b-reslog-v6.189  </samp>

The tags introduced today are all inline elements, which are in HTML text if you don't apply line-wrapping labels <br/> or let them act as block-level elements

element content, they are not going to wrap.

html-Learning Notes (text formatting, referencing, computer code)

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.