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>