Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 1.71 KB

list_refac.md

File metadata and controls

39 lines (32 loc) · 1.71 KB

On our li tags we've added the attribute called class.

The thing on the right side of the = sign is what the tag's "class name" is.

While we might have multiple instances of a class member (many songs) there's only one description paragraph. HTML with an id attributes have to be unique. Because we used the name description here we can't use it anywhere else in the document.

Talking Like an HTML Author

Now that you are an HTML author, we're going to show some some sentences that will help you gain comfort with the vocab that HTML authors say to one another.

The goal is to help you gain an intuition about talking about writing HTML. You're not expected to memorize these phrases. Each phrase is a statement which HTML authors might use to express what's going on in this experience we just created.

  • The HTML file my_list.html is called the "HTML file" or the source text
  • Inthe HTML file, content and markup exist together and are visible in our text editor
  • When HTML source text (or, HTML source) is viewed by a browser, it becomes rendered text
  • The viewing tab is now showing a rendered view of our HTML source text
  • The HTML elements ("the angle brackets") that define the markup are used to lay out the page while our content is displayed or "rendered"
  • The HTML elements ("the angle brackets") are removed because their function is to format the content, not be the content itself
  • Our viewing tab shows the rendered text (or, render) of our HTML source text
  • In the viewing tab we can view the source text that it rendered At this point we've worked with HTML some and have learned four very important terms used by HTML authors.