HTML Learning Journey (a)-My first HTML script

Source: Internet
Author: User
Tags set background

Recently very willful quit, and then busy at home, do not want to go to the interview, do not want to go out waves. So, is idle bored, learn to develop knowledge, feel very fun. Written here, one can hope to help those who like me want to learn a bit of development knowledge of the cheese, and secondly, I hope that with this platform to record their growth. Below, let me go into the world of HTML with me!

The first thing to know is what you need to learn about HTML.

1, Browser: 1) Opera browser, 2) IE browser, 3) Firefox browser, 4) Google Browser,

2. Development tools: notepad++ or Windows comes with Notepad

In fact, learning HTML needs to use very few things. If you are the same as me, is a lazy, you actually do not have any software to prepare. You can use the text notepad that comes with Windows, ie browser. If you want to write a script, it's easier, more or more awesome. Then you go to download a notepad++ bar, this software directly Baidu a bit, all the way next, done!

Then understand what HTML can do, after all, we learn it, always need to know what it is capable of.

1, you can set the format of the text, such as: title, font size, text color, paragraph;

2. You can create a list

3, can insert images and media

4. Form can be established

5, hyperlinks, you can use the mouse to click on hyperlinks to achieve jumps between pages (now it seems that the most useful is the most used is this, no one)

Then learn the basic structure of HTML:

1,

2,

3, <title> content </title>, the title of the page, usually we open a browser, access to a website, displayed in the top left of the browser, the row of small print is, as shown:

4, <body> content </body>, this is the main part of HTML, except the framework of other things will be written in the face;

5, <meta> content </meta>, this must be placed in the

OK, so let's learn a few more common tags, and we can write the first HTML script:

1. BgColor Set background color

2. Text Setting color

3, Link set the color of links (before the Click)

4, ALink set the color of the link when clicked (when clicked)

5, Vlink set the color of the link that has been visited (after click)

Let's get started! First hit a title to see the effect, code such as, and then save the file in. html format, open a browser, drag the file in the browser.

Then write the body content, let the browser output a word: My first HTML script. After saving, refresh the Web page.

Absolutely right, nice!. We did not learn to set the background color, set the color of the text, set the color of the link (before the click), set the color of the link when clicked (when clicked), set the color of the link that has been visited (after clicking)? Shall we all try it on? Background color Choose light blue color, text color using yellow, no clicked link is blue, is clicked Red, has been clicked Green. If you want to use a different color, the word will not be written, no matter, the author will attach to here:

Http://www.divcss5.com/html/h636.shtml, here are basically all the colors of the code, copied in can be;

Then let's look at the results together!

Absolutely right, ah haha, the first HTML script is done, it's fun, right?

HTML Learning Journey (a)-My first HTML script

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.