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

HTML CSS Challenges/Form Project#236

Open
anuthapaliy wants to merge 4 commits intoCodeYourFuture:mainfrom
anuthapaliy:main
Open

HTML CSS Challenges/Form Project#236
anuthapaliy wants to merge 4 commits intoCodeYourFuture:mainfrom
anuthapaliy:main

Conversation

@anuthapaliy
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Member

@SallyMcGrath SallyMcGrath left a comment

Choose a reason for hiding this comment

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

Thanks for your work @anuthapaliy . 🙏

I think there's a bit more to do here. When I ran your PR in Lighthouse, it scored 66. Take a look. There's lots of helpful information in Lighthouse to teach you how to fix the problems. Follow the links where it says "Read more"

Screenshot 2023-02-28 at 19 29 17

Comment thread Form-Controls/index.html Outdated

<section>

<label for="name">enter your name</label>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Have you installed Prettier? The style guide can help you do this: https://syllabus.codeyourfuture.io/guides/code-style-guide#using-prettier-to-format-code-automatically

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thank you sally, i will work on it.

Comment thread Form-Controls/index.html Outdated
</form>


<section>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there another html element we can use to group a set of fields in a form?

Comment thread Form-Controls/index.html
<br>
<section>
<label for="colors">Choose your colors:</label>
<input type="colors" name="colors" id="colors">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What is this input doing here? What is its function? Can you talk me through it?

Comment thread Form-Controls/styles.css
padding:0
}
.body{
background-position: center;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What are you positioning here? There are two background-image rules on this selector but no background image. What were you going for?

Comment thread Form-Controls/styles.css
margin:0;
padding:0
}
.body{
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
.body{
body{

Typo? (install Prettier!)

Comment thread Form-Controls/styles.css

main{
display: grid;
grid-template-columns: auto;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do you need these grid rules of auto? Take a look in Devtools at these rules and try unchecking the box next to each. What happens? Why?

https://developer.chrome.com/docs/devtools/css/issues/

Comment thread Form-Controls/styles.css
background-size: cover;
font-family: Georgia, 'Times New Roman', Times, serif;
margin-top: 30px;
font-size: 15px;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's rarely a good idea to set font sizes at less than 16px for body copy. Your site may actually get downranked by Google for doing this.

Comment thread Form-Controls/styles.css

}
button{
margin-left: 200px;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What will happen when the viewport is 280px wide? Try looking at your layout in Devtools devices mode and choosing different devices.

https://developer.chrome.com/docs/devtools/device-mode/

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