#anchor tag in html
Explore tagged Tumblr posts
Text
Convert HTML to Image: A Step-by-Step Guide āØ
Do you want to turn some HTML code you've made that's on your website and have a way to convert it into an image for you to save?
Well, look no further! I too wanted to do the same thing but funny enough, there weren't any straightforward tutorials out there that could show you how! After hours of searching, I finally discoveredĀ the solution~!
This is an old tutorial I made š¼
š Set your environment
Before we dive into the conversion process, I'll assume you already have your HTML code ready. What you want to learn is how to turn it into an image file. You should have a good grasp of HTML and JavaScript. For this tutorial, we'll use the following HTML code example:
We won't include the CSS code, as it doesn't affect this tutorial. The JavaScript file (script.js) at the bottom of theĀ body elementĀ is where we'll add the functionality for the conversion.
Your page should resemble the following:
As you can see, the "Click me" button will handle the conversion. We aim to convert everything within theĀ div.info-divĀ into an image.
š Using the html2canvas JavaScript Library
The html2canvas library allows you to take screenshots of webpages and target specific elements on a screen. Here are the steps to include the library in your project:
The steps to put the library in your project:
Visit theĀ html2canvas websiteĀ for more information.
Copy the CDN link fromĀ here
and include it in a script tag in your project's head tag in the HTML file:
That's it for including the library on the HTML side. Now, let's move on to the JavaScript code.
š JavaScript Functionality
Here's the JavaScript code to handle the conversion:
In this code, I want to turn the wholeĀ div.info-divĀ into an image, I put it into a variable inĀ const div = document.querySelector(".info-div");.
I also put the button into a variable inĀ const button = document.querySelector("button");
I added a click event listener to the button so when the user clicks the button, it will follow the code inside of the event listener!
You can find similar code like this inĀ the documentationĀ of the html2canvas library:
What is happening here is:
We add the div (or what the element we want to take an image of) into theĀ html2canvas([element]).then((canvas)
Added the image file type url to a variable =Ā const imageDataURL = canvas.toDataURL("image/png");Ā - You can replace theĀ pngĀ to other image file types such asĀ jpg,Ā jpegĀ etc
Created an anchor/link tag, added theĀ hrefĀ attribute toĀ imageDataURL
TheĀ downloadĀ attribute is where we will give the default name to the image file, I addedĀ "dog.png"
Perform theĀ click()Ā function to the anchor tag so it starts to download the image we created
And that's it!
š The End
And that's it! You've successfully learned how to turn your HTML into an image. It's a great way to save and share your web content in a unique format.
If you have any questions or need further clarification, please comfortable to ask. Enjoy converting your HTML into images! šš¼
#my resources#coding#codeblr#programming#progblr#studying#studyblr#programmer#html#html css#javascript#neocities#coding tips#html5 tutorial#html tutorial
155 notes
Ā·
View notes
Text
Is there an actually complete guide to AO3's limited HTML somewhere? I know for a fact that some features work but only under slightly weird rules.
For example, if you're using the <a> tag to form an anchor to refer to later, you HTML will end up looking like <a name="Anchor" rel="nofollow" id="Anchor"> when it's done auto-correcting in the Preview. If you type in <a name="Anchor"> or <a name="Anchor" id="NotAnchor">, it will autocorrect to that, but if you type <a id="Anchor"> it will correct to an <a> tag whose only attribute is rel, or <a rel="nofollow">. (The rel="nofollow" attribute has no practical effect for most users' purposes.)
I know that AO3 will autocorrect any incompatible HTML to compatible HTML, but I don't know what the compatible HTML is, and the above <a name="Anchor"> example demonstrates that some things are compatible but don't look compatible unless you do them right!
This is especially confusing because the editor will autocorrect some HTML as soon as you switch from the HTML editor to the Rich Text editor - but it won't correct everything. I've attempted to do slightly funky things with styling that seemingly worked just fine in the editor, but vanish when I preview the chapter.
For example, here I am trying to use using the Greek character ĪØ as a list bullet. When I originally typed it into the html field, I used the actual character ĪØ. As soon as I switched to rich text and then back to html, it had autocorrected to ĪØ, which is the escape character for ĪØ. (For those who don't know, escape characters are a special code to tell the browser that this is NOT supposed to be code. <p> is an html tag; < p > will literally render "< p >".) So, it accepted the style attribute and the list-style-type, but it forced it into an escape character. So far so good.
Until I click preview. Now the custom bullet is gone, replaced with the standard circle. If I click edit again, the code has removed the CSS attribute that changed the bullet... and also replaced the escape character ĪØ with the character ĪØ.
Weird.
#ao3#otw#html#ao3 formatting#ao3 html#I do not mind the lack of a clear standard at all#OTW is a nonprofit full of overworked staff and volunteers#and complete documentation is very hard#I just wanna be able to nerd more effectively#Can anyone direct me to the part of the open-source code that dictates HTML autocorrection? Is that a thing I can examine?
19 notes
Ā·
View notes
Text
Day 4 [Link Tag In HTML ]
Introduction To HTML
Day 2 [Multimedia Elements In HTML]
Day 3 [Table in HTML]
Line By Line Explanation:
: Anchor tag (used for links)
href = It stands for Hyper Text Reference. You paste the URL of the link here
Text between the tags : What the user clinks
The first link will open google in the same tab. If you want the link to open in a new tab, then you use the target attribute.
Target="_blank" : Opens the link in a new tab
Final Output
____________________
Hope it helps :)
#code#codeblr#css#html#javascript#python#studyblr#progblr#programming#comp sci#web design#web developers#web development#website design#webdev#website#tech#html css#learn to code#school#study motivation#study aesthetic#study blog#student#high school#studying#study tips#studyspo#website development#coding
12 notes
Ā·
View notes
Note
Not to be presumptuous but.. you're a coding wizard right?!?!?!?!?? Can you. help me with something pretty please. I don't know how to move computer (local) files onto html/css. I saw a "thread" where they said this can't be done in any modern browser but I'm sure. eeeeuuuuuuh bye and sorry maybe???? D:
hmmm iām probably misinterpreting the question, but definitely look into HTML file paths!!! using an anchor tag <a>, you can link pretty much any local file to your HTML; for css, you can set the value of properties like ābackground-imageā to local image/GIF files by using āurl()ā.
Linking to Local Files
Hereās a troubleshooting Q&A about linking some local files, which includes useful terminology
Using āURL()ā in CSS
iām a beginner too, but I hope this helps - this ask was buried for a while, iām really sorry ššš (if youāre asking about totally replicating/merging other files onto HTML/CSS by decompiling code, thatās way out of my knowledge zone šµāš«)
4 notes
Ā·
View notes
Text
What do you mean to HTML code footnotes I have to learn what an anchor tag is. Do you realize how fucked up that is
4 notes
Ā·
View notes
Text
Universal Scroll Button(Autochange Direction) For Any Host
Hey, do you have a site with a lot of forums? Does your host allow you to use Javascript? Boy does this weirdo have a deal for you! For the low low price of free, you can get right now access to a scroll button that swaps directions when you scroll automatically, as well as changing the target & title on hover! Act fast, this deal won't last! I kid, but enough of the ShamWowery. In reality, this is a very simple script that reads how far you have scrolled a window, & applies or removes a class to your scroll button, as well as changing the target of said scroll button & adjusting the title to reflect which way it will take you!
It's so simple, crediting me seems superfluous but if you want, feel free to credit with a link to my blog <3 I hope the new verse of our song is eminently kind to everyone!
See it In Action(Click, or look Below):
I currently use this code on two different WIPS, so feel free to check out some gifs;
To Begin
Before the end of your </body> tag in your wrappers(for Jcink) or wherever the HTML templates go on other sites, you want to place this script:
<script> $(window).scroll(function() { if ($(this).scrollTop() > 800) { $('#scroll').attr("title","To Top?").attr("href","#Top").addClass('totop'); } else { $('#scroll').attr("title", "To Bottom?").attr("href","#Bottom").removeClass('totop'); } });</script>
This seeks out an id of Scroll to adjust the href & title as needed depending on the scroll position within the relevant window. The scroll amount is in px, so to change how quickly it changes the button, alter the number 800 to whatever you desire, fiddle with it; one size never fits all.
The Styling
Once you've saved that, move to your CSS, or wherever your Style tag is to add styling for the link itself. Keep in mind the link should be contained within a container that handles its positioning for it as otherwise the script will fuck with the positioning as well as the transformation & you really just want it to spin upwards.
The styling for the link should be as follows;
#scroll { display: inline-block; positioning: relative; transform: rotate(0deg); transition: transform .5s ease-in-out; /*** ^ change the .5s to alter duration or the ease-in-out to alter the timing of the transition between button states ***/ }
#scroll.totop { transform: rotate(180deg); }
The first statement defines the default state (linking to the bottom) of the scroll button on the load of the page, the second defines the change of position once the window has been scrolled far enough to activate one's script.
The HTML
Now you've got the behaviour defined via JS & the styling defined via CSS, it's time to input the HTML, or the bone structure of the code itself. In your wrappers, template, or wherever HTML goes on your host, locate three places;
One, where you want the TOP scroll location to be. This is where the scroll button will take you once it has changed states on scrolling a certain distance. Here, you place an anchor span as follows;
<span id="Top"></span>
Two, Where you desire for the BOTTOM or BODY scroll location to be, as in where the scroll button will take you on click initially. This could also be a scroll to the start of content, in which case I recommend changing #Bottom & id="Bottom" respectively to reflect the syntax, it's entirely up to you. Here, you place an anchor span as follows;
<span id="Bottom"></span>
Finally, It's time to add the scroll button. Keep in mind, where you put it is a function of utility & design choice. Some like it persistently hovering in a fixed position, some like it in a sidebar or on userlinks, some prefer it in the navigation bar.
Wherever you place it, try to ensure that it's easily accessible on any device, screen size, & matches the User Interface logic you've used everywhere else. If you have all text buttons, don't use just an icon, if you have all icons, don't suddenly use just text. Match your action calls, so users don't feel confused while using your site.
Once you've decided where you want it, place the following code, NOTING that there should be a container for this code that positions it for you. I've provided two options; the Icon Font option (courtesy of Phosphoricons -- a free & reliable Icon Font I recommend -- As well as one which includes text, so both UI/UX design philosophies are accommodated.
Note the option with text will only rotate the caret from downwards to upwards, so the scroll text shouldn't need editing unless you want to add or supplement flavourtext.
Please choose the appropriate option for yourself;
Icon Font
<a id="scroll" class="ph-fill ph-caret-down"></a>
Icon Font with Text
<span>Scroll <a id="scroll" class="ph-fill ph-caret-down"></a>?</span>
Some Notes:
I just want to add a bit of info:
If your browser isn't scrolling smoothly to your anchors? Check your settings, & be sure the root of your CSS has scroll-behaviour: smooth; in it.
If you use this guide & have problems getting it to work, please let me know! I will troubleshoot this for you & tumblr has strange coding, I may have futzed something up, I want this to be as accessible as possible, so don't be silent; questions help!
If you are not using Jcink, or another host with a Jquery library pre-loaded, be aware that one is needed for this script to work. Most hosts will have a default Jquery library, but if yours doesn't or you're self hosting, any should do. The Jcink file is below, however, if you want to just use that.
10 notes
Ā·
View notes
Text
PureCode software reviews | More complex regex patterns
More complex regex patterns are capable of extracting specific data from HTML tags, for instance, hyperlinks using patterns designed to target the href attribute within anchor tags. One unique aspect of regex in HTML formatting is managing spaces.
#complex regex patterns#extracting specific data#HTML tags#for instance#hyperlinks#purecode software reviews#purecode ai company reviews#purecode#purecode ai reviews#purecode company#purecode reviews
2 notes
Ā·
View notes
Text
Learn HTML and CSS: A Comprehensive Guide for Beginners
Introduction to HTML and CSS
HTML (HyperText Markup Language) and CSS (Cascading Style Sheets) are the core technologies for creating web pages. HTML provides the structure of the page, while CSS defines its style and layout. This guide aims to equip beginners with the essential knowledge to start building and designing web pages.
Why Learn HTML and CSS?
HTML and CSS are fundamental skills for web development. Whether you're looking to create personal websites, start a career in web development, or enhance your current skill set, understanding these technologies is crucial. They form the basis for more advanced languages and frameworks like JavaScript, React, and Angular.
Getting Started with HTML and CSS
To get started, you need a text editor and a web browser. Popular text editors include Visual Studio Code, Sublime Text, and Atom. Browsers like Google Chrome, Firefox, and Safari are excellent for viewing and testing your web pages.
Basic HTML Structure
HTML documents have a basic structure composed of various elements and tags. Hereās a simple example:
html
Copy code
<!DOCTYPE html>
<html>
<head>
Ā Ā Ā Ā <title>My First Web Page</title>
Ā Ā Ā Ā <link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
Ā Ā Ā Ā <h1>Welcome to My Web Page</h1>
Ā Ā Ā Ā <p>This is a paragraph of text on my web page.</p>
</body>
</html>
: Declares the document type and HTML version.
: The root element of an HTML page.
: Contains meta-information about the document.
: Connects the HTML to an external CSS file.
: Contains the content of the web page.
Essential HTML Tags
HTML uses various tags to define different parts of a web page:
to : Headings of different levels.
: Paragraph of text.
: Anchor tag for hyperlinks.
: Embeds images.
: Defines divisions or sections.
: Inline container for text.
Creating Your First HTML Page
Follow these steps to create a simple HTML page:
Open your text editor.
Write the basic HTML structure as shown above.
Add a heading with the tag.
Add a paragraph with the tag.
Save the file with a .html extension (e.g., index.html).
Open the file in your web browser to view your web page.
Introduction to CSS
CSS is used to style and layout HTML elements. It can be included within the HTML file using the <style> tag or in a separate .css file linked with the <link> tag.
Basic CSS Syntax
CSS consists of selectors and declarations. Hereās an example:
css
Copy code
h1 {
Ā Ā Ā Ā color: blue;
Ā Ā Ā Ā font-size: 24px;
}
Selector (h1): Specifies the HTML element to be styled.
Declaration Block: Contains one or more declarations, each consisting of a property and a value.
Styling HTML with CSS
To style your HTML elements, you can use different selectors:
Element Selector: Styles all instances of an element.
Class Selector: Styles elements with a specific class.
ID Selector: Styles a single element with a specific ID.
Example:
html
Copy code
<!DOCTYPE html>
<html>
<head>
Ā Ā Ā Ā <title>Styled Page</title>
Ā Ā Ā Ā <link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
Ā Ā Ā Ā <h1 class="main-heading">Hello, World!</h1>
Ā Ā Ā Ā <p id="intro">This is an introduction paragraph.</p>
</body>
</html>
In the styles.css file:
css
Copy code
.main-heading {
Ā Ā Ā Ā color: green;
Ā Ā Ā Ā text-align: center;
}
#intro {
Ā Ā Ā Ā font-size: 18px;
Ā Ā Ā Ā color: grey;
}
CSS Layout Techniques
CSS provides several layout techniques to design complex web pages:
Box Model: Defines the structure of an elementās content, padding, border, and margin.
Flexbox: A layout model for arranging items within a container, making it easier to design flexible responsive layouts.
Grid Layout: A two-dimensional layout system for more complex layouts.
Example of Flexbox:
css
Copy code
.container {
Ā Ā Ā Ā display: flex;
Ā Ā Ā Ā justify-content: space-around;
}
.item {
Ā Ā Ā Ā width: 100px;
Ā Ā Ā Ā height: 100px;
Ā Ā Ā Ā background-color: lightblue;
}
Best Practices for Writing HTML and CSS
Semantic HTML: Use HTML tags that describe their meaning clearly (e.g., , , ).
Clean Code: Indent nested elements and use comments for better readability.
Validation: Use tools like the W3C Markup Validation Service to ensure your HTML and CSS are error-free and standards-compliant.
Accessibility: Make sure your website is accessible to all users, including those with disabilities, by using proper HTML tags and attributes.
Free Resources to Learn HTML and CSS
W3Schools: Comprehensive tutorials and references.
MDN Web Docs: Detailed documentation and guides for HTML, CSS, and JavaScript.
Codecademy: Interactive courses on web development.
FreeCodeCamp: Extensive curriculum covering HTML, CSS, and more.
Khan Academy: Lessons on computer programming and web development.
FAQs about Learning HTML and CSS
Q: What is HTML and CSS? A: HTML (HyperText Markup Language) structures web pages, while CSS (Cascading Style Sheets) styles and layouts the web pages.
Q: Why should I learn HTML and CSS? A: Learning HTML and CSS is essential for creating websites, understanding web development frameworks, and progressing to more advanced programming languages.
Q: Do I need prior experience to learn HTML and CSS? A: No prior experience is required. HTML and CSS are beginner-friendly and easy to learn.
Q: How long does it take to learn HTML and CSS? A: The time varies depending on your learning pace. With consistent practice, you can grasp the basics in a few weeks.
Q: Can I create a website using only HTML and CSS? A: Yes, you can create a basic website. For more complex functionality, you'll need to learn JavaScript.
Q: What tools do I need to start learning HTML and CSS? A: You need a text editor (e.g., Visual Studio Code, Sublime Text) and a web browser (e.g., Google Chrome, Firefox).
Q: Are there free resources available to learn HTML and CSS? A: Yes, there are many free resources available online, including W3Schools, MDN Web Docs, Codecademy, FreeCodeCamp, and Khan Academy.
#how to learn html and css#html & css course#html & css tutorial#html and css#html course#html css tutorial#html learn#html learn website#learn html#learn html and css#html and css course#html and css full course#html and css online course#how to learn html and css for beginners
3 notes
Ā·
View notes
Text
The Great Produce 48 Rewatch
Hello, lovies! This post marks the start of my Produce 48 Recaps. For those of you who don't know, this show was the first time we met various trainees who went on to join a bunch of other groups, including Alice/Elris, Bugaboo, Cherry Bullet, Everglow, H1-Key, IVE, Kep1er, Le Sserafim, Lightsum, Purple Kiss, Queenz Eye, Rocket Punch, Secret Number, and of course IZ*one. Some of them also appeared on Girls Planet 999 and/or Queendom Puzzle.
Since the show is so iconic, and so messy, I'm going to back to 2018 to recap it in my own chatty, opinionated way. This post will be the anchor post and I'll add links to other episodes as we go along. Welcome to the ride!
I've decided to split the difference with respect to spoilers. No one wanted me to write it as if it's still 2018, but some people did want me to avoid spoiling who makes the final lineup, and I'm going to go with that. I'm going to tell you who goes on to be in every other group EXCEPT for who makes it into IZ*one, because that spoils this specific show and will make it less fun to watch along if that's what you want to do. I'm also not going to spoil things like when people go home and what their final ranks will be. However, after each elimination round, I'll tell you where people are now.
In case you want to either find or filter out all these recaps, I'm tagging them all with "BPR recaps P48."
If you want to start watching the show, this link is the least crappy one I've found. https://kshow123.tv/show/produce-48/episode-1.html
Intro: Episode 1: Entrances
The audition round: Episode 1: Auditions 1-10, Auditions 11-24 Episode 2: Auditions 25-36 , the unaired auditions (and audition wrap up)
Signal song mission: Episode 2: Dorm Move in and Practicing for Nekkoya Part 1 Episode 2: Practicing for Nekkoya Part 2 and final prep Episode 2: Grade Reassignment, Part 1 Episode 2: Phone Calls Home and Judges Table (Grade Reassignment Part 2) Episode 3: Grade Reassignments, Concluded Interlude: A bit of Grade Analysis Episode 3: Signal Song Performance + Start of Challenge Mission 1
Challenge Mission 1: Episode 3: The teams start practicing and we visit each one Episode 3: Love Whisper Episode 3-4: Peekaboo Episode 4: Short Hair Episode 4: Mamma Mia Episode 4: High Tension Episode 4: Boombayah (featuring Hell-bayah) (part 1) )(part 2) Episode 4: Like Ooh Ah Episode 4: Very Very Very (featuring half of Iz*one) Episode 4: Ep 4 Wrap Up and BRAPPY Awards
#Produce 48#AKB48#IVE#Le Sserafim#Lightsum#Purple Kiss#Queendom Puzzle#Rocket Punch#IZ*one#BPR recaps P48
8 notes
Ā·
View notes
Text

This is definitely a long time coming, but I finally wrote a text only fic for Sterek, complete with a stylized AND plain text view for reading! Also my first long fic that I've written since...I don't even know when (aka it's NOT a drabble or ficlet!!). This is also belated from July, but for reasons you can read more about below the cut. Inspired by @yearoftheotpevent's July prompt "stars," as well as sniperjade's Masturbation Midsummer Bingo 2023, using the square "I can't anymore," and Summer of Cum 2023 prompts "creampie," "come marking," "precome," "come swallowing," "coming untouched," and "coming in pants" (yeah, there's definitely a spicy theme here :P).
Title: Feel You BreathingĀ (<- on AO3) Rating: Explicit WC: 8.4k Tags: Texting/Sexting, Established Relationship, UST, Porn with Feelings, Porn With Plot, Fantasizing, Teasing, Banter, Filthy, Dirty Talk, Masturbation, Idiots in Love, Writer Derek Hale, Bartender and Graduate Student Stiles Stilinski, Business Trip, Flight Delays, Coming In Pants, Coming Untouched, Nipple Play, Light Dom/sub, Bad Pick-Up Lines, Humor, Shopping, Sex Toys, Kink Exploration, Werewolf Mates, Anchors, Love Confessions, Pet Names, Romantic Angst, Stiles AND Derek are Little Shits, POV Alternating
Summary: Derek: So, you need a distraction. Stiles: Maybe Stiles: Itād be better if you were here to help me with that. Stiles: ;D [Or: Sexy things start late one night when Derek gets a text from Stiles and escalate from there. A few secrets are revealed along the way.]
Some of my lovely Sterek friends know I've been dabbling in and out of writing text fics since last year (2022). Easier said than done 1000%, I'm going to tell you that right now. It only took me 3 tries to get it right! (And yes, it means my other 2 WIPs need to be reworked, le sigh.) It's one thing to write a text fic, but it's a completely different beast to style the damned thing with AO3 skins while making it as legible and accessible as possible. I thankfully know how to code in CSS and HTML, but it took me quite a long time to create a custom skin template that I liked and could reuse while getting the look and feel just right for our idiotic boys and the overall Teen Wolf world. Texting and sexting is legit an art. There are so many ways to approach how to write a text because each person does that differently. There's also intention required when using emojis, figuring out how someone would react to things, and hell, even playing around with timestamps and timezones is important. A text fic isn't just about words. All the tiny details add up and make a new experience. I think I took a full week to QA this whole fic because I wanted the aesthetic to look good, and it was worth it! It was nice to make something for myself, which let me write dialogue and banter and a lot of fun things I normally wouldn't had this been a different kind of fic. Super grateful for having a Write-A-Thon sprint weekend, which motivated me to finish the bulk of this baby up. And when I think about it now, this labor of love was originally supposed to be an experiment for me to play around and learn more about coding intricacies. It was supposed to be a short Porn without Plot thingie (but uhhh, it's definitely Porn with Plot and Feelings because that's the way it is). 1-2k words somehow became 8k+ words. No regrets though. It has been a long time since I've felt good about writing something this long and doing something different than the norm. It has been such a blast coming up with all the texts in this fic, because they're humorous and spicy with the usual banter and sarcasm we love between Derek and Stiles. But hey, there's some romantic angst too (they might be texting and using words, but they could do better, of course). Anyway, I hope you give this a read when you have a chance. Enjoy!
#year of the otp#teen wolf#sterek#stiles stilinski#derek hale#MasturbationMidsummer#summerofcum2023#teen wolf fanfiction#fic challenge#spicy#fic rec#self rec#my fic#sugareey
9 notes
Ā·
View notes
Text
The menus don't work, the menus don't work, the menus DON'T WORK...
OK, my few readers. I took a break, I went back to fix the navigation, it's unfixable as-written.
I need some complex stuff in places, I was willing to forgive WP for putting out a new site editing interface that barely works - as long as it has the basic features someone would use on a storefront. I'm an outlier. I know this.
BUT IT IS NO LONGER POSSIBLE TO CREATE A MENU WITH A WORKING SUB-MENU IN IT. IF YOU TRY, THE SUB-MENU LINKS ARE UNCLICKABLE.
I am using their site editor and their 2024 theme, I should say.
I crossed my fingers and looked for the (now liable to vanish from anything more complicated than a paragraph) "edit as html" option. Nope! It's gone! I can't fix it. I would have to hack the interface somehow to fix this for WordPress, within WordPress.
I had to go looking for plugins. I HAD TO GO LOOKING FOR 3RD PARTY SOFTWARE TO GET A FUNCTIONAL MENU. And, of course, they paywall features I need. I found a "floating" menu that actually does work well enough (it's a little cramped on mobile unless you put the screen in landscape mode, but at this point you should really do that anyway, I can only format so much) but the sub-menu function is paywalled. And I'm actually fucking tempted to buy (haha, I mean "rent") it. Because the damn thing works in dark mode and across devices. And it sticks to the side in a fairly unobtrusive way, which WP's menu will not. It won't stick anywhere. And it sure as hell won't do that thing where you scroll up and it plops down for your convenience.
But if I use that floating menu without sub-menus, it's gonna get longer, and longer, and longer, until it doesn't fit on your mobile screen anymore, or potentially your tablet or desktop, and then I dunno what happens. Also, in order to keep it small, everything is a cryptic icon that displays a title when you tap it (on mobile) or hover over it (on desktop). That's kinda counterintuitive, I don't know if I want my one working menu to be like that.
I might keep looking and find another plugin that also works that well but... it's not likely. Or, if I do, I may run into another paywall. They gotta get their rent somehow!
This is a stupid problem and so far I am unable to come with with a non-stupid solution. I can:
Put all the links in the header menu, and you'll have to scroll through EVERYTHING to find the actual content every time.
Put all the links in the content area, in different places and different combinations depending on the page. (And this would mean doing some reformatting on every instalment AGAIN.)
Start fucking around with the sidebar - I don't know if it works and I'd have to rip up every template I've already made to add it.
Put all the links in the footer menu, and nobody will notice them.
Put all the links in the floating menu (see above for the issues with that).
Make sub-pages for Misc/Notes and similar that are just lists of links and serve the function of a sub-menu.
Actually put the content on the sub-page and have it navigable via anchors (this seems like it would be a bitch to load, but most of my content is just text).
Make a list of links that isn't actually tagged as a menu, thus losing the collapsible function for small screens.
Kill God.
That last one is probably the most doable but I feel like someone would get mad at me. Like, Hazbin Hotel finally got its first season on Amazon, and if God dies they might have to rewrite some shit.
If I don't lay out the money for the cryptic icon menu, we're probably going to end up with three or four accordions that are not technically menus at the top of every page. And I'll hafta check back every once in a while to see if WP fixed their shit yet.
If they don't stick with that site editor and make it useable, all this work is going to vanish like chalk marks in the rain.
I WANTED to put up another six-pack in February. I have it ready to go! But the site doesn't work. If I can't fix it this week, I won't even be able to put things up without illustrations. And forget having time to fill in the missing artwork. I got enough to do trying to kill God!
#tin soldier and soldier on#updates#website woes#in other news i woke up with an inexplicable ability to focus better on text today#which i should not have?#I'm not wearing reading glasses to write this#pretty sure this isn't gonna stay like this but wtf happened?
3 notes
Ā·
View notes
Text
Understanding HTML: The Building Blocks of the Web
In the vast landscape of the internet, HTML stands as the foundation upon which the digital world is built. From simple static web pages to dynamic interactive experiences, HTML (Hypertext Markup Language) plays a pivotal role in shaping the online landscape. Let's embark on a journey to demystify HTML and understand its significance in the realm of web development.
What is HTML?
HTML is a markup language used to create the structure and content of web pages. It consists of a series of elements, or tags, that define the various components of a web page, such as headings, paragraphs, images, links, and more. These elements are enclosed within angled brackets (< >) and typically come in pairs, with an opening tag and a closing tag, sandwiching the content they define.
The Anatomy of HTML:
Tags: Tags are the building blocks of HTML and serve as the basic units of structure. They encapsulate content and provide semantic meaning to different parts of a web page. Common tags include <html>, <head>, <title>, <body>, <h1> (heading), <p> (paragraph), <img> (image), <a> (anchor/link), and many more.
Attributes: Tags can also contain attributes, which provide additional information about the element. Attributes are specified within the opening tag and consist of a name and a value. For example, the <img> tag may include attributes such as src (source) to specify the image file and alt (alternative text) for accessibility purposes.
Nesting: HTML elements can be nested within one another to create hierarchical structures. This nesting allows for the organization and hierarchy of content, such as placing lists within paragraphs or dividers within sections.
Document Structure: Every HTML document begins with a <!DOCTYPE> declaration, followed by an <html> element containing <head> and <body> sections. The <head> section typically contains metadata and links to external resources, while the <body> section contains the visible content of the web page.
The Role of HTML in Web Development:
HTML serves as the backbone of web development, providing the structure and semantics necessary for browsers to interpret and render web pages correctly. Combined with CSS (Cascading Style Sheets) for styling and JavaScript for interactivity, HTML forms the core technology stack of the World Wide Web.
Conclusion:
In essence, HTML is the language of the web, enabling the creation of rich and immersive digital experiences. Whether you're a seasoned web developer or a newcomer to the world of coding, understanding HTML is essential for navigating the intricacies of web development. Embrace the power of HTML, and embark on a journey to craft compelling narratives and experiences in the ever-evolving digital realm.
5 notes
Ā·
View notes
Text
Exploring the Basics of HTML: A Journey into Web Development with an Online Compiler for HTML
In the vast universe of web development, HTML (Hypertext Markup Language) is the essential building block that transforms creative ideas into interactive web experiences. HTML provides the structural foundation for web content, allowing web developers to create well-organized and readable web pages. In this article, we will embark on a journey into the basics of HTML, exploring its core elements and their functions. Additionally, we will introduce you to a valuable resource: the Online Compiler for HTML, a tool that empowers aspiring web developers to experiment, test, and refine their HTML skills in a practical and user-friendly online environment.

HTML: The Language of the Web
HTML is the language of the web, serving as a markup language that defines the structure of web content. Its fundamental elements, or tags, are used to identify and format various aspects of a web page. Let's dive into some of the basic elements that form the foundation of HTML:
1. HTML Document Structure: An HTML document starts with the <!DOCTYPE html> declaration, which defines the document type. It is followed by the <html> element, which encapsulates the entire document. The document is divided into two main sections: the <head> and the <body>. The <head> contains metadata and information about the document, such as the page title, while the <body> contains the visible content.
2. Headings: Headings are essential for structuring content and providing hierarchy to text. HTML offers six levels of headings, from <h1> (the highest level) to <h6> (the lowest level). Headings help create a clear and organized content structure.
3. Paragraphs: To create paragraphs of text, the <p> element is used. This element defines blocks of text separated by blank lines and is a fundamental tool for organizing and formatting content.
4. Lists: HTML allows for the creation of both ordered (numbered) and unordered (bulleted) lists. Ordered lists are created with the <ol> element and list items with <li>. Unordered lists are created with the <ul> element, also with list items using `<li>.
5. Links: Hyperlinks are a crucial feature of the web. HTML provides the <a> (anchor) element for creating links. The href attribute within the <a> element specifies the URL of the page or resource to which the link should navigate.
6. Images: To embed images in a web page, HTML employs the <img> element. The src attribute within the <img> element points to the image file's location.
Introducing the Online Compiler for HTML
To practice and experiment with these basic HTML elements, there's a valuable resource at your disposal: the Online Compiler for HTML. This user-friendly online tool allows aspiring web developers to write, modify, and test HTML code in a practical environment. What sets it apart is its real-time rendering feature, enabling users to see immediate results as they make changes to their HTML code. It's an ideal platform for beginners and experienced developers alike to fine-tune their HTML skills and explore the language's capabilities.
Conclusion: The Journey Begins
Understanding the basics of HTML is the first step in your journey into the world of web development. HTML's fundamental elements serve as the building blocks upon which you'll construct your web pages. With the assistance of the Online Compiler for HTML, you have a practical and interactive resource to help you explore and master the language. As you become more proficient in HTML, you'll gain the ability to structure content, create links, and embed images, laying the foundation for the websites and web applications of the future. The journey into web development has just begun, and HTML is your trusty guide.
#coding#programming#webdevelopment#online learning#programming languages#html5#html#html website#webdev
5 notes
Ā·
View notes
Text
How To Boost The Indexability Of A New Website š„
š„ Skyrocket your website's indexability and conquer the search engine rankings! š Buckle up, folks, because I've got some insider secrets and juicy tips that'll turbocharge your site's visibility. Let's dive in! šŖ
1ļøā£ Speed is š: Did you know that a slow website can make spiders crawl slo-mo? ā Yup, search engines love speedy sites! Optimize loading times by compressing images, minifying CSS/JavaScript, and leveraging caching techniques. ā”ļø Slow websites ain't got no time for rankings!
2ļøā£ XML Sitemaps for the Win šŗļø: A well-crafted XML sitemap is the magic š® that helps search engines understand your website structure. Create and submit one to Google Search Console, Include all your pages, prioritize 'em, and watch as the bots scuttle through your content. š·ļø
3ļøā£ Mobile-Friendly FTW š±: it's a no-brainer to know that mobile searches surpasses desktop searches. Ensure your site is responsive and looks fab on all devices. Mobile-friendly sites win bonus points with the search bots and get blessed with better indexability. š
4ļøā£ Link Juice Matters šŖš§: Internal linking is like a power-packed energy drink for your SEO efforts. š„¤ Pass that link juice around by interlinking your pages with relevant anchor texts. Search engines adore such connected websites, and it helps them find all your cool content.
5ļøā£ Clear the Dead Ends ā ļø: Broken links are like ghosts haunting your website. š» Sweep 'em away, my friend! Regularly audit your site for 404 errors and redirect 'em to relevant pages. Goodbye dead ends, hello smooth and indexable pathways! š ļø
6ļøā£ Hail the Hierarchy š°: A well-structured website hierarchy is a superhero cape for indexability. š¦øāāļø Use clear headings, subheadings, and semantic HTML to organize your content. It helps search engines understand the context better and boost your chances of claiming that top spot. š„
7ļøā£ Snacks for Spiders š“š·ļø: Meta tags bring all the spiders to the yard! Craft compelling meta titles and descriptions that entice users and search engines alike. Use relevant keywords, be concise, and ooze that click-worthy appeal. 𤩠Meta tags are the snacks search bots love to munch on!
ā ļø Hold up, folks! This is just a taste of the SEO buffet I've got for you. For a full-on feast of technical SEO expertise, check out my guide, "Unlock the Secrets of Technical SEO" šš. It's packed with even more insider info to supercharge your website's indexability and beyond! šš
#SEO #TechnicalSEO #Indexability #SearchTraffic #WebOptimization #HustleHard #onpageseo #intetnallinks #internallinking #boosttraffic #organictraffic #freetraffic #searchengineoptimization #onpageoptimization #indexability #sitemaps #metatags #websitespeed #seomarketing #seosecrets #seostrategy #makemoneyonline #earnmoneyonline #workfromhome #homebusiness #onlinebusiness #onlinemarketing #internetmarketing #digitalmarketing #contentmarketing #digitalmarketer #affiliatemarketing
#make money online#work from home#affiliate marketing#make money with affiliate marketing#marketing#online business#home business#digital marketing#online marketing#blogger#on page seo#seo tutorial#seo services#seo#seo tips#socialmediamarketing#seo marketing#emailmarketing#on page optimization#technical seo
4 notes
Ā·
View notes
Text
target="_blank" vs target="blank" in HTML:
Q01. What is the difference between target="_blank" and target="blank" in HTML? Q02. What is the Target Attribute in HTML? Q03. What are the different possible values of the Target Attribute in HTML? Q04. What is the meaning of target = "_blank" in the anchor tag of HTML? Q05. What is the meaning of target = "blank" in the anchor tag of HTML? Q06. What is the difference between target="_blank" vs. target="blank"?
5 notes
Ā·
View notes
Text
Learn to Code
Daily Blogs 356 - Oct 26th, 12.024 Being someone who actually codes and is a software engineer, please learn how to code.
Why?
Before anything else, it is fun, even more if you like puzzles and solve problems, and you could find your future career even.
Nonetheless, coding is an enormous skill to have nowadays with every little job, task, and even hobby, having some sort of technology or another. How many times have you wanted to rename a bunch of files into a more structured form? Or even wanted to have a fast way to see all your tasks for the day? Maybe you are animating in After Effects (unfortunately) and want to make an object pulse following a song beat? Or maybe in your job you have to make spreadsheets in Excel (again, unfortunately) and need something more dynamic? Or maybe, you want to have your own simple website? All of these things can be done, and can be easier, knowing a little bit of coding/scripting.
Coding not only lets you do things in a faster way, it also helps you better understand the technology you use. Did you never think how the little applications that you use are made? Because they are, by humans, like me and you, and that's why they have bugs most of the time. Maybe learning to code, you can even start modding your favorite game! Or even create your own.
But Coding is Hard!
I'm going to be honest, yes, it can be hard. But we aren't talking about doing whole software products or even what could be called engineering, we are talking about scripting/coding, which is just creating files for some utilities, which is far from hard. And instead of trying to explain, let me show you some examples.
Creating a Website Yes, you heard me right, the first example is how to create a website, because you can do it in literally just a file:

"But it is ugly!", well, just modify a little the first file, and add another file!

And there it is! Your own website. Now to put it into the internet to everyone to see it is nothing more than uploading these two files to a Web Hosting Service, which most of the simple ones are free! A few examples are GitHub Pages, Vercel, Netlify, all of them you can find easy tutorials to upload your files and have them for the web!
What Are Those Files?
Glad you asked! Let's go step by step.
The first file, the one full of <tags\/>, is what is called an HTML file. HTML (or Hypertext Markup Language) is the language used by all websites you visit, it is designed to structure text in such a way that you can easily put meaning and style into the document, and have you browser read it to show you. These files are marked up using tags, which encapsulate text with an opening tag (like this one <p>) and a closing tag (like this one </p>, see the slash before the letter P), looking like this <p>Hello world</p>. We have multiple types of tags, such as <p> for Paragraphs, <h1> for Heading/titles, <h2> for subheadings/subtitles, <link> for linking one file to another, <ul> for an Unsorted List, which will have <li> for each List Item, <main> for informing what's the main content, <a> for an Anchor/hyperlink for another website, etc. etc. All HTML files will have an <html> encapsulating everything, a <head> tag for information about the page, and a <body> tag for the content of the page. That's pretty much how HTML works, and all you need is to learn what tag does what, and you're pretty much good to go.
In the second file, we just add some structure to it better, adding a <main> tag and a <div> tag with the ID "background", so the third file, the stylesheet, can make it look pretty! The third file, the one with the {} blocks, is a CSS (or Cascading Style Sheets) file, and it is the one that makes all of our websites beautiful. It is made by these "blocks" of code that applies styles for multiple elements in the page, it is a little bit more hard to explain, but in summary, that file does this:
The "#background" block applies styles to any tag with ID "background". In the example, we make the tag have 100% of the view width (width: 100vw) and 100% of the view height (height: 100vh); make the background be an Unsplash image; decrease the opacity, so the image is not so bright; apply a blur filter; and make its position be absolute in the top left corner, so it doesn't move with the rest of the content;
The "body" block applies styles to the tag and makes it display its content on a flexible layout (display: flex), which we use to make the content be centralized in the page;
We then make the text-color inside the tag white, use a sans font, and make it be in front (z-index: 2) of the tag (see the z-index: 1 in the "#background" block);
And to finish off, we make the color of links an aqua color.
That's pretty much it and pretty much how the fundamentals of how to create a website works. Just 2 files of code, and you can have your own website.
But Where Are the Loops? Where Are the "if"s?
Yes, yes, if you know the concept of coding, you may be asking where are all the loops, "if"s, and variables. Truth be told is that HTML and CSS aren't programming language per-say, they are markup languages to structure and display text, so they can't run anything really. However, they are easy to understand and are considered "code" nonetheless, and personally I find fascinating that websites, the thing we all access every single day, that most people I know think is magic⦠are based in two simple languages that anyone can learn in an afternoon and have its own website up and running in less than a day.
I Want real code!
Ok ok! Let's so add a little interactivity into our website. What about a little character you can control? Yes, a little game character to control with WASD on your website, with less than 40 lines of code. Let's first update the HTML file so we can add the character:
As you can see in the new file, we just added another <div> tag on the website, with the ID "player" and a <img> tag which we can use to add a visual sprite to our character! I'm using this simple sprite/gif I found on OpenGameArt.org. Also, in the new <div> we add some CSS styling directly in the tag, using the style attribute, the reason to this being that here we can manipulate its value with a programming language, in the case of the web, JavaScript. We add the JavaScript file with a <script> tag.
And in the JavaScript file, we can write this simple script:
This can be a little overwhelming, but let's go line by line:
First, we get the player element/tag with document.querySelector("#player") (similar on how in CSS we would use #player {} to style the tag). This tag is then saved into a variable player, think of it like a box or alias for document.querySelector("#player"), so when we use something like player.setAttribute it can be thought like document.querySelector("#player").setAttribute;
After that, we use player.setAttribute("data-coordinate", JSON.stringify({ x: 40, y: 20 })). This is just so we can more easily access the coordinates of the player after. An attribute is like that style in the tag, so calling this is like we wrote in the HTML file;
We again call player.setAttribute, but this time to rewrite the value of the style attribute, just to be sure. See how in the text for the style tag (the 2nd argument, aka the left: ${45}%; bottom:${20}%; ...), we use ${}? Well, this is a neat feature that lets us put values inside the text, so it makes the final result be left: 40%; bottom 20% ..., in this line it seems a little redundant, but in later in the lines we will use it more cleverly. Just remember that if we make a variable, a "box", like let x = 10 and use it inside the text like left: ${x}%, it would be in the end left: 10%;
Now the meat of the script, the "onKeyDown" function. A "function" in programming is like a piece of code you can reuse, and pass variables to it to use inside the code, like a box you can put stuff inside to it to do things, a box that uses other boxes, a box inception. Inside the "onKeyDown" function, we take back the value inside that data-coordinates attribute we wrote on the 3rd line, and put it inside the coordinates variable; than, we check if the key pressed is "d", if so, we add 1 to the X coordinate, we are changing the value of coordinate.x; we check for the other keys like "a", "w" and "s", changing the according variable to it; and then, we rewrite both the style attribute and data-coordinates attribute with the new value;
And finally, we use document.addEventListener("keydown", onKeyDown) to tell the browser "hey! Use this function ("onKeyDown") when a key is pressed!".
And that's pretty much it.
As you can see in the top right corner, the values of the style and data-coordinate attribute change when we press a key!
If you want to access this simple website, this is the live version of it hosted on GitHub Pages and the source-code is available under the public domain.
Learning More
Being honest, what I showed here is just a very small toy project, and a lot is simplified because of the gigantic convenience that the browser provides nowadays. But again, this is the type of thing you can do with just a little bit of knowledge on how to code, probably the scripts you will do can be even simpler than this. And just imagine the things you can invent, learning a little bit more!
Besides the toy project, code can be used in a lot of fields:
If you work on data or science in general, coding in Python is a great skill to have on your toolkit, and it is very easy to learn. It works great with creating graphs and can even be used inside Excel for creating more dynamic spreadsheets;
Do you want to make games? Well, learn something like Lua, a very simple language and one of my favorites for scripting, and powerful enough to be chosen by engines like Roblox Studio (which surprisingly is powerful than I thought). But if Roblox is not your taste, well, learn something like GDScript, the language of the Godot game engine, fully free, fully open;
Also, Lua is used for modding on games such as Factorio, and can be very powerful for small scripts for your computer;
If you want to make websites, HTML, CSS and JavaScript, learn them and go nuts (I won't recommend you use any framework as other programmers use, learn the fundamentals first). There are a lot of documentation about the web, and it is one of the fields with the lowest entry;
Are you an 3D Artist? Well then, Python is also the language used for creating add-ons, you can take some time to learn and create your owns to help your workflow!
And if you are a poor soul who is using Adobe products, first: my condolences; second, most Adobe products use ActionScript to create dynamic animations and values such as making an element react to music beats in After Effects.
---
Learn to code, be happy, and maybe you will find a new passion like I did.
Today's artists & creative things Music: Late Night Walk - by Ichika Nito
Ā© 2024 Gustavo "Guz" L. de Mello. Licensed under CC BY-SA 4.0
please learn how to code
like, if you're bored today, and not doing anything,
learn a little bit of coding please
34K notes
Ā·
View notes