HTML overview, html Overview

Source: Internet
Author: User

HTML overview, html Overview
HTML structure <! DOCTYPE html> must be located at the beginning to tell the browser page type.

Text description webpage between
The The following labels are available in the head section: <base>, <link>, <meta>, <script>, <style>, and <title>.
The following statement is used for jump in 5 seconds.
<Meta http-equiv = "Refresh" content = "5; url = http://www.w3school.com.cn"/>

The text between <body> and </body> is visible on the page.
Text between common labels The title is
The text between <p> and </p> is displayed as a paragraph
There is a large gap between paragraphs.

The text between <a> and </a> is displayed as a link.
<A> adding the style = "text-decoration: none" attribute to the tag can leave the link ununderlined.
<A href = "http://baidu.com" target = "_ blank"> click my new window to Baidu </a>
Other values of target include _ self: itself _ top: top framework _ parent: parent framework.

<Hr/> Create a horizontal line for the tag on the HTML page to separate the content.
<Br/> line feed
When the browser displays HTML, it will omit unnecessary blank characters (such as spaces or carriage return) in the source code ). Use & nbsp; as a placeholder space.


Note: <! -- This is a comment -->

 

Tag attributes
<Div class = "class1" id = "id1">

When you save an HTML file, you can use either. htm or. html extension. There is no difference between the two.

The HTML image is defined by the label.
Common formats include GIF and JPEG.

Audio

<Audio src = "song.ogg" controls = "controls"> This text cannot be displayed. </audio>
The content inserted between <audio> and </audio> is displayed by browsers that do not support the audio element.
Autoplay = "autoplay" indicates automatic playback when a webpage is loaded. Controls = "controls" indicates that controls such as pause and mute are displayed.


HTML editing language Overview

We recommend that you start from scratch. I feel like you want to start running without learning it.

Briefly describe the basic structure of the "HTML" document?

<Html>
<Head>
<Title> title </title>
<Head>
<Body> place element here </body>
</Html>

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.