Skip to content

Commit

Permalink
readability enhanced
Browse files Browse the repository at this point in the history
added blank line after every para and fix some typo
  • Loading branch information
lisztomania23 committed Nov 10, 2023
1 parent 0c849dc commit a46cc2d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
19 changes: 14 additions & 5 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ var aText = [
"transferred via HTTPS,",
"communicating via TCP/IP,",
"on the Internet. 😮‍💨",
"Now, let's start by writing 'Hello, World!' on a webpage.",
"",
"Let's start by writing 'Hello, World!' on a webpage.",
"Open a code editor like Notepad, VSCode, or any other of your choice.",
"Type 'Hello, World!', and save it with a .html extension.",
"Open the saved file in a web browser, and voila! 🎉",
"You've just put 'Hello, World!' on a webpage. 🙌",
"",
"Now markup and let the browser know what you're putting on the webpage.",
"Aye, that's why we call it hyper text mark-up language!",
"Try putting your cat image using the <img> tag.",
Expand All @@ -24,14 +26,16 @@ var aText = [
"Also, you put attributes in the opening tag.",
"<input type='tel' name='phone'>",
"<button type='submit'>Send</button>",
"Now, come back to where we left off.",
"",
"Now, come back to where we left off,",
"Add one more caption with a little more description.",
"<p>Be careful—she might try to scratch down your whole face, but worry not, she got soft paws and might be just asking for milk.</p>",
"<img> is an inline element, so we would put a line break between <img> and <p>, but <p> is not, it is a block element taking the whole block space, and we don't need a line break between <p>.",
"<img src='pictures/kitty-images/purr.jpg' alt='my green eye baby kito purr'>",
"<br>",
"<p>Meet my tiny paw, Purr! 🐾😺</p>",
"<p>Be careful—she might try to scratch down your whole face, but worry not, she got soft paws and might be just asking for some milk.</p>",
"",
"Now, put everything in an HTML standard skeleton:",
"<!DOCTYPE html> ",
"<html lang='en'>",
Expand All @@ -49,8 +53,9 @@ var aText = [
"</main>",
"</body>",
"</html>",
"This standard structure begins with <!DOCTYPE html>, defining the document type. Within <html>, the content resides. The <head> includes the webpage title. The <body> contains the visible content, including the image and text",
"Okay, now what more do you want to put",
"This standard structure begins with <!DOCTYPE html>, defining the document type. Within <html>, the content resides. The <head> includes the webpage title. The <body> contains the visible content, including the image and text.",
"",
"Okay, now what more do you want to put.",
"Let's make an organized list of things she likes:",
"<ol>",
"<li>Milk</li>",
Expand All @@ -63,17 +68,20 @@ var aText = [
"<li>Tidy Table</li>",
"<li>Laws of Gravity</li>",
"</ul>",
"",
"Let's add a few more images and a 'View more' button to visit her Instagram:",
"<img src='/images/purr-bath.jpg' alt='cat in a pool in sunlight'>",
"<img src='images/purr-caught-red-dot.jpg' alt='cat trying to taste red dot'>",
"<button href='https://www.instagram.com/FuriousPawFury'>View more of Purr</button>",
"",
"You could also allow people to add comments:",
"<label for='comment'>Comment:</label>",
"We added the 'for' attribute to the label for better accessibility,",
"the 'name' attribute to the input to identify where to save the input,",
"and the 'href' attribute to the button for the address of the database.",
"<input type='text' id='comment' name='comments'>",
"<button type='submit' href='purr-inbox.php'>Send</button>",
"",
"Let's see:",
"<!DOCTYPE html> ",
"<html lang='en'>",
Expand Down Expand Up @@ -109,7 +117,8 @@ var aText = [
"</main>",
"</body>",
"</html>",
"This much would be good, I think. Keep updating and adding more stuff so her fans won't miss anything.",
"",
"This much would be good, I think. Keep updating and adding more stuff so her fans won't miss anything. 👀😸",
"Visit MDN docs (https://developer.mozilla.org/en-US/docs/Web/HTML) to know about more elements and their attributes and uses.",
"We'll see styling the webpage with CSS another day.",
"Now, go and stack some coffee cups! ☕☕☕"
Expand Down
4 changes: 2 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ html {
line-height: 1.5em;
position: relative;
scroll-behavior: smooth;
overflow-x: hidden;
/* overflow-x: hidden; */
}

body {
Expand Down Expand Up @@ -164,4 +164,4 @@ button {
button,
a:hover {
cursor: url("img/icons8-hand-cursor-32.png"), auto;
}
}

0 comments on commit a46cc2d

Please sign in to comment.