HTML-aug9

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

<br>

Tag for a line break (enter)}

<a>

Tag for a link\

<ol>

Tag for a list with a certain order\

<p>

Tag for a paragraph\

<td>

Tag for a single table cell\

<tr>

Tag for a table row\

<li>

Tag for an element in a list\

<img>

Tag for an image\

<ul>

Tag for an unordered list\

<strong>

Tag for bold text\

<meta>

Tag for extra information\

<script>

Tag for inserting Javacripts\

<table>

Tag for inserting table\

<em>

Tag for italic text\

<title>

Tag for the page's title\

<span>

Tag to edit inline elements\

<style>

Tag to embed CSS into HTML\

<!DOCTYPE>

Tag to identify the type of document\

<link>

Tag to link to an external file\

HTML elements with no content are called

<br> is an empty element without a closing tag (the <br> tag defines a line break). Tip: In XHTML, all elements must be closed. Adding a slash inside the start tag, like <br />, is the proper way of closing empty elements in XHTML (and XML).

HTML Headings & paragraphs

<h1>This is a heading</h1> <h2>This is a heading</h2> <h3>This is a heading</h3> <p>This is a paragraph.</p> <p>This is another paragraph.</p>

36) What is a marquee?

A marquee allows you to put a scrolling text in a web page. To do this, place whatever text you want to appear scrolling within the <marquee> and </marquee> tags.

HTML Elements An HTML element is

An HTML element is everything from the start tag to the end tag: Start tag * Element content End tag * <p> This is a paragraph </p> <a href="default.htm"> This is a link </a> <br>

element syntax

An HTML element starts with a start tag / opening tag An HTML element ends with an end tag / closing tag The element content is everything between the start and the end tag Some HTML elements have empty content Empty elements are closed in the start tag Most HTML elements can have attributes

name 4 attributes that can be used on any element

Attribute Description 1. class Specifies one or more classnames for an element (refers to a class in a style sheet) 2. id Specifies a unique id for an element. 3. style Specifies an inline CSS style. 4. title Specifies extra information about an element (displayed as a tool tip). more info: HTML Global Attributes Reference.

<html>

Contains all the HTML in a page\

<body>

Contains all the content of a page\

<head>

Contains most of the unseen information\

How do you insert a comment in HTML

HTML comments begin with "<!-" and ends with "->" begins angle bracket exclamation point dash ends with dash then angle bracket. Write it out!

html attributes , explain

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"

HTML Images

HTML images are defined with the <img> tag. Example <img src="w3schools.jpg" width="104" height="142"> Note: The filename and the size of the image are provided as attributes.

HTML Links

HTML links are defined with the <a> tag r anchor tag. Note: The link address is specified in the href attribute.

why use lowercase tags

HTML tags are not case sensitive: <P> means the same as <p>. Many web sites use uppercase HTML tags. W3Schools use lowercase tags because the World Wide Web Consortium (W3C) recommends lowercase in HTML 4, and demands lowercase tags in XHTML.

What is image map? see w3 scools.com

Image map lets you link to many different web pages using a single image. You can define shapes in images that you want to make part of an image mapping.

Does a hyperlink apply to text only?

No, hyperlinks can be used on text as well as images. That means you can convert an image into a link that will allow user to link to another page when clicked. Just surround the image within the <a href=" ">...</a> tag combinations.

3) Do all HTML tags come in pairs?

No, there are single HTML tags that does not need a closing tag. Examples are the <img> tag and <br> tags.

) Can a single text link point to two different web pages?

No. The <a> tag can accept only a single href attribute, and it can point to only a single web page.

37) Are <br> tags the only way to separate sections of text?

No. The <br> tag is only one way to separate lines of text. Other tags, like the <p> tag and <blockquote> tag, also separate sections of text. also div tags

<b>

Tag (obsolete) for bold text\

<i>

Tag (obsolete) for italic text\

\outl0\strokewidth0 \strokec2 <div>

Tag for a box\

28) How do you create a link that will connect to another web page when clicked

To create hyperlinks, or links that connect to another web page, use the <a> tag. and href attribute. The general format for this is: <a href="site">text</a> Replace "site" with the actual page url that is supposed to be linked to when the text is clicked.

html vs xhtml

Web pages are written in HTML. vs Extended version of HTML that is stricter and XML-based.

html attribute quotes.

always qoute attribute values. Double style quotes are the most common, but single style quotes are also allowed. Tip: In rare situations, when the attribute value itself contains quotes, it is necessary to use single quotes: name='John "ShotGun" Nelson'

What code is used to insert a copyright symbol on a web page?

need to type &copy or &#169 in an HTML file to insert the copyright symbol

9) Can attribute values be set to anything or are there specific values that they accept?

some attribute values can be set to only predefined values. Other attributes can accept any numerical value that represents the number of pixels for a size

HTML Elements can they be nested?

yes <!DOCTYPE html> <html> <body> <p>This is my first paragraph.</p> </body> </html>


Ensembles d'études connexes

Accounting, Finance & Valuation (Chapter 2)

View Set

Topic Review Guide: Gene Regulation

View Set

Chapter 1: What is multimedia? - Quiz 1

View Set

Chapter 21 Assignment Question Set Eco 252

View Set

Chapter 7 - Strict Liability and Product Liability

View Set

3000 most common words in spoken english - second 1000 words

View Set