SitePoint Sponsor

User Tag List

Results 1 to 21 of 21

Thread: Save As Text

  1. #1
    SitePoint Wizard DoubleDee's Avatar
    Join Date
    Aug 2010
    Location
    Arizona
    Posts
    3,777
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Save As Text

    When I choose to Save or PDF a webpage, what determines what comes in the "Save As" box??

    Sincerely,


    Debbie

  2. #2
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,606
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    What application are you using?

    Typically, the file type that is selected by default is whatever the application produces by default.

    For example, if you are working in Microsoft Word, the "docx" file format will be selected by default because Word produces word documents by default.
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  3. #3
    SitePoint Wizard DoubleDee's Avatar
    Join Date
    Aug 2010
    Location
    Arizona
    Posts
    3,777
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Force Flow View Post
    What application are you using?

    Typically, the file type that is selected by default is whatever the application produces by default.

    For example, if you are working in Microsoft Word, the "docx" file format will be selected by default because Word produces word documents by default.
    You're not understanding me...

    When I go to this link (using FireFox)...
    Code:
    http://www.cnn.com/2013/12/22/us/winter-weather/?sr=google_news&google_editors_picks=true"]http://www.cnn.com/2013/12/22/us/winter-weather/?sr=google_news&google_editors_picks=true

    And then I choose to save it, I get this in the "Save As" box...
    Code:
    Winter weather wreaks havoc for the holidays - CNN.com.html

    And if I choose to PDF it - via Printing it on my Mac, I get this when I choose "Save As PDF"...
    Code:
    Winter weather wreaks havoc for the holidays - CNN.com

    So where is that File-name/PDF-name coming from??

    Follow me now?

    Sincerely,


    Debbie

  4. #4
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,175
    Mentioned
    191 Post(s)
    Tagged
    2 Thread(s)
    When I go to that link using Firefox and choose "Save Page As" my Windows 8 OS gives it the extension .htm (which I could change using text input and the dropdown)
    saveas.png

  5. #5
    SitePoint Wizard DoubleDee's Avatar
    Join Date
    Aug 2010
    Location
    Arizona
    Posts
    3,777
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Mittineague View Post
    When I go to that link using Firefox and choose "Save Page As" my Windows 8 OS gives it the extension .htm (which I could change using text input and the dropdown)
    saveas.png
    You guys are killing me tonight...


    I am NOT asking about the File Extension...


    I am asking what makes FireFox be pre-populated with the "Winter weather wreaks havoc for the holidays - CNN.com" portion...



    Debbie

  6. #6
    SitePoint Mentor bronze trophy
    ronpat's Avatar
    Join Date
    Jun 2012
    Location
    NJ, USA
    Posts
    2,521
    Mentioned
    61 Post(s)
    Tagged
    2 Thread(s)
    I would hazard a guess that it is supplied by the Macintosh Print utility.

  7. #7
    SitePoint Mentor bronze trophy
    ronpat's Avatar
    Join Date
    Jun 2012
    Location
    NJ, USA
    Posts
    2,521
    Mentioned
    61 Post(s)
    Tagged
    2 Thread(s)
    Ah, your beating us up pretty good, too

    Check line 12 of the HTML page,
    Code:
    <meta content="Winter weather wreaks havoc for the holidays - CNN.com" name="title"/>

  8. #8
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,175
    Mentioned
    191 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by DoubleDee View Post
    .....
    I am NOT asking about the File Extension...
    I am asking what makes FireFox be pre-populated with the "Winter weather wreaks havoc for the holidays - CNN.com" portion...
    .....
    Sorry, my guess is it uses
    HTML Code:
    <title>Winter weather wreaks havoc for the holidays - CNN.com</title>
    Though it may use the meta content (when it exists) by preference. I don't know.
    For example, if I "Save As" this page the file name is "Save As Text" (same as the page's <title>) but then again this page has no meta content tag.

  9. #9
    SitePoint Mentor bronze trophy
    ronpat's Avatar
    Join Date
    Jun 2012
    Location
    NJ, USA
    Posts
    2,521
    Mentioned
    61 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by Mittineague View Post
    Sorry, my guess is it uses
    HTML Code:
    <title>Winter weather wreaks havoc for the holidays - CNN.com</title>
    Though it may use the meta content (when it exists) by preference. I don't know.
    For example, if I "Save As" this page the file name is "Save As Text" (same as the page's <title>) but then again this page has no meta content tag.
    I think you're right, Mittineague. I hastily grabbed the wrong tag.

  10. #10
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,175
    Mentioned
    191 Post(s)
    Tagged
    2 Thread(s)
    The only way to know for sure is to find a page where the meta content and title tags are different and see which Firefox uses.
    Not likely to find one and I don't have the time to look (the Holiday crunch is on).

  11. #11
    SitePoint Wizard DoubleDee's Avatar
    Join Date
    Aug 2010
    Location
    Arizona
    Posts
    3,777
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ronpat View Post
    Ah, your beating us up pretty good, too
    Well, you guys were frustrating me! (I think my OP was pretty clear...)



    Quote Originally Posted by ronpat View Post
    Check line 12 of the HTML page,
    Code:
    <meta content="Winter weather wreaks havoc for the holidays - CNN.com" name="title"/>
    What is the meta content thingy?

    That is a new one for me...


    If I was answering my own question - which I was nearly forced to - I would have put my money on the <TITLE> tags...


    At first I would have thought it was the Article's "Page Title" which is often an <H1>, but based on my observations, it seems like it is the <TITLE> tags...


    My reason for asking this is because I want to make sure my webpages are coded in a way, so that when people try to Save or Print an Article from my website, the FILE NAME that is pre-populated is what they would likely want to save it as.

    (Just trying to make life a little easier for my users!)

    Sincerely,


    Debbie

  12. #12
    SitePoint Enthusiast scout1idf's Avatar
    Join Date
    Nov 2009
    Location
    Ohio
    Posts
    83
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just did a quick test and it comes from the <title> not the meta information, at least on windows with FireFox.

    Hope this helps.....

  13. #13
    SitePoint Evangelist silver trophybronze trophy
    Join Date
    Jul 2013
    Posts
    406
    Mentioned
    22 Post(s)
    Tagged
    0 Thread(s)

    _______
    What is the <meta name="title" content="..."> thingy?
    Google doesn't recognize it ("Just remember that Google will ignore meta tags it doesn't know."), it's not in the html4.01 spec, not in the example meta list of the html5 spec. See also this Testing the "meta title" Tag ('the tag doesn't exist') - Well, if you put in into your code, the tag is existing. - But SEO-wise the effect is zero!
    Validator-wise it is invalid html5.
    - Of course in a CMS the tag could be used for internal references / processing.

  14. #14
    SitePoint Mentor bronze trophy
    ronpat's Avatar
    Join Date
    Jun 2012
    Location
    NJ, USA
    Posts
    2,521
    Mentioned
    61 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by DoubleDee View Post
    Well, you guys were frustrating me! (I think my OP was pretty clear...)
    Unfortunately, others didn't see it so clearly.
    Quote Originally Posted by DoubleDee View Post
    hat is the meta content thingy?

    That is a new one for me...
    Me, too. I wasn't expecting it, either. I was looking for the <title> tags and copied a meta tag in error. :/ Oops.

  15. #15
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,175
    Mentioned
    191 Post(s)
    Tagged
    2 Thread(s)
    Thanks for testing and confirming.

    Now that things have quieted down a bit (calm before the storm?) and I have had some sleep, I realize finding a page isn't the only way.
    A page could be written having meta, title and H1 all different and then tested.

  16. #16
    SitePoint Wizard DoubleDee's Avatar
    Join Date
    Aug 2010
    Location
    Arizona
    Posts
    3,777
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    So is there consensus that...

    1.) The <TITLE> tag is what comes up for the File Name when you go to "Save As" or "Save As PDF" a web page??

    2.) That the Meta tag is some unsupported, renegade thing that is not found in HTML4 and HTML5??

    Sincerely,


    Debbie

  17. #17
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,200
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    Quote Originally Posted by DoubleDee View Post
    That the Meta tag is some unsupported, renegade thing that is not found in HTML4 and HTML5??
    Just be clear that it was the <meta name="title" content="..." > that was being discussed above, not all meta elements. For example, the "description" meta element is crucial for web pages:

    Code:
    <meta name="description" content="Description here." >
    And there are other useful meta elements, too. So don't throw them all out.

  18. #18
    SitePoint Evangelist silver trophybronze trophy
    Join Date
    Jul 2013
    Posts
    406
    Mentioned
    22 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DoubleDee View Post
    So is there consensus that...
    2.) That the Meta tag is some unsupported, renegade thing that is not found in HTML4 and HTML5??
    RTFS!
    Read The Following Specifications:

    • 7.4.4 Meta data in the html4.01 specification:
      "The META element specifies a property (...) and assigns a value to it (...). This specification does not define a set of legal meta data properties.
      (...)
      User agents are not required to support meta data mechanisms. For those that choose to support meta data, this specification does not define how meta data should be interpreted."

    • The xhtml1.0-specification doesn't have a message to the contrary, so has the same disposition as html4.01.

    • In the list of standard-metadata-names of html5 the meta name="title" is not mentioned.
      According to 4.2.5.2 Other metadata names other metadata names have to be registered in the WHATWG Wiki MetaExtensions page.
      Over there a meta name="title" is not listed. The html5 spec is continuing:
      "When an author uses a new metadata name not defined by either this specification or the Wiki page, conformance checkers should offer to add the value to the Wiki, with the details described above, with the 'proposed' status."
      E.g. the status is "invalid html5" at the moment. - I guess it will maintain this status.

    Testpage above is html5. Here are:

    My conclusions:
    1. In html4.01 and xhtml1.0 the use of a meta name="title" is allowed. But user agents (browsers) are free to do something with it (or not); about what search engines do with this meta, the specs are blanc. In practice, they do nothing with it.
    2. In html5 the use of a meta name="title" is forbidden.
    3. Html4.01 + xhtml1.0 + html5: this meta should not be used!

    "That the title-Meta tag is some unsupported, renegade thing?" Yes!
    _______
    Note: the browsers use the normal <title> of a webpage also for the (proposed) name of a Bookmark/Favorite.

  19. #19
    SitePoint Wizard DoubleDee's Avatar
    Join Date
    Aug 2010
    Location
    Arizona
    Posts
    3,777
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ralph.m View Post
    Just be clear that it was the <meta name="title" content="..." > that was being discussed above, not all meta elements. For example, the "description" meta element is crucial for web pages:

    Code:
    <meta name="description" content="Description here." >
    And there are other useful meta elements, too. So don't throw them all out.
    Well, here is how one of my typical web pages looks...

    HTML Code:
    <head>
    	<!-- HTML Metadata -->
    	<title>Change My E-mail</title>
    	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    	<meta name="description"
    				content="TBD" />
    	<meta name="keywords"
    				content="TBD" />
    
    	<!-- Page Stylesheets -->
    </head>
    Sincerely,


    Debbie

  20. #20
    Keep Moving Forward gold trophysilver trophybronze trophy
    Shaun(OfTheDead)'s Avatar
    Join Date
    Nov 2005
    Location
    Trinidad
    Posts
    3,746
    Mentioned
    45 Post(s)
    Tagged
    0 Thread(s)
    Off Topic:

    Wouldn't this thread be better in Webpage Design? It could be a big help to others in the future who have similar challenges. Could we move it?
    Trying to fill the unforgiving minute
    with sixty seconds' worth of distance run.

    Update on Sitepoint's Migration to Discourse

  21. #21
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,200
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    Off Topic:

    Quote Originally Posted by Shaun(OfTheDead) View Post
    Wouldn't this thread be better in Webpage Design?
    Done.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •