This section lists some simple HTML examples to help you get to know HTML tags more emotionally. Aren't you familiar with some of the labels? Don't worry, the next few chapters will be explained in detail, first run a few examples to see the effect.
HTML Document Related tags
All HTML documents must be in <! DOCTYPE Html> declaration begins.
The HTML document starts with
All visible areas in the HTML are placed between <body></body>.
HTML Document Instance
<!DOCTYPE HTML><HTML><Body><H1>I'm Heading 1.</H1><P>I'm a paragraph.</P></Body></HTML>
HTML title
The HTML title is represented by the
HTML Header Instance
< H1 > I was Heading 1</H1><H2> I was heading 2</ h2><h3> I'm heading 3</h3 >
HTML Paragraph
HTML paragraphs are represented by <p> tags.
HTML paragraph instances
< P > I was paragraph </p><p> I was another paragraph </ p>
HTML hyperlinks
Hyperlinks in HTML are represented by <a> tags.
HTML Hyperlink Instance
<href= "http://www.w3uu.com"> go to W3 leisurely learning </ a >
In the example above, the href is the attribute of the <a> tag, and the href attribute defines the URL of the hyperlink jump. Later in the study we will see that each tag has attributes. With attributes, the label will behave more powerful and richer.
HTML images
Images in HTML are represented by tags.
The tag has four important attributes: src (picture path), Alt (text substituted when the image fails), Width (image width), height (image height).
HTML Image Instance
<src= "/static/img/qrcode.jpg" alt= "w3uu.com" width = " the" Height = " the" >
Original link: www.w3uu.com/intro/base/html-basic.html
HTML Base Instance