【HTML】Beginner1:TagsAttributesElements

HTML(Hypertext Text Mark-up Language)&(How To Make L)
HTML is used for   meaning  and CSS is used for   presentation
Learn from htmldog
 
1.Tags
opening tag:kicks things off 
content
closing tag
 
<!DOCTYPE html>
document type declaration
let the browser know which flavor of HTML you're using(HTML5,in this case)
 
</html>
tell the browser an HTML document
 
</head>
 
</title>
 
</body>
the main conten of the document that will appear in the browser window
 
<br>
a line break
 
<hr>
horizontal rule
 
 
2.Attributes
    Tags have attributes ,which are extra bits of information
    Attributes appear inside the opening tag and their values sit inside quotation marks 
<tag attribute="value">Margarine</tag>
 
3.Elements
    Tags tend not to do much more than mark the beginning and end of an element
    Elements are the bits that make up web pages.Everyting that is in between(and includes)the <body>and</body>tags is the body element.

你可能感兴趣的:(attribute)