HTML Basics and general tags

Source: Internet
Author: User

HTML content Hyper Text Markup Language Hypertext Markup Language (contains text, tables, pictures, sounds, videos, etc., as well as Documents)

HTML element refers to all code from the start tag (start Tag) to the end tag (end tag)

CSS page Beautification

JavaScript scripting language (control for foreground display)

DreamWeaver composition

" -//W3C//DTD XHTML 1.0 transitional//en " " HTTP://WWW.W3.ORG/TR/XHTML1/DTD/XHTML1-TRANSITIONAL.DTD ">"http://www.w3.org/1999/xhtml">"content-type " content="text/html; Charset=utf-8" /><title>html Basic and General label </title>

Basic composition: (html, head, body are in pairs Appear)

Control information on the page

<title> page label (label Title) </title>

Page display content

<body>

</body>

Body property: (body divided into foreground layer, background Layer two Layer)

<!--annotation content--comment

Background background image

bgcolor background color (background image and background color cannot be used at the same time)

Text text color

TopMargin top margin (bottommargin bottom margin liftmargin left margin rightmargin right Margin)

General Label:

<br/> or <br> line break, shortcut key: shift+enter

&nbsp; space, Shortcut Key: Ctrl+shift+space

<font color= "" face= "" size= "" > Text content </font> Text property control, color color, face font, size sizes (size has -1--6,+1-+6, current size plus minus, and 1-6 Sizes)

<b></b> with <strong></strong> Bold

<i></i> with <em></em> tilt

<u></u> Underline

<center></center> Center (default: If there are other content before and after the execution, the line is wrapped and centered to ensure that the content is on its own line)

Content Container Tags:

Characteristics: 1, The importance of descending, 2, according to the size of the text in the region, add or subtract a few dimensions; 3, automatic line, The default: if there are other content, before and after the execution of the line, and empty open a line;

<p></p> paragraph labels (blank lines between Paragraphs) default: if there are other content, before and after the execution of the line, and open a line, to ensure that they are a whole;

<div></div> Layer label Default: start with one line, the other content is automatically wrapped;

<span></span> Layer label Default: How much space to occupy how much space, after the content does not wrap;

<ol type= "n" > ordered list, sequence number starting with n, +1, or a B C ... Can also;

<li> content </li> self-numbering, numbering cannot be selected

<li> Content </li> Line Wrapping

......

</ol> OL to UL is an unordered list, no serial number

“.. /"indicates The parent directory

"./" indicates the current directory

Relative path: find from current page

Absolute Path: Search from the root of the Site. "/" represents the root of the site

<! DOCTYPE HTML Public"-//W3C//DTD XHTML 1.0 transitional//en" "HTTP://WWW.W3.ORG/TR/XHTML1/DTD/XHTML1-TRANSITIONAL.DTD">"http://www.w3.org/1999/xhtml">"Content-type"Content="text/html; Charset=utf-8"/><title>html Basic and General label </title>"#00FF66"text="#FF0000"topmargin=" -"><font color="#000000"Face="new song body, italics"Size="4">html Basic and General label </font><br/><b> font Bold Way one </b><br/><strong> font bold two </strong ><br/><i> font tilt mode one </i><br/><em> font tilt mode two </em><br/><u> font underline < /u><br/><br/><b><i><u> code in <> "br/" for true line breaks, shortcut keys for shift+enter</u></ I></b><br/>Space shortcut key is shift+ctrl+ Space <br/><br/>H1-h6<br/>1234<p> paragraph labels, wrap lines before and after line, not default first line indent </p>1234<br/><br/>1234<div style="background: #00F"> Layer labels, Default to the entire line, front and back line </div>1234<br/>1234<span style="background: #FF0"> tag, How much you use </span>12345<br/><br/>ol have sequence table<br/><ol type="1"><li> with serial number, serial number is not selected </li><li> wrap </li><li> default: ol before and after the line wrap and keep a line blank line </li></ol >OL for UL is an unordered list</body>

HTML Basics and general tags

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.