- Defines a comment, remove the two dotes and the comment goes there. They will not show on the web page,
- Defines the document type
- All HTML documents must start with the document type declaration
- The delaration helps the browsers to display web pages correctly and represents the document type
- At the top of the page before any other HTML tags it must only appear once.
- The declaration is not case sensitive
- The <!DOCTYPE> declaration for HTML5 is: <!DOCTYPE>
- Document type declarations and indicates that the document is an HTML file
- Inline Level Elements
- An inline element does not start on a new line
- An inline element only takes up as much width as necessary.
- An inline element cannot contain a block-level element!
- <a>defines a hyperlink:
- The <a> tag has several attributes, including:
href: The most important attribute, which indicates the link's destination.
name: Names the anchor so that it can be the destination of multiple links.
target: Defines where to open the linked document
- By default links will appear as follows in all browsers.
An unvisted link is underlined and blue
A visted link is underlined and purple
An active link is underlined and red
- Defines an abbreviation or an acronym, like "mr", "DR", "ASAP", "HTML", and "CSS"
<acronym>
- Defines an acronum but isn't supported in HTML5. Use <abbr> instead.
<address >
- Defines contact inoformation for the author/owner of a document
<applet>
- Defines an embedded applet but not supported in HTML 5. Instead have to use <object> or <embed>
<area >
- Defines an area inside an image map
<Attributes>
- Attributes contain important information about different elements that infuluene their apprearance or behavior.
- Most attributes have a name and a value, formatted as name="value" and belone inside the opening tag of the HTML element.
Attributes <href>
- All HTML elements can have attributes
- Attributes usually come in name/value pairs like: name="value"
- Attributes provide additional information about elements
- Attributes are always specified in the start tag.
- The href attributes specifies the URL of the page the link is going to.
Attributes<alt>
- The alt attribute should reflect the image content, so users who cannot see the image and get an understanding of what the image contains.
Attributes<lang >
- All HTML elements can have attributes
- Attributes usually come in name/value pairs like: name="value"
- Attributes provide additional information about elements
- Attributes are always specified in the start tag.
Attributes<src>
- All HTML elements can have attributes
- Attributes usually come in name/value pairs like: name="value"
- Attributes provide additional information about elements
- Attributes are always specified in the start tag.
- The <img> tag is used to embed an image in an HTML page.
- The src attribute specifies the path to the image to be displayed.
Attributes<Style>
- All HTML elements can have attributes
- Attributes usually come in name/value pairs like: name="value"
- Attributes provide additional information about elements
- Attributes are always specified in the start tag.
- The style Attribute is used to add styles to an element such as color
Attributes<width and height>
- All HTML elements can have attributes
- Attributes usually come in name/value pairs like: name="value"
- Attributes provide additional information about elements
- Attributes are always specified in the start tag.
- The <img> tag will also contain the height and width attributes, which specify the height and width of the image (in pixels)
- Always specify the "border-style" property to set the borders first or the "border-width" property will not work, must be together to work.
- The border-width property can have from one to four values (for the top border, right border, bottom border, and the left border)
- Note: If you are placing different px for each side do not place ; between them.
1. Defines embedded sound content
1.Defines Bold Text
1.
<basefont >
1. Specifies a default color, size, and font for all text in a document. Use CSS Not supported in HTML5
1.Isolates a part of text that might be formatted in a different direction from other text outside it.
1.Overfides the current text direction
<big >
1.Defines big text but not supported in HTML5 must use CSS
1. Defines a section that is quoted from another sources.
1.Defines the document's body
1. Defines a single line break
1. Defines a clickable button
- Usually using JavaScript to draw graphics, on the fly, via scripting.
1. Defines a table caption
<center >
1. Defines centered text, not supported in HTML5, use CSS instead
1. Defines the title of a work
1. Defines a piece of computer code
1. Specifies column properties for each column within a <colgroup> element.
1. Specifies a list of pre-defined options for input controls
1. Defines a descripton/value of a term in a description list
1.Defines text that has abeen deleted from a document
1. Defines additional details that the user can view or hide
1. Specifies a term that is going to be defined within the content
1. Defines a dialog box or window
<dir>
1.Defines a directory list, not supported in HTML5 Use <ul>
1. Defines a section in a document.
1.The browsers automatically add a margin before and after the element and always starts on a new line.
2. A block-level element always stretches out to the left and right as far as in can taking up the full width available
3. One of the three elements that is used to create a description list.
1.Defines a term/name in a description list
1. Defines emphasized text
1. Defines a container for an external application
1. Groups related elements in a form
1. Defines a caption for a <figure> element.
1. Specifies self-contained content.
<font>
1.Defines font, color, and size for text, Not supported in HTML5 Use CSS.
1. Defines a footer for a document or section
1.Defines an HTML form for user input
<frame>
1. Defines a window (frame) in a frameset, Not supported in HTML5
1.Contains metadate/information for the document
1.Defines HTML headings
1. Defines an HYML document
1.Defines a thematic change in the content
1. Defines a part of text in an alternate voice or mood.
- HTML images are defined with the <img> attribute
- The source file <src>, alternative text <alt>
. are provided as attributes
- img src ="../repel.jpg" ;alt ="../rep.jpg" width ="104" height ="140"
document
- Image that raises or lower an element by the specified length. Negative values are allowed.
- HTML links are defined with the <a>tag.
- The link's destination is specified in the <href>
1. Defines highlighted text
1.Defines within a known range a scalar measurement (a.gauge)
1.Defines a container for an external application
1.
1.
1.Defines preformatted text.
1.Represents the progress of a task
1.Defines a short quotation
1. Defines what to show in browsers that do not support ruby annotations
1.Defines an pronuncaiotn/explanation of a characters (for East Asian Trypogrphy)
1.Defines a ruby annotation (for Asian Typography)
1. Defines text that is no longer correct
1.Defines sample output from a computer program
- View HTML Source code by right clicking on a web page or Click CTRL + U in an HTML page, or right-click on the page and select "View Page Source".
- Defines a title for the document