HTML 6 new tags
-
Upload
davide-peressoni -
Category
Documents
-
view
7 -
download
0
description
Transcript of HTML 6 new tags
-
New tags
- TAG IGNORE
It ignores a number of words (tokens delimited by spaces) equal to the value of the token attribute.
The default value of token is one.
Example:
< ignore token=2 /> Example 1. Hello!!! prova
Result with HTML 5:
Example 1. Hello!!!
prova
Result with HTML 6:
Hello!!!
prova
Ignore tag is like a comment but because it works only with HTML 6 is a conditional comment.
- TAG IF
The if tag allows the content only if an expression (writed in JS for example) is true.
The conditonale expression is writed in esp attribute.
Example:
HTML < 6
Reult HTML 5:
HTML < 6
Reult HTML 6:
HTML 6
Buti if i want not allow the content for an html < of ipotetic html 7 i can use attribute then:
HTML < 6
HTML 6
HTML 7
Reult HTML 5:
HTML < 6 HTML 6 HTML 7
Reult HTML 6:
HTML 6
Reult HTML 6:
HTML
-
HTML 7
But thi is wrong, i must use then attribute:
HTML < 6
Reult HTML 5:
HTML < 6
Reult HTML 6:
HTML 6
Reult HTML 6:
HTML 7
Also this if is like a conditional comment
- ECHO TAG
Echo writes a string into the html document in the exact point of the tag.
Attributes:
esp= if you put a number it writes the number
-> 2
if you put a expression it writes the result
-> 30
You can use the js varibles with:
But you had to declare and assign values to the js varibles before the echo
if you write a string it writes it
-> prova
if you put a string it writes it by html
& -> 5 > 2+2
str= write the string
& prova
-
-
- DOCUMENT
To include a document in the html page
Attributes:
src= url
the url of the document
height and width
controls
if presenti it shows the controls, else they will not show
editable
if present the user can edit the document and save it on his computer, else i twill be only in read mode.
PDFs arent editable.
Type
The type of the file (text/txt, text/rtf, text/doc, text/docx, text/odt, document/pdf slide/ppt, )
Example:
< document src= HTML6.pdf height= 100% width=100% controls type= document/pdf > Your
browser dont support HTML 6
- KEY
Key tag is not consideret in HTML but it can be a standar for search algorithms in PHP or JS.
Attributes:
Title : is the title of the page in the results
Keywords : if a keyword of the search is equal to one of those in this attribute the page is considered
Description: is a description of the page that will show in results
Language: The LCID Decimal of the language of the HTML page
url: if you want that the result point to another link, for example in page prova.php you can write
-
Or in index.php
- DEFINE
An example is better than a definition:
becomes: y