HTML Basic Introduction

Source: Internet
Author: User

HTML as a file suffix, you can make the file into a Web page, can be opened by the browser;
Actually, HTML is a programming language, called Hypertext Markup Language;

The role of HTML is to make Web pages;

Hypertext: More than the text has a picture

Format:


<body></body>--Role:

DW Introduction: General code, split, design.

Create Web page: File--New--Create

Properties of the body:
Background color and background image in body <body bgcolor= ""/background= "></body>
TopMargin: Top margin
BottomMargin: Bottom Margin
LeftMargin: Left Margin
RightMargin: Right page margin


Text:
Base style, 6 kinds: bold, italic, underline, color, size, font
One, bold, tilt, underline
<b><i><u>hello world</b></i></u>


Second, color, size, font
<font color= "read" face= "Blackbody" size= "7" > World Hello <font>

Third, line-wrapping
<br/>
Four, space
Design Interface Ctrl+shift+space
V. Paragraphs
<p> content </p> The spacing between the top and bottom of the paragraph is large
Six, center
<center></center>
Seven, a single row of labels
<div></div>
Viii. How much space is used by default
<span></span>


Content container Tags:
1. 2. <div> Content </div> Layer label (default line, layout)
3. <span> Content </span> layer tag (to find content)
4. Ordered list
<ol>
<li> content </li>
<li> content </li>
</ol>
Unordered list
<ul>
<li> content </li>
<li> content </li>
</ul>

Insert Picture

title= "picture-hidden content"


Hypertext links
Super Link:
1. Add hyperlinks to Text
Code writing Format:
<a href= "connected to" > User-visible content </a>

"Note: Connect to the address must write the full address!"
If the page you want to connect to is in a folder, write the address and write the folder name "
2. Add hyperlinks to Images
Code writing Format:
<a href= "connected to address" ></a>
3. Add Plug and Play connection to text and pictures
Code writing Format:
<a href= "connected to" > User-visible content </a>
How do I open a connected page in a new window?
Code writing format: <a href= "connected to address" target= "_blank" > User visible Content </a>

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

  

HTML Basic Introduction

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.