HTML

¡Supera tus tareas y exámenes ahora con Quizwiz!

<span>

<span>s contain short pieces of text or other HTML. They are primarily used to wrap small pieces of content that are on the same line as other content and do not break text into different sections.

Closing tag

The second HTML tag used to end an HTML element. Closing tags have a forward slash (/) inside of them, directly after the left angle bracket.

target

The target attribute specifies that a link should open in a new window. For a link to open in a new window, the target attribute requires a value of _blank. The target attribute can be added directly to the opening tag of the anchor element, just like the href attribute.

HTML element (or simply, element)

A unit of content in an HTML document formed by HTML tags and the text or media it contains.

<a> href

Called anchor element. adds links to other web pages. href = hyperlink reference

<!-- -->

Comments begin with <!-- and end with -->. Any characters in between will be ignored by your browser.

HTML Stucture

HTML documents are organized as a collection of parent-child relationships. When an element is contained inside another element, it is considered the child of that element. The child element is said to be nested inside of the parent element. <body> <p>Paragraph</p> </body> In the example above, the <p> element is nested inside the <body> element. The <p> element is considered a child of the <body> element, the parent.

HTML

HTML stands for HyperText Markup Language. In HTML, the computer can interpret raw text that is wrapped in HTML elements. These elements are often nested inside one another, with each containing information about the type and structure of the information to be displayed in the browser. HyperText is text displayed on a computer or device that provides access to other text through links, also known as "hyperlinks."

Chapter 2 Review

Headings and sub-headings, <h1> to <h6> tags, are used to enlarge text. <p>, <span> and <div> tags specify text or blocks. The <em> and <strong> tags are used to emphasize text. Line breaks are created with the <br> tag. Ordered lists (<ol>) are numbered and unordered lists (<ul>) are bulleted. Images (<img>) and videos (<video>) can be added by linking to an existing source. Anchor tags (<a>) are used to link to internal pages, external pages or content on the same page. You can create sections on a webpage and jump to them using <a> tags and addings ids to the elements you wish to jump to. The nav element contains links to internal pages or content.

<ul> <li>

In HTML, you can use an unordered list tag (<ul>) to create a list of items in no particular order. An unordered list outlines individual list items with a bullet point. The <ul> element cannot hold raw text and cannot automatically format raw text into an unordered list of items. Individual list items must be added to the unordered list using the <li> tag. The <li> or list item tag is used to describe an item in a list.

Lesson 1 Review

Let's review what you've learned so far: HTML stands for HyperText Markup Language and is used to create the structure and content of a webpage. Most HTML elements contain opening and closing tags with raw text or other HTML tags between them. Single-closing tags cannot enclose raw text or other elements. Comments are written in HTML using the following syntax: <!-- comment -->. HTML elements can be nested inside other elements. The enclosed element is the child of the enclosing parent element. Whitespace between HTML elements helps make code easier to read while not changing how elements appear in the browser. Indentation also helps make code easier to read. It makes parent-child relationships visible. The <!DOCTYPE html> declaration should always be the first line of code in your HTML files. The <html> element will contain all of your HTML code. Information about the web page, like the title, belongs within the <head> of the page. You can add a title to your web page by using the <title> element, inside of the head. A webpage's title appears in a browser's tab. Code for visible HTML content is placed inside of the <body> element.

<br />

Self-closing elements contain all the information the browser needs to render the element inside a single tag. Also, because they are single tags, they cannot wrap around raw text or other elements. <br /> is a line break element

<div>

The <div> tag is nothing more than a container unit that encapsulates other page elements and divides the HTML document into sections. <div>s can contain any text or other HTML elements. They are primarily used to divide HTML documents into sections.

<em> <strong>

The <em> tag will generally render as italic emphasis. The <strong> will generally render as bold emphasis.

<p> </p>

The <p> tag defines a paragraph.

Lesson 3 Review

The <table> element creates a table. The <tr> element adds rows to a table. To add data to a row, you can use the <td> element. Table headings clarify the meaning of data. Headings are added with the <th> element. Table data can span columns using the colspan attribute. Table data can span rows using the rowspan attribute. Tables can be split into three main sections: a head, a body, and a footer. A table's head is created with the <thead> element. A table's body is created with the <tbody> element. A table's footer is created with the <tfoot> element. All the CSS properties you learned about in this course can be applied to tables and their data.

HTML Tag

The element name, surrounded by an opening (<) and closing (>) angle bracket.

Opening tag

The first HTML tag used to start an HTML element. The tag type is surrounded by opening and closing angle brackets.

Element content

The information (text or other elements) contained between the opening and closing tags of an HTML element.

<!DOCTYPE html> <html> </html>

document type declaration This tells the browser what type of document to expect. All HTML code needs to start with type of deceleration. Anything between the opening <html> and closing </html> tags will be interpreted as HTML code.

HTML elements

https://developer.mozilla.org/en-US/docs/Web/HTML/Element


Conjuntos de estudio relacionados

Challenge and Change, Grade 12, Exam

View Set

32: Fluids, Electrolytes, and Acid-Base

View Set

APUSH Time Period 4: Chapters 11-17

View Set

Pulmonary/Respiratory Assessment

View Set

Information Literacy Chapter 4 (From the Book).

View Set

CH. 1 - American Government and Civic Engagement

View Set

TBI - Moderate and severe traumatic brain injury

View Set

Prepare: Worksheet 12.2: Acceptance

View Set