My languages on Mimo
My paths on Mimo
My progress on W3schools
Python28%
Java
7%
C
3%
<p>) and closing (</p>) tags. Tags are used to define elements in HTML. The p tag for example is used to define a paragraph.
<!DOCTYPE html>
followed by the
<html>
tag. Inside this
tag are two main parts: The
<head>
and the
<body>
tag. The head contains meta information about the document, like the title, author, character set and links to stylesheets. The body contains the actual content of the webpage.
<h1> to <h6>: Headings<p>: Paragraphs<a>: Links<img>: Images<div>: Division or section<span>: Inline container<ul> and <ol>: Unordered and ordered lists<li>: List itemshref attribute in the <a> tag specifies the URL of the link:
<p class=center">this is centered</a>
a
tag,
href="example.com"
in the opened tag and and some text. For example: 'click here'
img
tag. You can add
src="example.com"
to the
img
tag like this:

b
or the
strong
tag you can make text
bold
and if you want
italic
text, you use the
i
or the
em
tag. Bold
text is slightly brighter than normal text.
ol tag and display items in a numbered format. Unordered lists use the ul tag and display items with bullet points. Each item in the list is defined using the li tag.
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
div tag is a block-level container used to group elements together, while the span tag is an inline container used to style a specific part of text within a larger element. Both tags can be styled using CSS and are commonly used for layout and design purposes.
details tag is used to create a collapsible section in HTML. It contains a summary tag that acts as a clickable heading for the section. When the user clicks on the summary, the details section expands to reveal additional content.
<details>
<summary>click to expand</summary>
This is the hidden content that is revealed when the summary is clicked.
</details>
select tag is used to create a drop-down list in HTML. It contains multiple option tags, each representing a choice in the list. Users can select one or more options from the drop-down menu.
<select>
<option value="option1">Option 1</option>
<option value="option2">Option 2</option>
<option value="option3">Option 3</option>
</select>
progress tag is used to create a progress bar in HTML. It represents the completion status of a task or process. The value attribute indicates the current progress, while the max attribute defines the maximum value of the progress bar.
progress.bar{
border:solid #FFF;
width:95%;
height:20px;
accent-color:#0F0;
background-color:#000;
text-align:center;
}
progress.bar::-webkit-progress-bar{
background-color:#000;
}
progress.bar::-webkit-progress-value{
background-color:#0F0;
}
progress.bar::-moz-progress-bar{
background-color:#0F0;
}
hr tag in a Book and tried it:
color:green;
{ }). Inside the declaration block are declarations, each consisting of a property and a value, separated by a colon and ending with a semicolon.
p {
color:blue;
font-size:16px;
}
style attribut inside the opening tag of the element you want to style. For example:
<p style="color:red;">This text is red.</p>
border:solid;
to the it.
border-color:#F00;
and round the corners with border-radius:5px;.
text-align.
left, center and right as values.
My personal favorite is justify, because it adjusts the space between words, so the paragraph looks more like one block.
onclick attribute or similar event attributes.<script> tag in the HTML document.<script src="file.js"></script> tag.
function changeText() {
document.getElementById("myText").innerHTML = "Hello, World!";
}
<button onclick="changeText()">Click me</button>
<span id="myText">Original Text</span
onclick attribute to call the changeText() function when the button is clicked.
function changeText() {
document.getElementById("myText").innerHTML = "Hello, World!";
}
classList from an element that you get by using selectors like getElementByClass() with things like add(), remove() or toggle().