Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

London Class 9 - Karleen Richards - HTML/CSS Coursework - Week 1 - #249

Open
karleenmsrichards wants to merge 14 commits into
CodeYourFuture:masterfrom
karleenmsrichards:master
Open

London Class 9 - Karleen Richards - HTML/CSS Coursework - Week 1#249
karleenmsrichards wants to merge 14 commits into
CodeYourFuture:masterfrom
karleenmsrichards:master

Conversation

@karleenmsrichards

Copy link
Copy Markdown

Volunteers: Are you marking this coursework? You can find a guide on how to mark this coursework in HOW_TO_MARK.md in the root of this repository

Your Details

  • Your Name:
  • Your City:
  • Your Slack Name:

Homework Details

  • Module:
  • Week:

Notes

  • What did you find easy?

  • What did you find hard?

  • What do you still not understand?

  • Any other notes?

@karleenmsrichards karleenmsrichards changed the title London Class 9 - Karleen Richards - HTML/CSS - Week 1 London Class 9 - Karleen Richards - HTML/CSS Coursework - Week 1 Oct 27, 2022
Fixed HTML sematic elements and CSS names

@PeteLindsell PeteLindsell left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have created a really good looking design which is surprisingly difficult to accomplish. I have made quite a few comments which I am happy to discuss any that dont make sense.

This is really good for your first week of html css!

Comment thread css/style.css Outdated

main {
margin-bottom: 50px;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Being constant about line gaps will make the code easier to read. There is no need for this one here.

Comment thread css/style.css
Comment on lines +36 to +42
ul li a:hover {
color: black;
}

.border-bottom {
border-bottom: 1px solid black;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to keep indention consistent throughout your code

Comment thread css/style.css Outdated
margin-bottom: 50px;
}

ul li a {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will target all a tags within uls on your site using a class to just target the menu could be better

Comment thread css/style.css Outdated
}

.h1 {
font-size: 30px;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting font sizes as pixels will break one of the requirements of accessibility using rem here would be better

Comment thread css/style.css
Comment on lines +83 to +91
.logo {
display: flex;
flex-direction: row;
font-size: 80px;
font-weight: bold;
justify-content: center;
padding-right: 68px;
text-decoration: underline;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you have done some really good experiments of flexbox throughout this file! After you get the effect you want it is worth disabling the attributes in the browsers inspector to check what they are actually doing. In this instance display: flex, flex-direction: row; and justify-content: center; will have no effect because they are properties to set on a parent element to affect its children and this element doesnt have any children

Comment thread css/style.css
Comment on lines +223 to +224
left: 0;
bottom: 0;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are not doing anything here. The footer is looking offset to the right because you are setting width: 100%; which the browser takes and then adds the padding to it. if you remove width the footer will naturaly fill the space

Comment thread index.html Outdated
<section class="top-right">
<p class="top-right-p1">BRITAIN</p>
<p class="top-right-p2">SUBSCRIBE</p>
<img class="hburger-img" alt="Picture of a hamburger menu" src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQhhwlrve66B8GHVhBRth6kDr6ml2SQR73R5g&usqp=CAU">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alt text is difficult you generally dont want to describe the image instead state its function. Here something like "Menu" or "Display main menu" would be more suitable

Comment thread index.html
Comment on lines +63 to +65
<details>
<summary class="aside-border">Top outerwear this winter</summary>
</details>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the detail and summary tag are used as follows

<details>
    <summary>Details</summary>
    Something small enough to escape casual notice.
</details>

The summary is always displayed and the rest of the content of details is hidden until the summary is clicked

Comment thread index.html Outdated
Comment on lines +77 to +81
<h3 class="stories">FASHION NEWS</h3>

<section class="article-container">
<article>
<h1>Styling tips for the puffer</h1>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should only have 1 h1 on a page which uniquely titles the content of the page. After a h1 you can have one or more h2 but you should not skip to h3 or h4

Comment thread index.html Outdated
<h1>Styling tips for the puffer</h1>
<p>There are various ways to style the puffer jacket but there are different rules which depends on numerous
factors. What's the length, what's the fit and what about the color. <strong>Author: Mishy Mish</strong></p>
<button><a class="link"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A link inside a button is not valid. A link should always have a href linking to part of a page or another url. A button will fire some other event such as submitting a form or opening a modal. Links are often designed to look like button but this shoul be done with css rather than a button element

Made changes to <section> tags to <div> tags.
1. Adjusted h tags by followings numerical increments
2. Fixed alt attributes for images to state function etc.
3. Removed button with link inside and added styles in CSS for links.
Changed some semantic tags.
4. Used fixed font sizes, used fixed colour attributes.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants