- You need the html declaration for web programming, because declaration helps browser how to react with tag means syntax of tags. Use only <!DOCTYPE HTML> for HTML5.
- The character encoding declaration is required. <meta charset="UTF-8">
- A
- Attribute note
- Image size information provides by width and height attributes.
- Attribute title act like tooltips.
- For screen reader use alt attribute.
- F
- Form Tag
- <form action.....> inside table <./form>
- Bad practice - form tag use in the table, tr, or td.
- P
- Property note
- For image size use 'max-width:100%; height:auto;' property as 100%. Never exceed the image original size.
- Tags note
- <head> tag contains only metadata.
- h1 is most important than h6.
- For Preformatted text <pre> tag accepts space and line break.
- <picture> is act like media query (responsive) tag. Can display different images in different media type from different sources.
- Can add new element in HTML5 with css and javaScript support.
No comments:
Post a Comment