Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update style.css #9

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 94 additions & 2 deletions html-forms/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,100 @@
/>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<main></main>
<main>
<form>
<fieldset>
<legend>Shipping Information</legend>
<div>
<label for="name">Full Name:</label>
<input
id="name"
type="text"
name="name"
placeholder="Enter your full name"
/>
</div>
<div>
<label for="location">Zipcode:</label>
<input
id="location"
type="text"
name="zipcode"
autofocus="on"
maxlength="5"
required
/>
</div>
</fieldset>
<div>
<label for="form-message">Your message:</label>
<textarea
id="form-message"
name="message"
autofocus="on"
required
maxlength="200"
placeholder="How can I help you?"
></textarea>
</div>
<div>
<label for="password">Password:</label>
<input id="password" type="password" name="password" minlength="8" />
</div>
<div>
<h2>Favorite Color:</h2>
<div>
<input id="red" name="color" type="radio" value="red" />
<label for="red">Red</label>
</div>
<div>
<input id="blue" name="color" type="radio" value="blue" />
<label for="blue">Blue</label>
</div>
<div>
<input id="white" name="color" type="radio" value="white" />
<label for="white">White</label>
</div>
</div>
<div>
<h2>Choose your monster's features:</h2>
<div>
<input name="scales" type="checkbox" id="scales" />
<label for="scales">Scales</label>
</div>
<div>
<input name="horns" type="checkbox" id="horns" />
<label for="horns">Horns</label>
</div>
<div>
<input name="wings" type="checkbox" id="wings" />
<label for="wings">Wings</label>
</div>
</div>
<div>
<h2>Choose a font:</h2>
<select name="fonts" size="1">
<option value="arial">Arial</option>
<option value="times">Times New Roman</option>
<option value="comicsans">Comic Sans</option>
<option value="papyrus">Papyrus</option>
</select>
</div>
<div>
<label for="phone">Phone #:</label>
<input
id="phone"
type="text"
name="phone"
pattern="\d{3}[\-]\d{3}[\-]\d{4}"
placeholder="xxx-xxx-xxxx"
/>
</div>
<button type="submit">Submit</button>
<button type="reset">Reset</button>
</form>
</main>
</body>
</html>
9 changes: 9 additions & 0 deletions intro-to-media-queries/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
p {
font-size: 14px;
}

@media all and (min-width: 800px) {
p {
font-size: 24px;
}
}