Shared Flashcard Set


html tag description basic1
html tag description
Computer Science

Additional Computer Science Flashcards




Comment; what is it? why use it? code?
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-->)


 document type

(   <!DOCTYPE>  )


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"
<title>Title of the document</title>

The content of the document......

</html>  )





(<a> )

an anchor


(<a href="">Visit!</a>)


<a href="">Visit!</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






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!