HTML

HTML (Hyper Text Markup Language) is the standard markup language used for structuring web pages and formatting content. HTML describes the structure of a website semantically along with cues for presentation, making it a markup language, rather than a programming language. HTML works in conjunction primarily with CSS and JavaScript, adding presentation and behaviour to the pages. The most recent revision to the HTML specification is HTML5.2.

55 votes
24 answers
2.6K views
Vertically align text next to an image?

Why won't vertical-align: middle work? And yet, vertical-align: top does work. span{ vertical-alig

avatar
Kurtis
0 1 0 9
asked 07 September, 2021
61 votes
26 answers
514 views
What are valid values for the id attribute in HTML?

When creating the id attributes for HTML elements, what rules are there for the value?

avatar
Karolyn
0 1 0 9
asked 07 September, 2021
53 votes
30 answers
693 views
How to create an HTML button that acts like a link

I would like to create an HTML button that acts like a link. So, when you click the button, it redirects to a

avatar
Mikki
0 1 0 9
asked 07 September, 2021
50 votes
30 answers
3K views
How can I make a div not larger than its contents?

I have a layout similar to: <div> <table> </table> </div> I would like for

avatar
Frederick
0 1 0 9
asked 07 September, 2021
54 votes
30 answers
2.1K views
Make a div fill the height of the remaining screen space

I am working on a web application where I want the content to fill the height of the entire screen. The page

avatar
Vi
0 1 0 9
asked 07 September, 2021
61 votes
30 answers
1.4K views
How to make a div 100% height of the browser window

I have a layout with two columns - a left div and a right div. The right div has a grey background-color, and

avatar
Royal
0 1 0 9
asked 07 September, 2021
63 votes
30 answers
2.5K views
How do I give text or an image a transparent background using CSS?

Is it possible, using CSS only, to make the background of an element semi-transparent but have the content (te

avatar
Hilario
0 1 0 9
asked 07 September, 2021
53 votes
17 answers
1.8K views
I need an unordered list without any bullets

I have created an unordered list. I feel the bullets in the unordered list are bothersome, so I want to remove

avatar
Fabian
0 1 0 9
asked 07 September, 2021
47 votes
18 answers
796 views
How do I disable the resizable property of a textarea?

I want to disable the resizable property of a textarea. Currently, I can resize a textarea by clicking on the

avatar
Bryan
0 1 0 9
asked 07 September, 2021
57 votes
30 answers
2.3K views
How do you disable browser autocomplete on web form field / input tags?

How do you disable autocomplete in the major browsers for a specific input (or form field)?

avatar
Mikki
0 1 0 9
asked 07 September, 2021
60 votes
30 answers
677 views
Set cellpadding and cellspacing in CSS?

In an HTML table, the cellpadding and cellspacing can be set like this: <table cellspacing="1" cellpadding

avatar
Patsy
0 1 0 9
asked 07 September, 2021
57 votes
30 answers
2.6K views
Change a HTML5 input&apos;s placeholder color with CSS

Chrome supports the placeholder attribute on input[type=text] elements (others probably do too). But the follo

avatar
Lashawna
0 1 0 9
asked 07 September, 2021
65 votes
30 answers
1.9K views
How to horizontally center an element

How can I horizontally center a <div> within another <div> using CSS? <div id="outer"> <

avatar
Sachiko
0 1 0 9
asked 07 September, 2021
56 votes
10 answers
841 views
Why does HTML think “chucknorris” is a color?

Why do certain random strings produce colors when entered as background colors in HTML? For example: <b

avatar
Majorie
0 1 0 9
asked 07 September, 2021