Page 9 - HTML5
P. 9

Parameters                                                                                          68
          Examples                                                                                            68


            Creating an image                                                                                 68
            Image width and height                                                                            69

            Choosing alt text                                                                                 70

          Footnotes                                                                                           71

            Responsive image using the srcset attribute                                                       71

        Using srcset with sizes                                                                              71

        Using srcset without sizes                                                                           71


          Responsive image using picture element                                                              72

        Chapter 21: Include JavaScript Code in HTML                                                          73

          Syntax                                                                                              73

          Parameters                                                                                          73

          Remarks                                                                                             73

          Examples                                                                                            73

            Linking to an external JavaScript file                                                            73

            Directly including JavaScript code                                                                74

            Including a JavaScript file executing asynchronously                                              74

            Handling disabled Javascript                                                                      74

        Chapter 22: Input Control Elements                                                                   75

          Introduction                                                                                        75

          Syntax                                                                                              75

          Parameters                                                                                          75

          Remarks                                                                                             76

          Examples                                                                                            77

            Checkbox and Radio Buttons                                                                        77

        Overview                                                                                             77

        Attributes                                                                                           77


          value                                                                                               77

          checked                                                                                             78

        Accessibility                                                                                        78
   4   5   6   7   8   9   10   11   12   13   14