From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: On markdown images Date: Sat, 1 May 2021 13:18:32 +0300 Message-ID: References: <874kfn292f.fsf@disroot.org> <87a6pfh1dj.fsf@zoho.eu> <875z03ffhm.fsf@zoho.eu> <87y2czc68z.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22091"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0.6 (2021-03-06) Cc: help-gnu-emacs To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 01 12:24:27 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lcmnS-0005bt-MM for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 01 May 2021 12:24:26 +0200 Original-Received: from localhost ([::1]:40106 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcmnR-0007jp-QC for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 01 May 2021 06:24:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcmmt-0007hU-Am for help-gnu-emacs@gnu.org; Sat, 01 May 2021 06:23:51 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:59365) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcmmr-00049N-5i for help-gnu-emacs@gnu.org; Sat, 01 May 2021 06:23:50 -0400 Original-Received: from localhost ([::ffff:154.231.162.22]) (AUTH: PLAIN securesender, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000046239.00000000608D2C31.00003D63; Sat, 01 May 2021 03:23:45 -0700 Mail-Followup-To: Yuri Khan , help-gnu-emacs Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129271 Archived-At: * Yuri Khan [2021-05-01 13:00]: > On Sat, 1 May 2021 at 16:43, Jean Louis wrote: > > > I think this is minimal valid SRC IMG tag in HTML: > > > > > > > > So far none markdown that I know but Discount markdown does not > > provide height, width attributes. This makes HTML invalid and in > > general can disturb the HTML display and accessibility. Such pages > > will not pass the test here: https://validator.w3.org/ > > You have been misinformed on that point. The width and height > attributes are, and always have been, optional on an img element. See > specs: > > HTML 5 — https://www.w3.org/html/wg/spec/the-map-element.html#attr-dim-width > HTML 4.01 — https://www.w3.org/TR/html4/struct/objects.html#adef-width-IMG > HTML 3.2 — https://www.w3.org/TR/2018/SPSD-html32-20180315/#img > HTML 2.0 did not have width and height attributes on img elements. You see, after so many years, I get this smacking slap and come back to reality. Who knows what is the real reason why I started using it. I think back in time, before maybe 10 years there were different directions in creating HTML documents. Probably I was using page load speed or other type of validator and have mistaken it for HTML validator, thanks for correction. https://web.dev/optimize-cls/?utm_source=lighthouse&utm_medium=unknown#images-without-dimensions For example Google Page speed says: Image elements do not have explicit width and height Set an explicit width and height o -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns Sign an open letter in support of Richard M. Stallman https://stallmansupport.org/ https://rms-support-letter.github.io/