- HyperText Markup Language is the foundation of everything digital as it serves as a channel for different types of content
- HTML is straightforward as it is a declarative language that gives it it's simplicity.
- HTML uses tags to markup different elements as it is a language used to structure web pages
- HTML markup is a bridge or connection between the human world and computers it achieves this by giving meaning to content and helping computers understand it
- When nesting elements to each other you need to pay attention to how you open and close tags as this helps convey meaning about the content and interface
- HTML elements marking up headlines come in six different types and they convey a hierarchy in how the browser interprets the page.
- This hierarchical system is used distingsh what is most important from what is less important, this helps users easily navigate the page
- Tags come in # HTML-CSStwo types, open < p> and closed< /p> these tags work together to define elements
- Some paragraphs have an emphasized tag < em> and
- Headline tags are i hierarchical form for example < h1> to < h6> with h6 being the smallest
- We use the < p> tag to tell the browser to separate the paragraphs
- There are two elements for bold and there are two for italic
for Bold we use < b> and < strong> and for italic we you < i> and < em>
- We also use a definition list that uses the tags < dl> but yet for definations that are specific we use different tags like< dt> for defination term
- For a defination description we use the tags < dd>
- HTML elements also help us cover qoutes
- For us to be able to attribute the person who said the words we use < cite> element after doing that we wrap the whole thing up with < blockqoute> element these elements are used for interpretation as they provide a convinient wayto apply customer styling
- HTML attributes addmore to HTML elements for exsmple datetime attributes allow us to write specific time and date in a way that allows the compute to understand like March 7, 2024.
# Types of inputs include text, date, email, button, checkbox etc.
CSS is used to make web pages look better and more appealing.
It stands for Cascading Style Sheets.
We can style the web pages by changing fonts, colors and spacing.
The element selector selects the html elements based on the element name. Here all the
elements will be center aligned, with a blue text color.
The syntax for setting the back-ground image:
body{
background-image:url(‘the.png’);
}
// Hello World program
console.log("Hello, World!");
JavaScript can respond to various events such as clicks, keypresses, mouse movements, etc., using event listeners.
JavaScript supports asynchronous programming to handle tasks that might take some time to complete, such as fetching data from a server or reading files.
The "Hello World" program demonstrates the simplest Java syntax, where System.out.println() prints a message to the console.
Python programming language (latest Python 3) is being used in web development, and Machine Learning applications, along with all cutting-edge technology in Software Industry.
Python language is being used by almost all tech-giant companies like – Google, Amazon, Facebook, Instagram, Dropbox, Uber…
Strings represent sequences of characters enclosed within single quotes (''') or double quotes ('"').
message = "Hello, World!"
print(message) # Output: Hello, World!
Python supports various numeric types, including integers, floating-point numbers, and complex numbers.
x = 10 # Integer
y = 3.14 # Float
z = 5 + 2j # Complex
Booleans represent truth values, either True or False.
is_valid = True
has_error = False
Lists are ordered collections of items, mutable (modifiable), and enclosed within square brackets ('[]').
fruits = ["apple", "banana", "cherry"]
fruits.append("orange")
print(fruits) # Output: ['apple', 'banana', 'cherry', 'orange']
Tuples are ordered collections of items, immutable (cannot be modified), and enclosed within parentheses ('()').
coordinates = (10, 20)
x, y = coordinates
print(x) # Output: 10
Sets are unordered collections of unique items, enclosed within curly braces ('{}'). Sets do not allow duplicate elements.
unique_numbers = {1, 2, 3, 4, 5}
Dictionaries are unordered collections of key-value pairs, enclosed within curly braces ('{}'). Keys are unique within a dictionary.
Arrays are not built-in data types in Python, but you can use lists or the array module for similar functionality.
import array
nums = array.array('i', [1, 2, 3, 4, 5]) # 'i' denotes integer type
Type casting is the process of converting one data type into another.
num_str = "10"
num_int = int(num_str) # Convert string to integer