Rookie learning html

1HTML is not a programming language, but a markup language 
2 only <body> area will be displayed in the browser. 
3 <! DOCTYPE> declaration helps the browser to display the page correctly. doctype declaration is not case-sensitive 
4 attributes always appear in the form of name / value, such as: name = "value". 
Attribute values should always be included in quotation marks. 
5 <! - This is a comment -> 
all consecutive blank lines 6HTML code (line) is also shown as a blank. 
7 Using the target attribute, you can define the linked document is displayed where. If you target property is set to "_blank", the link will open in a new window. 
For example: <a href="https://www.runoob.com/" target="_blank"> access rookie tutorial </a>! 
8 <Link> tag defines the relationship between documents and external resources. <link> tag is generally used to link to the stylesheet
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css"> </head>

9 <style> element you can also add styles directly to render HTML document
10 <meta> tag provides metadata. Metadata is not displayed on the page, but will be parsed by the browser.

Refresh the current page every 30 seconds: <Meta HTTP-equiv = " Refresh " Content = " 30 " >

11 <script> tag is used to load a script file, such as: JavaScript.

12 HTML <title> element can not only display text, logo, etc. can be displayed on the left image. Display, to <link> tag into the <head> li.

  

<head> 
<Link the rel = " Shortcut icon " the href = " Image URL " > 
<title> This is a picture with a tag </ title> 
</ head>

 

Guess you like

Origin www.cnblogs.com/testzcy/p/11370092.html