Into to HTML

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Markup Language

A markup language is a computer language that defines the structure and presentation of raw text

Head

The <head> element contains the metadata for a web page.

<html></html>

The <html> element will contain all of your HTML code

Tags

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

<title></title>

You can add a title to your web page by using the <title> element, inside of the head.

Elements

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

<body></body>

Code for visible HTML content is placed inside of the <body> element

HTML

HTML stands for HyperText Markup Language and is used to create the structure and content of a webpage.

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.

How to include a comment into your code

Comments are written in HTML using the following syntax: <!-- comment -->

HyperText

HyperText is text displayed on a computer or device that provides access to other text through links, also known as "hyperlinks."

<head></head>

Information about the web page, like the title, belongs within the <head> of the page

Document Type Declaration

The <!DOCTYPE html> declaration should always be the first line of code in your HTML files

Opening Tag

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

Body

The <body> tag defines the document's body. The <body> element contains all the contents of an HTML document, such as text, hyperlinks, images, tables, lists, etc.

Browser

A webpage's title appears in a browser's tab

Metadata

Metadata is information about the page that isn't displayed directly on the web page.

Self-Closing Elements

Single-closing tags cannot enclose raw text or other elements

Whitespace

Whitespace between HTML elements helps make code easier to read while not changing how elements appear in the browser

<br /> *explain why there isn't a closing tag

The line break element <br /> is one example of a self-closing tag. You can use it anywhere within your HTML code. The result is a line break in the browser.

<p></p>

The HTML <p> element represents a paragraph of text.

Indentation

Indentation also helps make code easier to read. It makes parent-child relationships visible


Set pelajaran terkait

U.S. MAJOR EVENTS TIME LINE by YEAR #1~ School of Dad IVA

View Set

L12-HOMOLOGOUS RECOMBINATION AT THE MOLECULAR LEVEL

View Set

BUSI 601 Cost Accounting Chapter 1 notes

View Set

ACCTG 101 - Chapter 8 - Smart learning

View Set

Knapp Microbio Exam 1 Practice Questions

View Set

Spanish: Transport: Bus and rail

View Set

Chapter 58: Professional Roles and Leadership

View Set