0% found this document useful (0 votes)
74 views14 pages

? CSS Keywords (With Simple Explanations)

The document provides a comprehensive list of keywords associated with HTML, CSS, and JavaScript, along with simple explanations for each term. It covers essential concepts such as elements, tags, selectors, properties, and functions that are fundamental for web development. The explanations are designed to be easily understood by beginners.

Uploaded by

Febin Felix
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views14 pages

? CSS Keywords (With Simple Explanations)

The document provides a comprehensive list of keywords associated with HTML, CSS, and JavaScript, along with simple explanations for each term. It covers essential concepts such as elements, tags, selectors, properties, and functions that are fundamental for web development. The explanations are designed to be easily understood by beginners.

Uploaded by

Febin Felix
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Make a numbered list of all keywords that are associated with learning HTML.

Briefly explain each


key word using layman's terms beside each key word.

Of course! Here's a numbered list of important HTML keywords with simple explanations:

1. HTML (HyperText Markup Language)


→ The main language used to create web pages; it tells browsers what the page should show.
2. Element
→ A basic building block of HTML, like a container that holds parts of a webpage (text, images, etc.).

3. Tag
→ Special codes (inside `< >`) used to mark the start or end of an element, like `<p>` for a paragraph.

4. Attribute
→ Extra information added inside a tag to control how an element behaves or looks (like giving an
image a width).

5. Opening Tag
→ The tag that starts an element, like `<h1>` to begin a big heading.

6. Closing Tag
→ The tag that ends an element, usually with a slash, like `</h1>` to close the big heading.

7. Self-closing Tag
→ A tag that doesn’t need an ending because it’s complete by itself, like `<img />` for an image.

8. Nesting
→ Putting elements inside other elements in an organized way (like a list inside a box).

9. Parent Element
→ An element that contains other elements inside it.
10. Child Element
→ An element that is inside another element.
11. DOCTYPE
→ A special line at the very top of an HTML file that tells the browser you’re using HTML5.

12. Head
→ A hidden part of the webpage where you set up things like the title and link stylesheets.
13. Body
→ The main visible part of the webpage where you put all the content like text, images, and links.
14. Title
→ The text that appears in the browser tab (set inside the `<title>` tag).

15. Meta
→ Special hidden tags inside the head that give extra info about the page (like what language it’s in).
16. Link
→ A tag used to connect the page to other files like CSS (for styling).

Printed using ChatGPT to PDF, powered by PDFCrowd HTML to PDF API. 1/14
17. Script
→ A tag used to add JavaScript, which can make the page interactive.
18. Paragraph (`<p>`)
→ A basic block of text.

19. Heading (`<h1>` to `<h6>`)


→ Titles or subtitles of different sizes, with `<h1>` being the biggest.
20. Anchor (`<a>`)
→ A tag that creates links to other pages or websites.

21. Image (`<img>`)


→ A tag used to display a picture on the page.

22. List (`<ul>`, `<ol>`, `<li>`)


→ Tags to create lists: unordered (`<ul>`) with bullets, ordered (`<ol>`) with numbers, and list items
(`<li>`).
23. Div (`<div>`)
→ A box used to group and organize parts of a webpage.
24. Span (`<span>`)
→ A tag used to style or mark a small part of text without breaking it into a new line.

25. Form
→ A way to collect user inputs like names and emails.

26. Input
→ A tag inside a form that creates a space for users to type something.

27. Button
→ A clickable item, usually used in forms.

28. Table
→ Tags (`<table>`, `<tr>`, `<td>`) used to create rows and columns to organize data.
29. Semantic Elements
→ Special tags like `<header>`, `<footer>`, `<article>`, and `<section>` that make the structure of the
page clearer.

30. Comment (`<!-- -->`)


→ Notes you can leave in the HTML that browsers will ignore; useful for reminders.

Would you also like me to make a simple visual diagram showing how these parts fit together? 📄✨

I guess more keywords could be provided.

You're absolutely right! There are even more important HTML keywords that beginners (and even
advanced learners) should know.
Here’s an expanded list, continuing from where we left off:

Printed using ChatGPT to PDF, powered by PDFCrowd HTML to PDF API. 2/14
31. iframe
→ A tag that lets you embed another webpage inside your webpage, like showing a YouTube video.

32. nav
→ A special tag for a group of links, usually used for menus or navigation bars.

33. section
→ A tag used to divide the page into sections (like chapters in a book).
34. article
→ A tag for standalone content like a blog post or a news article.
35. aside
→ A tag for extra content related to the main content, like a sidebar.

36. header
→ A tag that usually contains the title, logo, or navigation for a webpage or section.

37. footer
→ A tag that goes at the bottom of a webpage, often with contact info or copyright.

38. main
→ A tag that marks the main important content of the page.
39. strong
→ A tag to make text bold and show it’s important.

40. em (emphasis)
→ A tag to make text italic and show it’s stressed or important.

41. br (line break)


→ A tag that moves text to the next line without starting a new paragraph.

42. hr (horizontal rule)


→ A tag that adds a horizontal line to separate sections.

43. label
→ A tag in forms that names an input field, like "Name:" next to a text box.
44. textarea
→ A tag for a bigger text box where users can type longer messages.

45. select
→ A tag that creates a dropdown menu in a form.
46. option
→ A tag used inside a select to define the choices in the dropdown.
47. fieldset
→ A tag that groups related form elements together.

48. legend
→ A tag that gives a caption or title for a fieldset.
49. audio
→ A tag used to add sound/music to a webpage.

50. video
→ A tag used to add a video player to a webpage.

Printed using ChatGPT to PDF, powered by PDFCrowd HTML to PDF API. 3/14
51. source
→ A tag used inside audio or video to specify the media file to play.

52. canvas
→ A tag that creates a space where you can draw graphics using JavaScript.
53. figure
→ A tag used for images, diagrams, or code blocks, often grouped with a caption.
54. figcaption
→ A caption for a figure element.

55. datalist
→ A tag that provides a list of suggested options for an input field.
56. progress
→ A tag that shows progress of a task (like a loading bar).

57. meter
→ A tag that shows a measurement within a known range (like a battery level).
58. template
→ A hidden chunk of HTML that can be reused later with JavaScript.
59. blockquote
→ A tag used to show a quotation from another source.

60. cite
→ A tag used to reference the source of a quote or work (like a book or article name).
61. code
→ A tag that displays computer code in a special style.

62. pre
→ A tag that shows text exactly as typed (with spaces and line breaks preserved).
63. small
→ A tag to make text smaller than normal.
64. time
→ A tag that represents a specific time or date.

65. b (bold)
→ A tag to make text bold without implying it's more important.
66. i (italic)
→ A tag to make text italic without implying it's more important.

67. sup (superscript)


→ A tag to show tiny text above the line, like in exponents (e.g., 2⁴).
68. sub (subscript)
→ A tag to show tiny text below the line, like in chemical formulas (e.g., H₂O).

Would you also like me to organize these into categories (like "Text Formatting", "Form Elements",
"Media Elements", etc.) to make it even easier to study? 📚✨
It might be very handy for learning step-by-step!

Printed using ChatGPT to PDF, powered by PDFCrowd HTML to PDF API. 4/14
now make a comprehensive list of all keywords relevant to CSS - provide brief explanations in
layman's terms beside each keyword

Of course! Here's a comprehensive, numbered list of important CSS keywords, with simple layman's
explanations beside each one:

🎨 CSS Keywords (with simple explanations)


1. CSS (Cascading Style Sheets)
→ The language that controls how HTML elements look (like colors, fonts, layout).
2. Selector
→ The part of CSS that chooses which HTML elements to style (like "style all `<p>` tags").

3. Property
→ The feature you want to change, like `color`, `font-size`, or `width`.
4. Value
→ The setting you give to a property (like `red`, `16px`, or `100%`).

5. Declaration
→ A combination of property and value (example: `color: blue;`).
6. Rule / Rule Set
→ A full CSS instruction: selector + declaration block (example: `p { color: blue; }`).
7. Declaration Block
→ The part inside `{}` where all the style instructions are listed.

8. Class Selector (`.`)


→ A selector that styles elements marked with a specific class name (`.menu`).
9. ID Selector (`#`)
→ A selector that styles one specific element with a unique ID (`#header`).

10. Element Selector


→ Styling elements by their HTML tag name (like all `<h1>` elements).
11. Grouping Selector
→ Targeting several elements together (like `h1, h2, p { color: black; }`).
12. Universal Selector (`*`)
→ A selector that targets every element on the page.

13. Descendant Selector (space)


→ Styling elements inside other elements (`div p` styles all `<p>` inside `<div>`).
14. Child Selector (`>`)
→ Styling elements that are direct children (`div > p`).

15. Adjacent Sibling Selector (`+`)


→ Styling an element right after another (`h1 + p`).

Printed using ChatGPT to PDF, powered by PDFCrowd HTML to PDF API. 5/14
16. General Sibling Selector (`~`)
→ Styling all siblings that come after (`h1 ~ p`).
17. Pseudo-class
→ Special states of elements (like `:hover` for when you move the mouse over).
18. Pseudo-element
→ Styling parts of an element (like `::first-letter` to style the first letter).

19. !important
→ A way to force a style to be stronger than others.
20. Inline Style
→ CSS written directly inside an HTML tag using `style="..."`.
21. External Stylesheet
→ A separate `.css` file linked to your HTML file.
22. Internal Stylesheet
→ CSS written inside a `<style>` tag within your HTML file.
23. Box Model
→ The idea that every HTML element is a box made of content, padding, border, and margin.
24. Content
→ The actual text or image inside the box.

25. Padding
→ Space between the content and the border.

26. Border
→ A line that wraps around the padding and content.

27. Margin
→ Space outside the border, separating it from other elements.

28. Width
→ How wide an element is.
29. Height
→ How tall an element is.

30. Max-width / Min-width


→ Setting a maximum or minimum width that an element can shrink or grow.

31. Display
→ Controls how an element behaves (block, inline, flex, grid, etc.).

32. Block Element


→ An element that starts on a new line and stretches the full width.

33. Inline Element


→ An element that stays in line with other elements (like `<span>` or `<a>`).
34. Flexbox
→ A layout system that makes it easy to align and space elements.
35. Grid
→ Another layout system that divides the page into rows and columns.

Printed using ChatGPT to PDF, powered by PDFCrowd HTML to PDF API. 6/14
36. Position
→ How elements are placed (static, relative, absolute, fixed, sticky).

37. Static Position


→ The default; elements appear where they naturally fall.
38. Relative Position
→ Move an element a little from where it would normally be.
39. Absolute Position
→ Move an element to a specific place on the page (relative to its nearest positioned parent).

40. Fixed Position


→ Stays in the same place even when you scroll.

41. Sticky Position


→ Switches between relative and fixed based on scroll.

42. Top / Right / Bottom / Left


→ Moves positioned elements from edges.
43. Z-index
→ Controls which elements are on top when elements overlap.
44. Overflow
→ What happens if content is too big for its container (visible, hidden, scroll, auto).

45. Visibility
→ Whether the element is visible or hidden but still takes up space.

46. Opacity
→ Controls how transparent an element is.

47. Background-color
→ Sets the background color.
48. Background-image
→ Sets an image as the background.
49. Color
→ Changes the text color.

50. Font-family
→ Sets the font type (like Arial, Times New Roman).

51. Font-size
→ Controls the size of the text.

52. Font-weight
→ Makes text thicker (bold).

53. Font-style
→ Makes text italic.
54. Text-align
→ Aligns text left, center, right, or justify.

55. Text-decoration
→ Adds lines like underline, overline, or line-through.

Printed using ChatGPT to PDF, powered by PDFCrowd HTML to PDF API. 7/14
56. Line-height
→ Adjusts the space between lines of text.

57. Letter-spacing
→ Adjusts the space between letters.
58. Word-spacing
→ Adjusts the space between words.

59. List-style
→ Controls how lists look (bullets, numbers, none).

60. Border-radius
→ Rounds the corners of an element.

61. Border-style / Border-width / Border-color


→ Controls the style, thickness, and color of borders.

62. Box-shadow
→ Adds a shadow around an element.
63. Text-shadow
→ Adds a shadow behind text.
64. Transition
→ Smoothly animates changes (like color changes on hover).

65. Transform
→ Changes the size, rotate, or move elements.

66. Animation
→ Creates more complex movements over time (like bouncing, sliding).

67. Keyframes
→ Defines stages of an animation.
68. Media Queries
→ Makes a page responsive by applying styles based on screen size.
69. Variables (Custom Properties)
→ Lets you reuse values by creating custom names (example: `--main-color: red;`).

70. Inherit
→ Makes an element copy a style from its parent.

71. Initial
→ Resets a property to its default value.

72. Unset
→ Removes any value, making the property act as if it's not set.
73. Calc()
→ A function to do math inside CSS (example: `width: calc(100% - 50px)`).
74. Clamp()
→ A function to set flexible sizes with a minimum, preferred, and maximum value.

75. Rem
→ A size unit based on the root font size (usually easier to manage than px).

Printed using ChatGPT to PDF, powered by PDFCrowd HTML to PDF API. 8/14
76. Em
→ A size unit relative to the parent element’s font size.

77. vh / vw (Viewport Height/Width)


→ Units based on the size of the screen.
78. Percent (%)
→ A unit based on the size of the parent element.

79. Pixel (px)


→ A basic unit for measuring length on screens.

80. Cursors
→ Changes how the mouse pointer looks (like a pointer or crosshair).

Would you also like me to make a category-based version (like "Layout", "Text", "Animation", etc.) to
make it even easier to study? 🎯 It can really speed up learning!
Shall I? 📚✨

now make a comprehensive list of all keywords relevant to Javascript - provide brief explanations in
layman's terms beside each keyword

Of course! Here's a comprehensive, numbered list of important JavaScript keywords, with simple
layman's explanations beside each one:

🧠 JavaScript Keywords (with simple explanations)


1. JavaScript
→ A language that lets you add interactivity and logic to your website (like buttons that do something).

2. Script
→ A block of JavaScript code inside an HTML page.
3. Variable
→ A container to store data (like a box to keep a number, word, or anything else).
4. let
→ A way to create a changeable variable.

5. const
→ A way to create a variable that cannot be changed.

6. var
→ An older way to create a changeable variable (not recommended for most new code).

7. Function
→ A set of instructions you can reuse whenever needed.
8. return
→ Sends a value back from a function to wherever it was called.

Printed using ChatGPT to PDF, powered by PDFCrowd HTML to PDF API. 9/14
9. if
→ Checks if something is true, and runs a block of code if it is.
10. else
→ Runs another block of code if the `if` condition is false.
11. else if
→ Lets you check another condition if the first `if` fails.

12. switch
→ A shortcut to check many conditions and choose which block of code to run.

13. case
→ A possible match inside a `switch` statement.

14. default
→ A fallback if none of the `case` options match in a `switch`.
15. for
→ A loop that repeats code a set number of times.
16. while
→ A loop that repeats code while a condition is true.

17. do...while
→ A loop that runs the code at least once, then keeps repeating if a condition is true.

18. break
→ Stops a loop or a `switch` early.

19. continue
→ Skips the current loop step and jumps to the next one.
20. try
→ Tests a block of code for errors.
21. catch
→ Runs code if an error happens in the `try` block.

22. finally
→ Runs code after `try` and `catch`, no matter what.

23. throw
→ Creates your own error to stop code on purpose.

24. new
→ Creates a new object or instance from a class.
25. class
→ A blueprint for creating similar objects.
26. constructor
→ A special function inside a class that sets up the object.

27. this
→ Refers to the object that is currently being used.

28. super
→ Refers to the parent class when you want to access or reuse it.

Printed using ChatGPT to PDF, powered by PDFCrowd HTML to PDF API. 10/14
29. import
→ Brings code from another file or module into your file.
30. export
→ Makes code (like functions, classes, variables) available to other files.

31. async
→ Makes a function run in the background without stopping the whole program.

32. await
→ Waits for an async operation (like loading data) to finish before moving on.

33. Promise
→ An object that represents something that will finish later (like a package you ordered).

34. yield
→ Used in special functions (generators) to pause and later continue the function.
35. typeof
→ Checks the type of a value (like number, string, object).

36. instanceof
→ Checks if an object belongs to a certain class or type.

37. delete
→ Removes a property from an object.

38. in
→ Checks if a property exists inside an object.

39. with ( ⚠️ not recommended)


→ Shortens object property access (but considered bad practice today).
40. debugger
→ Pauses the code at that point when you're debugging.
41. window
→ Represents the whole browser window — the main object for everything.

42. document
→ Represents the webpage itself; lets you change what's on the page.

43. console
→ Lets you print messages to the browser’s console (very useful for testing).

44. alert
→ Shows a popup message box on the screen.
45. prompt
→ Shows a popup asking the user to type something.

46. confirm
→ Shows a popup asking the user to accept (OK) or cancel.
47. setTimeout
→ Runs a function once after waiting for a certain time.
48. setInterval
→ Repeats a function over and over after every time gap.

Printed using ChatGPT to PDF, powered by PDFCrowd HTML to PDF API. 11/14
49. clearTimeout
→ Cancels a setTimeout that hasn’t run yet.
50. clearInterval
→ Cancels a repeating setInterval.

51. addEventListener
→ Lets you run code when something happens (like a click or hover).
52. event
→ The actual thing that happened, like a click, input, or keypress.
53. target
→ Refers to the specific element that triggered the event.

54. innerHTML
→ Lets you read or change the HTML content inside an element.
55. innerText
→ Lets you read or change just the visible text inside an element.

56. value
→ Gets or sets the value of form elements (like what's typed into a text box).
57. getElementById
→ Finds an element by its unique ID.
58. getElementsByClassName
→ Finds all elements with a certain class name.

59. getElementsByTagName
→ Finds all elements with a certain tag name (like all `<div>`s).
60. querySelector
→ Finds the first element that matches a CSS-style selector.

61. querySelectorAll
→ Finds all elements matching a CSS-style selector.
62. parentNode
→ Refers to an element’s parent in the HTML tree.
63. childNodes
→ Refers to an element’s children (could be elements or text).

64. appendChild
→ Adds a new child element to a parent.
65. removeChild
→ Removes a child element from its parent.

66. createElement
→ Creates a new HTML element using JavaScript.
67. cloneNode
→ Copies an element.
68. JSON
→ A way to format and share data easily (JavaScript Object Notation).

Printed using ChatGPT to PDF, powered by PDFCrowd HTML to PDF API. 12/14
69. parse
→ Turns a JSON string into a JavaScript object.
70. stringify
→ Turns a JavaScript object into a JSON string.

71. Array
→ A list-like collection of items (like `[1, 2, 3]`).
72. Object
→ A collection of properties in key-value pairs (like `{name: "John", age: 30}`).
73. Map
→ A newer way to store key-value pairs where keys can be any type.

74. Set
→ A collection of unique values (no duplicates allowed).
75. push
→ Adds an item to the end of an array.

76. pop
→ Removes the last item from an array.
77. shift
→ Removes the first item from an array.
78. unshift
→ Adds an item to the start of an array.

79. slice
→ Copies part of an array.
80. splice
→ Changes an array by adding/removing items.

81. forEach
→ Runs a function once for each item in an array.
82. map (array method)
→ Creates a new array by changing every item in the original.
83. filter
→ Creates a new array with only the items that meet a condition.

84. reduce
→ Uses all array items to create a single value (like a total).
85. includes
→ Checks if an array or string contains a certain value.

86. find
→ Returns the first item that matches a condition.
87. sort
→ Arranges the items in an array in a certain order.
88. reverse
→ Reverses the order of items in an array.

Printed using ChatGPT to PDF, powered by PDFCrowd HTML to PDF API. 13/14
89. length
→ Tells you how many items are in an array or how many characters are in a string.
90. String
→ Text in JavaScript (like `"Hello"`).
91. Number
→ A numeric value in JavaScript.
92. Boolean
→ A true or false value.
93. null
→ An intentional empty value.

94. undefined
→ A variable that hasn't been given a value yet.
95. Symbol
→ A unique value mainly used internally in JavaScript.
96. NaN (Not a Number)
→ A special value that shows when a number operation failed.
97. Infinity
→ A value larger than any number.
98. isNaN
→ A function that checks if something is "Not a Number."

99. parseInt
→ Converts a string into an integer number.
100. parseFloat
→ Converts a string into a decimal number.

✅ That's 100 essential JavaScript keywords, explained simply!


Would you also like me to organize them into groups (like "Variables & Data Types", "Functions",
"Loops", "DOM Manipulation", etc.) for even easier study? 📚✨
Shall I go ahead and do that too? 🚀

Printed using ChatGPT to PDF, powered by PDFCrowd HTML to PDF API. 14/14

You might also like