b By enclosing words in the tags -b- and -b- we can make characters appear bold.
i By enclosing words in the tags -i- and -i- we can make characters appear italic.
-sup- The -sup- element is used to contain characters thatshould be superscript such as the suffixes of dates or mathematical concepts like raising a number to a power suchas 22.
-sub- with b not p The -sub- element is used to contain characters that should be subscript. It is commonly used with foot notes or chemical formulas such as H20 .
-br- As you have already seen, the browser will automatically show each new paragraph or heading on a new line. But if you wanted to add a line break inside the middle of a paragraph you can use the line break tag -br- .
-hr- To create a break between themes — such as a change of topic in a book or a new scene in a play — you can add a horizontal rule between sections using the -hr- tag .
-strong- The use of the -strong- element indicates that its content has strong importance. For example, the words contained in this element might be said with strong emphasis.
-em- The -em- element indicates emphasis that subtly changes the meaning of a sentence.
-blockquote- The -blockquote- element is used for longer quotes that take up an entire paragraph. Note how the -p- element is still used inside the -blockquote- element.
-q- The -q- element is used for shorter quotes that sit within a paragraph. Browsers are supposed to put quotes around the -q- element, howeverInternet Explorer does not —therefore many people avoid using the -q- element.
-abbr- chapter-02/abbreviations.html HTMLIf you use an abbreviation or an acronym, then the -abbr- element can be used. A title attribute on the opening tag is used to specify the full term.
-cite- When you are referencing a piece of work such as a book, film or research paper, the -cite- element can be used to indicate where the citation is from.
-dfn- The first time you explain some new terminology (perhaps an academic concept or some jargon) in a document, it is known as the defining instance of it.
-address- chapter-02/address.html HTML The -address- element has quite a specific use: to contain contact details for the author of the page.
-del- The -ins- element can be used to show content that has been inserted into a document, while the -del- element can show text that has been deleted from it. The content of a -ins- element is usually underlined, while the content of a -del- element usually has a line through it.
TEXT
-dl- The definition list is created with the -dl- element and usually consists of a series of terms and their definitions. Inside the -dl- element you will usually see pairs of -dt- and -dd- elements.
-dt- This is used to contain the term being defined (the definition term).
-dd- This is used to contain the definition. Sometimes you might see a list where there are two terms used for the same definition or two different definitions for the same
+-input- type=”password” When the type attribute has a value of password it creates a text box that acts just like a single-line text input, except the characters are blocked out. They are hidden in this way so that if someone is looking over the user’s shoulder, they cannot see sensitive data such as passwords.
-select- A drop down list box (also known as a select box) allows users to select one option from a drop down list. The -select- element is used to create a drop down list box. It contains two or more -option- elements.
### Image Button :
-button- The -button- element was introduced to allow users more control over how their buttons appear, and to allow other elements to appear inside the button. This means that you can combine text and imagesbetween the opening -button- tag and closing -button- tag.
-fieldset- You can group related form controls together inside the -fieldset- element. This is particularly helpful for longer forms. Most browsers will show the fieldset with a line around the edge to show how they are related. The appearance of these lines can be adjusted using CSS.
-legend- The -legend- element can come directly after the opening -fieldset- tag and contains acaption which helps identify the purpose of that group of formcontrols.
You have probably seen forms on the web that give users messages if the form control has not been filled in correctly; this is known as form validation. Traditionally, form validation has been performed using JavaScript (which is beyond the scope of this book). But HTML5 is introducing validation and leaving the work to the browser.
-input- Many forms need to gather information such as dates, email addresses, and URLs. This has traditionally been done usingtext inputs. HTML5 introduces new form controls to standardize the way that some information is gathered. Older browsers that do not recognize these inputs will just treat them as a single line text box. type=-date- If you are asking the user for a date, you can use an -input- element and give the type attribute a value of date. This will create a date input inbrowsers that support the new HMTL5 input types.
type=”url” A URL input can be used whenyou are asking a user for a web page address
Summary FORMS
end