“HTML -Semantik” Code-Antworten

Semantische HTML

    # Is it a meaningful area of the page?
    	Use an HTML5 block element like <header> or <footer>.
        
    # Does it label the start of a new section?
    	Use a heading (with the right level) like <h2> or <h3>
    
    # Does it navigate to a new page?
    	Use an <a href="/page">
        
    # Does it trigger JS behaviour?
    	Use a <button>
        
    # Does it allow user input?
    	Use a <form> containing <input>s (with <label>s!)
        
    # Is it just for applying some layout/styles?
    	Use something like <div class="grid"> or <span class="big-text">
Patrick Delaney

HTML -Semantik

<span style="font-size: 32px; margin: 21px 0;">Is this a top level heading?</span>
Olagoke kehinde James

Ähnliche Antworten wie “HTML -Semantik”

Fragen ähnlich wie “HTML -Semantik”

Weitere verwandte Antworten zu “HTML -Semantik” auf HTML

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen