• Shaarli
  • Tag cloud
  • Picture wall
  • Daily
  • RSS
  • Login
4251 shaares
 
Filters
11 results tagged html

A practical guide to using shadow DOM

QRCode

How (and why) to use shadow DOM, now that the declarative syntax is here.

https://www.youtube.com/watch?v=8Z8H2NEbLtE

shadow DOM has lower precedence than regular styles

(X, Y, Z)
#id, classes and attrs, elements

[id="myid"] is (0,1,0) not (1,0,0)!

You can duplicate classes to increase specificity! (0, 4, 0)
.button.button.button.button
or
.button {
&&& {
}
}

is( .button, #hammertime )
.button:not(#id1#id2) -> "impossible" because two IDs, (2, 0, 0)!

Decreasing specificity

:where( .button) -> (0,0,0)

** Very useful for css reset!
input:where([type="checkbox"])

17:55 - meta keyword in sass

** Might need to use !important in layers (dialog: display:none)

https://mayank.co/blog/declarative-shadow-dom-guide/
November 21, 2024 at 2:26:17 PM EST *
webdesign css html
FILLER

On the <dl> | Ben Myers

QRCode

The <dl>, or description list, element is underrated.

It's used to represent a list of name–value pairs. This is a common UI pattern that, at the same time, is incredibly versatile. For instance, you've probably seen these layouts out in the wild…

<dl>
    <dt>Title</dt>
    <dd>Designing with Web Standards</dd>
    <dt>Publisher</dt>
    <dd>New Riders Pub; 3rd edition (October 19, 2009)</dd>
</dl>
https://benmyers.dev/blog/on-the-dl/
January 10, 2024 at 8:30:01 PM EST *
html webdesign lists
FILLER

HTML: The good parts - Vadim Makeev

QRCode

Correction in the thumbnail: This video was shot on April 2023

  • It's not HTML5 or CSS3 - it's just 'html' and 'css'!
  • https://developer.mozilla.org/en-US/docs/Web/HTML - Good documentation but not the spec!
  • https://html.spec.whatwg.org/
  • Content model - What is legal to nest
  • Transparent: a > h1 is ok, but p > a > h1 not ok!
  • https://caninclude.glitch.me/
  • preload preconnect prefetch prerender for links
  • Get your head straight: https://www.youtube.com/watch?v=UW1PEMBdX5E
  • <header><main><footer> are important!
  • Subheading <hgroup><h1><p> - Not <hgroup><h1><h2>
  • Upgrade Your HTML (4 books)
  • <menu> - like <ul>
  • script - defer async type="module" nomodule
  • <template id="mytable"> - Don't have to put html in javascript
  • JavaScript is expensive, HTML is almost free!
https://www.youtube.com/watch?v=RPCkuz-TteA
May 21, 2023 at 11:58:48 AM EDT *
html youtube webdesign css
FILLER

html - Valid to use <a> (anchor tag) without href attribute? (buttons) - Stack Overflow

QRCode

The real question is whether the <a> element alone is an appropriate representation of a <button>. On a semantic level, there is a distinct difference between a link and a button.

A button is something that when clicked causes an action to occur.

A link is a button that causes a change in navigation in the current document. The navigation that occurs could be moving within the document in the case of fragment identifiers (#foo) or moving to a new document in the case of urls (/bar).

If you're concerned about the semantics and accessibility of using an <a> element (or <span>, or <div>) as a button, you should add the following attributes:

<a role="button" tabindex="0" ...>...</a>
https://stackoverflow.com/questions/10510191/valid-to-use-a-anchor-tag-without-href-attribute
May 16, 2023 at 10:04:12 AM EDT *
html webdesign forms
FILLER

My current HTML boilerplate - Manuel Matuzović

QRCode

Every element I use for the basic structure of a HTML document, with explanations why.

Usually when I start a new project, I either copy the HTML structure of the last site I built or I head over to HTML5 Boilerplate and copy their boilerplate.

https://html5boilerplate.com/

https://www.matuzo.at/blog/html-boilerplate/
June 16, 2021 at 1:58:03 PM EDT *
webdesign html boilerplate
FILLER

7 Alternatives to the <div> HTML Tag

QRCode
  • The Main Element
  • The Section Element
  • The Aside Element
  • The Article Element
  • The Nav Element
  • The Footer Element

HTML5 Doctor has a really handy flowchart to help answer that question:
http://html5doctor.com/downloads/h5d-sectioning-flowchart.png

https://medium.com/@zac_heisey/7-alternatives-to-the-div-html-tag-7c888c7b5036
April 11, 2021 at 2:08:28 PM EDT *
html webdesign
FILLER

The Front-End Checklist

QRCode

An Exhaustive List of all the Elements you need to have/test Before Launching your Website To Production.

https://codeburst.io/the-front-end-checklist-8b2292fdda44
June 21, 2019 at 10:56:03 AM EDT *
css webdesign html
FILLER

Web Forms - Dive Into HTML5

QRCode

Everybody knows about web forms, right? Make a

, a few elements, maybe an , finish it off with an button, and you’re done.

You don’t know the half of it. HTML5 defines over a dozen new input types that you can use in your forms.

http://diveintohtml5.info/forms.html
April 11, 2018 at 12:29:16 PM EDT *
books html
FILLER

HTML5 Boilerplate - A rock-solid default for HTML5 awesome.

QRCode
http://html5boilerplate.com/
February 9, 2013 at 7:33:58 PM EST *
webdesign html css
FILLER

HTML5 Videos: 10 Things Designers Need to Know

QRCode
http://www.hongkiat.com/blog/html5-videos-things-you-need-to-know/
December 26, 2012 at 9:45:42 AM EST *
video html
FILLER

zen-coding - Project Hosting on Google Code

QRCode
http://code.google.com/p/zen-coding/
May 4, 2010 at 9:08:31 AM EDT *
html css webdesign
FILLER
Shaarli · The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community · Documentation
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community