• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    Learning programming

    Lounge
    5
    49
    16437
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Deleted User
      Deleted User last edited by

      Well, are these attributes/values proper in HTML5?

      The element META is allowed with attribute http-equv in HTML5.
      See
      http://www.w3.org/TR/html5/document-metadata.html
      http://www.w3.org/TR/html5/document-metadata.html#attr-meta-http-equiv-content-type
      http://www.w3.org/TR/html5/document-metadata.html#attr-meta-http-equiv

      And another question stays: why do certain browsers (version(s) of) handle those/my pages when they do not contain any metas at all?

      Some browsers do have a default fallback, if charencoding is missing. Some browsers guess which encoding it could be. On some servers the correct encoding is send by a HTTP header. On some servers the incorrect encoding is send by a HTTP header.

      Reply Quote 0
        1 Reply Last reply
      • A Former User
        A Former User last edited by

        Some browsers do have a default fallback, if charencoding is missing. Some browsers guess which encoding it could be.

        But if I amend my htmls with that charset - will those "good" browsers do not mind it? Like "Gosh! Master added a 'charset' - let me break then!"?πŸ™‚

        Reply Quote 0
          1 Reply Last reply
        • Deleted User
          Deleted User last edited by

          will those "good" browsers do not mind it?

          Well, they might mind or not.

          You can trust me, i'm webdevoloper and have more or less bad experiences with browsers and websites over years πŸ˜‰

          Reply Quote 0
            1 Reply Last reply
          • A Former User
            A Former User last edited by

            will those "good" browsers do not mind it?

            Well, they might mind or not.

            Well... then I'll investigate some more Russian sites' codes first... :rolleyes:
            You mind?:)

            Reply Quote 0
              1 Reply Last reply
            • A Former User
              A Former User last edited by

              You know, Angie, lots of Russian sites seem to be written not in HTML5 - whether it's HTML4.01 or XHTML (once I noticed).
              And well, I've just come across two sites in a row written in HTML5 and having a Cyrillic title - one of them even mixed (and the latter is not even Russian, but Google's localised page).
              Well, both of them have that meta: the former (ЯндСкс) has it "<meta http-equiv="Content-Type" content="text/html; charset=utf-8">", the Google one - "<meta content="text/html; charset=UTF-8" http-equiv="content-type">".

              So now I'm gonna try creating a test doc with this head element.

              Reply Quote 0
                1 Reply Last reply
              • A Former User
                A Former User last edited by

                Angie, I added this line: "<meta http-equiv="Content-Type" content="text/html; charset=utf-8">"; now I'm having boxes there instead of letters (a new doc from one of those just by adding that).

                <abbr title="Add/editβ†’">➫</abbr>
                You know what?
                I just opened the code of this new one (with the boxes) and rewrote *the boxes* here in Opera, applied: the page has got looking just fine!πŸ†™

                I don't know if it needs a messing with the fonts somehow...

                Reply Quote 0
                  1 Reply Last reply
                • Deleted User
                  Deleted User last edited by

                  For HTML it is irrelevant for char encoding if you have HTML5 or HTML 4.x or XHTML.

                  The problem with the "boxes" may be incorrect characters in HTML and wrong encoding (in HTML code or Server sent HTTP headers) or missng charcters in a used font for display in Opera.

                  But your texteditor should store the HTML file as UTF8!

                  Please show me a URL of such russian webpage which title is incorrect. I'll investigate.

                  Reply Quote 0
                    1 Reply Last reply
                  • A Former User
                    A Former User last edited by

                    But your texteditor should store the HTML file as UTF8!

                    Should I check that out?

                    Please show me a URL of such russian webpage which title is incorrect. I'll investigate.

                    You meant "Russian"?
                    Well, I don't seem to be able to: the titles themselves of those Russian (and localised) [online] sites/pages are nothing but correct - while mine have never been published yet (I only shared .html files in a group or two - you want that?).

                    Reply Quote 0
                      1 Reply Last reply
                    • Deleted User
                      Deleted User last edited by

                      Yes, check if the content is stored as UTF. Which editor do you use? Notepad++?

                      No, its ok, if these pages are only local your own, you need not to show. πŸ˜‰

                      Reply Quote 0
                        1 Reply Last reply
                      • A Former User
                        A Former User last edited by

                        Which editor do you use?

                        Notepad - as advised here.

                        Reply Quote 0
                          1 Reply Last reply
                        • A Former User
                          A Former User last edited by

                          Yes, check if the content is stored as UTF.

                          It wasn't.
                          I hadn't been advised on that, so I'd been leaving the default "ANSI" there. Now I tried resaving one of my oldest htmls changing that to "UTF8" - the doc overwrote itself successfully (I'll check that on one of the two "mixed-titled" later).

                          Reply Quote 0
                            1 Reply Last reply
                          • A Former User
                            A Former User last edited by

                            Yes, I resaved those two - but you know what?
                            The recent test one where I inserted the <meta>, got boxes and then amended using my Opera ('source code') - appeared (seemed) already UTF-8 now (means it was the only one for whose resaving my Windows already offered "UTF-8" as default - for others it did always seem "ANSI" being the default there).

                            Reply Quote 0
                              1 Reply Last reply
                            • A Former User
                              A Former User last edited by

                              Thank you, Angie, for your "UTF" advice! 🍺
                              I just opened of the UTF-resaved documents in my Chrome: looks perfectly o'k! πŸ†™
                              Yeah - the other one too! :yes:
                              For you:

                              Reply Quote 0
                                1 Reply Last reply
                              • Deleted User
                                Deleted User last edited by

                                Fine, now my reputation as female geek, HTML witch and IT professional grows more and more πŸ˜‰

                                The coffe is too cold, now. But next time after good help, please send me a coffee machine πŸ™‚ LOL

                                Reply Quote 0
                                  1 Reply Last reply
                                • A Former User
                                  A Former User last edited by

                                  Just use this:

                                  <heater>![](http://cs9597.vkontakte.ru/u8171323/-14/x_adb23761.jpg)</heater>
                                  πŸ˜‰

                                  Reply Quote 0
                                    1 Reply Last reply
                                  • A Former User
                                    A Former User last edited by

                                    Yes, check if the content is stored as UTF.

                                    It wasn't.
                                    I hadn't been advised on that, so I'd been leaving the default "ANSI" there. Now I tried resaving one of my oldest htmls changing that to "UTF8" - the doc overwrote itself successfully.

                                    Imagine, Angie, the site I'm learning it on's also missing this 'step'. I guess it may be the case because they forgot to think about the fact that not everybody on Earth is strictly confined to the English language only*;)*

                                    Reply Quote 0
                                      1 Reply Last reply
                                    • Deleted User
                                      Deleted User last edited by

                                      Please send them a mail to add this information you missed for learners at w3school πŸ˜‰

                                      Reply Quote 0
                                        1 Reply Last reply
                                      • A Former User
                                        A Former User last edited by

                                        No e-mail.
                                        I tried Facebook.
                                        (Well, there is a link at the bottom there: "Report an error" or "...mistake", I deemed it not that exactly - didn't try.)

                                        Reply Quote 0
                                          1 Reply Last reply
                                        • A Former User
                                          A Former User last edited by

                                          <em>What exactly</em> are `` and <samp> elements used for?

                                          The `` tag is a phrase tag. It defines keyboard input.
                                          ... This tag is not deprecated, but it is possible to achieve richer effect with CSS.

                                          The <samp> tag is a phrase tag. It defines sample output from a computer program.
                                          ... This tag is not deprecated, but it is possible to achieve richer effect with CSS.

                                          <small>Reference: [<cite>HTML Computer Code Elements</cite>](http://www.w3schools.com/html/html_computercode_elements.asp" title="W3Schools).</small>

                                          Reply Quote 0
                                            1 Reply Last reply
                                          • Deleted User
                                            Deleted User last edited by

                                            Hardly to explain for me, because my native/spoken language is not english, sorry.

                                            HTML element kbd is used to markup text as keyboard input. That means in context for users or even reading programs: This text has to be logically interpreted as keyboard input.

                                            HTML element samp is use for examples.

                                            These two element are not used for optical text formatting, they are for logical structurizing content.

                                            Other example:
                                            h1 as HTML markup means: In HTML document structure this is a header of level 1 (=top-level)
                                            It does not mean: This is a big text with bold letters.

                                            Reply Quote 0
                                              1 Reply Last reply
                                            • First post
                                              Last post

                                            Computer browsers

                                            • Opera for Windows
                                            • Opera for Mac
                                            • Opera for Linux
                                            • Opera beta version
                                            • Opera USB

                                            Mobile browsers

                                            • Opera for Android
                                            • Opera Mini
                                            • Opera Touch
                                            • Opera for basic phones

                                            • Add-ons
                                            • Opera account
                                            • Wallpapers
                                            • Opera Ads

                                            • Help & support
                                            • Opera blogs
                                            • Opera forums
                                            • Dev.Opera

                                            • Security
                                            • Privacy
                                            • Cookies Policy
                                            • EULA
                                            • Terms of Service

                                            • About Opera
                                            • Press info
                                            • Jobs
                                            • Investors
                                            • Become a partner
                                            • Contact us

                                            Follow Opera

                                            • Opera - Facebook
                                            • Opera - Twitter
                                            • Opera - YouTube
                                            • Opera - LinkedIn
                                            • Opera - Instagram

                                            © Opera Software 1995-