Tag: HTML

  • RE:Creation No. 3: Dorset Cereals | Front panel | HTML (markup)

    Previously, we have tackled the Text stage of RE:Creation wherein we came up with a textual content of the front panel of the packaging which is our basis for this stage.

    Summary

    RE:Creation: HTML
    A diagram showing the RE:Creation steps in HTML stage.
    1. Mark up the structure in HTML
    2. Mark up the groups in HTML
    3. Mark up the individual elements in HTML

    Markup

    Marking up means identifying elements, defining, and labeling them. It is just like in Text stage when we labeled elements and grouped them — but this time, we take it a step further by using HTML tags which has the capability to define where a markup starts and where it ends.

    In HTML, we’ll use start and end tags to enclose elements. Once elements are enclosed by these tags, web browsers will be able to interpret and display them accordingly.

    Syntax

    Speaking of HTML tags, they have a syntax for us to follow. Syntax is the arrangement of symbols and rules that constitute the correct form of a language just like HTML. As an example for the label “Header”, the HTML tag will be <header> and </header>; for “Main”, <main> and </main>; and for “Footer”, <footer> and </footer>.

    Readability

    It is one thing to make our content readable for web browsers (for them to properly interpret and display it) and another thing to make it readable for humans (us and other coders who will be reading or modifying our works).

    The fact that we have marked up our content in HTML tags, that makes it readable for web browsers. Indentation, on the other hand, makes it readable for human readers. All content within structures can be indented; the same as content within groups. In this way, we could see how the content is nested by looking at it.

    Step 1: Mark up the structure in HTML

    • Enclose the structure labels in “less than” (<) and “greater than” (>) signs
    • For their delimiters or boundaries, simply add a “slash” after the “less than” (<) sign
    • Convert the labels to the “small caps” (e.g., “Header” becomes “header”)
    • Indent the nested elements within the structure

    See the Pen RE:Creation No. 3: Dorset Cereals | Front panel | HTML – Mark up the structure in HTML by Brian Dys Sahagun (@briandys) on CodePen.

    At this point in our activity, we can already view the result of our markup in a web browser. In our demo in CodePen, you can see on one side what the browser will display given our markup. It’s not apparent because the text elements are still placed side by side, but the result already shows the structure we made: the “Header”, starting with “Product name”, the “Main”, starting with “Product main description”, and “Footer”, starting with “(none)”.

    Step 2: Mark up the groups in HTML

    • Similarly with step 1, mark up the groups by converting their labels into HTML start and end tags
    • For the syntax, aside from making everything in “small caps”, convert spaces to underscores (“_”)
    • Again, indent the nested elements within groups for readability

    See the Pen RE:Creation No. 3: Dorset Cereals | Front panel | HTML – Mark up the groups in HTML by Brian Dys Sahagun (@briandys) on CodePen.

    Step 3: Mark up the individual elements in HTML

    Individual elements are the actual textual content inside the structure and groups. We could combine steps 2 and 3 once we’re used to marking up content in HTML.

    • Similarly with step 2, mark up the individual elements by converting their labels into HTML start and end tags
    • As an added effort for readability, we could remove empty lines between groups and their nested content, to make them visually grouped together

    See the Pen RE:Creation No. 3: Dorset Cereals | Front panel | HTML – Mark up the individual elements in HTML by Brian Dys Sahagun (@briandys) on CodePen.


    The result of our markup may not visually show much improvement but we’re already paving the path for a solid basis of HTML and CSS.

    For our next activity, we will be going into the details of HTML tags. Since HTML is a language, it has a vocabulary — meaning, it already has a set of tags that is equivalent to what we created at this stage.

  • Beware the Pixel Police

    I saw what you did there. The padding between form fields is 24 pixels. Please remove 8 pixels from that gap. Make sure to use the components provided.

    Chief of Pixel Police

    Well… yeah… it’s your fault. Components are ready-built — why can’t you just use it with all its pre-built goodnes. Why take matters into your own hands and decide 24 pixels here and 32 pixels there. Don’t ever do that next time. If you do, make sure to just move 1 pixel at a time to avoid detection. My brain whispered to me.

    Beware the Pixel Police
    Unsplash Photo

    Can sarcasm be used for fun? Sure can! Actually, I don’t have any beef in using components, no matter how they scream for adjustments. But, hey, we are designers. We design — that’s what we do. We take, we break, and make it new again, in a different light. Better, I hope.

    Riding on CSS

    And this post is really about answering the question, “Can I really design in my browser?” Because I was thinking of using Figma in creating the visual design of the warning “Beware the Pixel Police”. But Figma also uses CSS, so I thought I’d just go straight up using CSS.

    Get the style


    You may check out the HTML and CSS in CodePen:

  • The Design of Target Areas

    A target area in a website or app is an area that enables a user to interact with the interface through touch or a pointing device such as a mouse.

    Examples are links, buttons, form elements, etc.

    According to Fitts’s law, “the time required to rapidly move to a target area is a function of the ratio between the distance to the target and the width of the target”.

    For a target area to be easily tapped or clicked by the user, its area must be adequate enough to be interacted upon.

    Visually, it may appear small (such as an icon), however, it could still have an adequate target area.

    See the Pen The Design of Target Areas by Brian Dys (@briandys) on CodePen.

  • Revisiting HTML – Content Categories and Sectioning Roots

    It’s good to revisit several concepts in HTML for the purpose of optimally structuring it—for all kinds of usage and accessibility.

    Content Categories

    Every HTML element is a member of one or more content categories — these categories group elements that share common characteristics. This is a loose grouping (it doesn’t actually create a relationship among elements of these categories), but they help define and describe the categories’ shared behavior and their associated rules, especially when you come upon their intricate details. It’s also possible for elements to not be a member of any of these categories.

    Source

    Sectioning Roots

    A sectioning root is an HTML element that can have its own outline, but the sections and headings inside it do not contribute to the outline of its ancestor. Besides <body> which is the logical sectioning root of a document, the following elements often introduce external content to the page: <blockquote>, <details>, <fieldset>, and <figure>.

    Source
  • What’s a good practice to completely redesign an existent CSS?

    Styling in CSS is always dependent on the structure of HTML. If you have control over the structure of HTML, plan to redesign it also.

    A good rule of thumb is to first, set up a system.

    1. Usability and Accessibility (e.g., making a link’s target area large enough for touch or pointing device, making the structure of HTML accessible to screen readers)
    2. Visual Design
      1. Nature (style of the element as a standalone)
      2. Layout (style of the element in relation to other elements)
      3. Colors (with nature and layout alone, the design should be able to work even in black and white colors)
      4. Graphics (border, border-radius, box-shadow)
      5. Typography (style of text)
      6. Transitions and Animations

    You could notice that this system is designed to build on top of the previous one. Meaning usability and accessibility come first before visual design. The same goes for the considerations under visual design.


    Originally published in Quora

  • The Horse in Motion

    Dabbling on RE:Creation No. 3—will publish soon.

    See the Pen RE:Creation No. 3: The Horse in Motion | CSS by Brian Dys (@briandys) on CodePen.

    Reference

    Wikipedia

  • A Two-Week Timeframe

    Recently, I’ve been drafting a Project Communications Framework that will guide the design team in handling design projects—from alignments to presenting our works. Committing to a timeframe is one important aspect and here’s a visualization of it.

    See the Pen A Two-Week Timeframe by Brian Dys (@briandys) on CodePen.

  • Nutrition Facts Label: HTML – Round 2

    Summary

    • Convert the Tags into <div> and <span>
    • Classify the Elements by Adding class Attribute

    Demo

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

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