• Tidak ada hasil yang ditemukan

HTML5 for Responsive Designs

N/A
N/A
Protected

Academic year: 2024

Membagikan "HTML5 for Responsive Designs"

Copied!
40
0
0

Teks penuh

Its name is Modernizr (http:// . www.modernizr.com) and if you're writing HTML5 pages, it's worth your attention. If you're a fan of lowercase, then is just as good. If you are not writing pages in English, it is better to specify the correct language code.

If you pay attention to how you write code, you'll usually use lowercase letters for the most part, wrap attribute values ​​in quotes, and declare a "type" for scripts and stylesheets. Previously, if you wanted your markup to validate, it was necessary to wrap each element in its own tag. Realistically, avoid them if you can, but they won't drop the air if you do use them.

Mismatched features may still be displayed in certain browsers, but if you use them, you're considered very, very naughty and may not get a treat this weekend. However, if you are curious, you can see the full list of deprecated and non-conforming features at http://dev.w3.org/html5/spec/ . If you need to wrap an element simply to style it, you should continue to use a

as you would before.

If you have some headlines, taglines, and subheadings in

,

,

and subsequent tags, consider putting them in the
tag.

The <header> element

The <footer> element

The <address> element

Practical usage of HTML5's structural elements

As you can see in the preceding code, we use a

,

Referensi

Dokumen terkait