Section 1

Preview this deck

HTML Paragraphs

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

2 years ago

Date created

Mar 1, 2020

Cards (32)

Section 1

(32 cards)

HTML Paragraphs

Front

The HTML <p> element defines a paragraph. Example: <p>This is a paragraph</p> <p>This is another paragraph</p> HTML <br> element defines a line break. Use <br> if you want a line break (a new line) without starting a new paragraph: Example: <p>This is<br>a para<br>graph with line breaks</p> The <br> element is an empty HTML element. It has no end tag. http://www.w3schools.com/html/html_paragraphs.asp

Back

apostrophe (in HTML)

Front

&#39;

Back

HTML Attributes

Front

Back

text between <head> and </head>

Front

provides information about the document

Back

text between <html> and </html>

Front

describes an HTML document

Back

HTML <br> element

Front

defines a line break. Use <br> if you want a line break (a new line) without starting a new paragraph: The <br> element is an empty HTML element. It has no end tag.

Back

HTML images

Front

W3Schools.com LOGO should be displayed here but it isn't because I do pay extra <!DOCTYPE html> <html> <body> <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142"> </body> </html>

Back

The lang Attribute

Front

<html lang="en-US">

Back

HTML Horizontal Rules

Front

The <hr> tag creates a horizontal line in an HTML page. The hr element can be used to separate content

Back

text between <title> and </title>

Front

provides a title for the document

Back

HTML links

Front

<!DOCTYPE html> <html> <body> <a href="http://www.w3schools.com">This is a link</a> </body> </html>

Back

HTML <head> Element

Front

The HTML <head> element has nothing to do with HTML headings. The HTML <head> element contains meta data. Meta data are not displayed. The HTML <head> element is placed between the <html> tag and the <body> tag

Back

HTML Elements

Front

HTML documents are made up by HTML elements. HTML elements are written with a start tag, with an end tag, with the content in between: <tagname>content</tagname> The HTML element is everything from the start tag to the end tag: <p>My first HTML paragraph.</p> Some HTML elements do not have an end tag.

Back

HTML <meta> element

Front

HTML <meta> element is also meta data. It can be used to define the character set

Back

The text between <body> and </body>

Front

describes the visible page content

Back

HTML Attributes

Front

Attributes provide additional information about HTML elements. HTML elements can have attributes Attributes provide additional information about an element Attributes are always specified in the start tag Attributes come in name/value pairs like: name="value"

Back

HTML headings

Front

<!DOCTYPE html> <html> <body> <h1>This is heading 1</h1> <h2>This is heading 2</h2> <h3>This is heading 3</h3> <h4>This is heading 4</h4> <h5>This is heading 5</h5> <h6>This is heading 6</h6> </body> </html>

Back

HTML images <img>

Front

are defined with the <img> tag. The source file (src), alternative text (alt), and size (width and height) are provided as attributes: <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">

Back

HTML paragraphs

Front

<!DOCTYPE html> <html> <body> <p>This is a paragraph.</p> <p>This is a paragraph.</p> <p>This is a paragraph.</p> </body> </html>

Back

The title Attribute

Front

HTML paragraphs are defined with the <p> tag. In this example, the <p> element has a title attribute. The value of the attribute is "About W3Schools":

Back

DOCTYPE

Front

this declaration defines the document type to be HTML

Back

Syntax Basics HTML document (visible part of the HTML document is between "<body> and </body>")

Front

<!DOCTYPE html> type declaration <html> <body> <h1> </h1> <p> <br> &#39; (for apostrophe) <img src=.....> <a href =HTML links are defined with the <a> tag>The link's destination is specified in the href attribute</a> </p> <body> </html> UTF-8 is the preferred encoding for HTML files. ANSI encoding covers US and Western European characters only

Back

Chapter Summary

Front

All HTML elements can have attributes The HTML title attribute provides additional "tool-tip" information The HTML href attribute provides address information for links The HTML width and height attributes provide size information for images The HTML alt attribute provides text for screen readers At W3Schools we always use lowercase HTML attribute names At W3Schools we always quote attributes with double quotes

Back

markup language

Front

is a set of markup tags

Back

HTML document

Front

<!DOCTYPE html> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html>

Back

The text between <h1> and </h1>

Front

describes a heading

Back

HTML <title> Element

Front

HTML <title> element is meta data. It defines the HTML document's title. The title will not be displayed in the document, but might be displayed in the browser tab.

Back

HTML

Front

Hyper Text Markup Language is a markup language for describing web documents (web pages HTML is described by HTML tags Each HTML tag describes different document content

Back

Nested HTML Elements

Front

HTML elements can be nested (elements can contain elements). All HTML documents consist of nested HTML elements. This example contains 4 HTML elements:

Back

Empty HTML Elements

Front

HTML elements with no content are called empty elements. <br> is an empty element without a closing tag (the <br> tag defines a line break). Empty elements can be "closed" in the opening tag like this: <br />. HTML5 does not require empty elements to be closed. But if you want stricter validation, or you need to make your document readable by XML parsers, you should close all HTML elements.

Back

The text between <p> and </p>

Front

describes a paragraph

Back

webpage basic syntax

Front

<!DOCTYPE html> <html> <h1> </h1> <p> </p> </html>

Back