First, what is HTML(Hyper Text Markup Language)
1, is a markup language , with a set of label tags to describe the Web page, in addition to text can also have pictures, video, audio, animation effects and other content;
2. The basic format is:
<HTML>
<head > head Tags: put some control stuff </head>
<body> body tag, put visible content </body>
</HTML>
3. HTML tags are made up of keywords surrounded by angle brackets, usually appearing in pairs, such as <p></p>;
4. HTML documents are also referred to as Web pages, and the role ofWeb browsers is to read HTML documents and display them as Web pages. The browser does not display HTML tags, but instead uses tags to interpret the contents of the page;
5. Some common HTML tags and formats:
hyperlink : <a href= "http://www.cnblogs.com/" target= "_blank" > What to do with hyperlinks </a>
Note that:<a> is a label , and href and target are properties of the tag.
The yellow section is the URL of the page or other site you want to point to. Set the target property of the link to "_blank" and the link opens in a new window .
Image Hyperlink : <a href= "http://www.cnblogs.com/" >
</a>
Note that: is an image label , which is an empty tag, that is, it contains only attributes and does not have a closed label;
SRC refers to the source attribute, where the value is the URL address of the image (where the image is stored);
ALT replaces the Text property . Defines a set of prepared, replaceable text for an image that tells the user what information they have lost when the browser fails to load the image. The browser will now display this alternative text instead of the image.
HTML Hypertext Markup Language (i)