HTML Base Instance

Source: Internet
Author: User
Tags html header

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.