|
Created by Kimberly Jordan
over 3 years ago
|
|
Question | Answer |
<!DOCTYPE> tag | *tells the browser what version of HTML the page is written in. *is the very first line in the HTML document. |
<html></html> tag | *represents the root of an HTML document. *is the container for all other HTML elements (except for the <!DOCTYPE> tag). |
<head></head> tag | *is a container for metadata (data about data) and is placed between the <html> tag and the <body> tag. *The following elements can go inside the <head> element: <title> (required in every HTML document) <style> <base> <link> <meta> <script> <noscript> |
<body></body> tag | *defines the document's body. *contains all the contents of an HTML document, such as headings, paragraphs, images, hyperlinks, tables, lists, etc. |
<p></p> tag | *defines a paragraph. *Also use to write several paragraphs. *Also use to write a paragraph of multiple lines. |
<link></link> tag | *defines the relationship between the current document and an external resource. *is most often used to link to external style sheets or to add a favicon to your website. *is an empty element, it contains attributes only. |
<img > tag | *is used to embed an image in an HTML page. *creates a holding space for the referenced image. *has two required attributes: src - Specifies the path to the image alt - Specifies an alternate text for the image |
<h1> to <h6> tags | *are used to define HTML headings. <h1> defines the most important heading. <h6> defines the least important heading. *Only use one <h1> per page - this should represent the main heading/subject for the whole page. |
<div></div> tag | *defines a division or a section in an HTML document. *is used as a container for HTML elements - which is then styled with CSS or manipulated with JavaScript. *is easily styled by using the class or id attribute. *Any sort of content can be put inside the <div> tag! |
<!-- Your comment here--> tag | *is a piece of code which is ignored by any web browser. |
<ol></ol> tag |
*defines an ordered list. An ordered list can be numerical or alphabetical.
*is used to define each list item.
Image:
Ol+Tag (binary/octet-stream)
|
<ul></ul> tag |
*defines an unordered (bulleted) list.
*use the <ul> tag together with the <li> tag to create unordered lists.
Image:
Ul+Tag (binary/octet-stream)
|
<a></a> tag | *is used to add hyperlinks to your web page. *is used both for linking to external web pages and for linking to individual HTML documents on the same website. *requires one attribute: * href - Tells where the browser should navigate to. |
<br> tag |
*inserts a single line break.
*is useful for writing addresses or poems.
*is an empty tag which means that it has no end tag.
Image:
Br+Tag (binary/octet-stream)
|
<hr> tag |
*defines a thematic break in an HTML page (e.g. a shift of topic).
*is most often displayed as a horizontal rule that is used to separate content (or define a change) in an HTML page.
Image:
Hr+Tag (binary/octet-stream)
|
<li> tag | *defines a list item. *is used inside ordered lists(<ol>), unordered lists (<ul>), and in menu lists (<menu>). *In <ul> and <menu>, the list items will usually be displayed with bullet points. *In <ol>, the list items will usually be displayed with numbers or letters. |
There are no comments, be the first and leave one below:
Want to create your own Flashcards for free with GoConqr? Learn more.