In this lesson you'll gain:

  • What is HTML?
  • Intro to HTML Tags

看到這裡 HTML Attribute

Quiz

  • 哪些 elements 是 inline element?

HTML Documents

  • doctype
  • html, head, body

Review

First, recall the two main topics covered in this lesson.

  1. Overview of the Internet: You were shown the big-picture view of how the internet works and were introduced to terms likeservers,browsers,the internet, andHTTP.

  2. Introduction to HTML: You were introduced to HTML tags (like<b>,<p>, and<em>) and saw how even though these tags aren't visible to users of a web page, they still carry meaning thatismeaningful to web browsers.

What to take away from this lesson.

The five most important things to take from this lesson are the following:

1 - What a Web Page is

A web page is a text document written in a language called HTML. Web browsers read these documents, and then interpret and display them.

2 - How Coding Works

Coding happens when programmers write text in a language that a computer can understand. The computer can then follow the instructions the programmer wrote. For example, the computer might do this by making text like this:

I'm <b>learning</b> to code!

look like this:

I'm learning to code!

3 - Computers are Stupid

Programmers need to write exactly the way a computer understands (also known as writing with correct "syntax").

For example, if you forget to close a<b>tag, the computer won't be able to figure out what you had intended to make bold. This "stupidity" can be very frustrating, but it also gives programmers incredible power: if you know how to talk to a computer than you can tell it to do anything you want.

4 - Programmers Can't Remember Everything

There are too many details to keep everything in your head. And that's okay. If you forget how to make text italic in HTML, you can always just look it up.

5 - Basic HTML Vocabulary

You will be using HTML in the next few lessons, so it will be helpful if you're comfortable with the jargon.

  • Tag: An HTML tag is always contained within angled brackets. Most tags have an opening tag (<p>for example) and a closing tag, (</p>). Some tags (called "void" tags) do not require a closing tag (like the<br>tag).

  • Element: An HTML element refers to everything within a set of opening and closing tags.

Attribute: This is a property of an HTML element. For example, to set the href attribute of an anchor tag to the Udacity URL, you would write<a href="www.udacity.com">

results matching ""

    No results matching ""