Shared Flashcard Set

Details

html tag description basic1
html tag description
4
Computer Science
Professional
01/23/2009

Additional Computer Science Flashcards

 


 

Cards

Term
Comment; what is it? why use it? code?
Definition
used to insert a comment in the source code. A comment will be ignored by the browser. You can use comments to explain your code, which can help you when you edit the source code at a later date. You can also store program-specific information inside comments. In this case they will not be visible for the user, but they are still available to the program. A good practice is to comment the text inside scripts and style elements to prevent older browsers, that do not support scripting or styles, from showing it as plain text.

This is a paragraph.

(<!--bla bla-->)

Term

 document type

(   <!DOCTYPE>  )

Definition

Definition and Usage

The doctype declaration should be the very first thing in an HTML document, before the <html> tag.

The doctype declaration is not an HTML tag; it is an instruction to the web browser about what version of the markup language the page is written in.

The doctype declaration refers to a Document Type Definition (DTD). The DTD specifies the rules for the markup language, so that the browsers can render the content correctly.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Title of the document</title>
</head>

<body>
The content of the document......
</body>

</html>  )

 

 

Term

 

(<a> )

an anchor

Definition

(<a href="http://www.w3schools.com">Visit W3Schools.com!</a>)

 

<a href="http://www.w3schools.com">Visit W3Schools.com!</a>

Try it yourself!  (more examples at the bottom of this page)


Definition and Usage

The <a> tag defines an anchor. An anchor can be used in two ways:

  1. To create a link to another document, by using the href attribute
  2. To create a bookmark inside a document, by using the name attribute

The a element is usually referred to as a link or a hyperlink.

The most important attribute of the a element is the href attribute, which indicates the link’s destination.

By default, links will appear as follows in all browsers:

  • An unvisited link is underlined and blue
  • A visited link is underlined and purple
  • An active link is underlined and red

 

Term

<abbr>

abbreviation

Definition

The <abbr title="World Health Organization">WHO</abbr> was founded in 1948.

Try it yourself!


Definition and Usage

The <abbr> tag describes an abbreviated phrase.

By marking up abbreviations you can give useful information to browsers, spellcheckers, screen readers, translation systems and search-engines.

Supporting users have an ad free experience!