Tag: HTML

  • Nutrition Facts Label: HTML – Round 1

    Summary

    • Start with the Basic HTML Document Markup
    • Mark up the Structure, Groups, and Individuals in HTML

    Demo

    See the Pen RE:Creation No. 2: Nutrition Facts Label | HTML (Round 1) by Brian Dys Sahagun (@briandys) on CodePen.

    [ntt_percept post=”nutrition-facts-label” “ntt_rec_nav”]

  • RE:Creation No. 1: Google | HTML (Round 2)

    Summary

    • Convert the marked up groups into <div class="group-name">
    • Instead of <div>, mark up the group of form elements in <form>
    • Mark up the text nodes in <div class="text">
    • Add class attributes to elements that need to be differentiated

    (more…)

  • Timeline Visual Design on Article Dates

    One thing to consider when designing the visuals of a timeline is that the highlight (in the form of a bullet point) must be on the date.

    See the Pen Timeline Visual Design on Article Dates by Brian Dys (@briandys) on CodePen.

  • RE:Creation No. 1: Google | HTML (Round 1)

    Summary

    • Mark up the structure in HTML
    • Mark up the groups in HTML
    • Mark up the individuals in HTML

    (more…)

  • How do I know which CSS attributes work on each HTML tags?

    There are initial points to take into consideration in order to make sense of the connection between HTML elements (<p>, <a>, <div>, etc.) and CSS properties (display, font-size, background-color, etc.).

    1. The nature of the HTML element
    2. The purpose of the HTML element

    You might notice that it is all about HTML elements. This is because HTML elements already have implicit CSS rules in them thru the browser. It is called the User Agent Styles or browser default styles.

    Now your question borders around creating your own styles, thus, overriding the default styles.

    (more…)
  • If we want to start a new line, which tag is used in HTML?

    Do not use <br>. Repeat: do not use <br>.

    HTML is about content.

    <br> is an HTML element but it is about the presentation of a break (visually a line break – not sure about aurally).

    MDN sees the use of <br> in poems and addresses wherein the division of lines is important.

    (more…)
  • Putting “Skip to Content” Into Context

    Does the HTML markup of your website has an accessibility function in the form of “Skip to Content”? If yes, then you would notice that it is located at the topmost of the markup. This is as such in order to make it the first focus when using keyboard to navigate.

    Now you may ask, “Shouldn’t the document title be at the topmost of the document?”

    Not when you put this accessibility function into the context of its intended use. The user, upon arriving at your website might have come from a link or have typed a URL into the web browser. That could’ve served the purpose of document title that ensures the user where they are going to or arriving at.

    The second part of this context is the user being able to go directly to the content — skipping every element that isn’t part of their purpose for visiting the website.

  • 3 Layers of an Active Element

    Imagine this ombre cake:

    Ombre Cake
    Photo by sackerman519 on Flickr.

    It looks yummy and it has layers.

    It is similar with active elements – they must have three levels for the purpose of CSS.

    The first level is the textual element itself. The second level holds the function of the active element (e.g., <a> or <button>). The third level is for positioning. Initially, it appears that the default way to put it is this way:

    [html]
    <a>Label</a>
    [/html]

    And since this is for the purpose of CSS, we must implement Framing for the textual element and for positioning. These frames will act as hooks for CSS. Look at this example:

    [html]

    <div> <!– Frame for positioning –>
    <a>
    <span> <!– Frame for textual element –>
    Label
    </span>
    </a>
    </div>

    [/html]

    Here’s a demo to show a floated button:

    Oh and by the way, here’s an ombre potato:

    Ombre Potato
    Source: Ombre Potato and Cheese Torte on Green Gourmet Giraffe
  • UI Condition

    Similar to UI State (which only has active or inactive), UI Condition can be anything to describe the condition of an object.

    Example

    To denote that an article entry does not have content, we add the class ui-cond__entry--blank which translates to “the UI condition of entry is blank”.

    <div class="ui-cond__entry–blank">
    …
    </div>